维多利亚3
ParaWikis
502 Bad Gateway
502 Bad Gateway
openresty
最近更改
随机页面
加入QQ群
工具
链入页面
相关更改
特殊页面
页面信息
页面值
×
欢迎访问维多利亚3百科!
注册一个账号
,一起参与编写吧!这里是
当前的工程
。
全站已采用新UI,任何使用上的问题请点击
这里
。欢迎所有对百科感兴趣的同学加入QQ群:
497888338
。
阅读
查看源代码
查看历史
讨论
查看“Template:TextTooltip/doc”的源代码
←
Template:TextTooltip/doc
因为以下原因,您没有权限编辑本页:
您请求的操作仅限属于该用户组的用户执行:
用户
您可以查看和复制此页面的源代码。
<includeonly>{{template doc page transcluded}}</includeonly><noinclude>{{template doc page viewed directly}}</noinclude> <!-- EDIT TEMPLATE DOCUMENTATION BELOW THIS LINE --> {{see also|:Template:Hover box|:Template:Tooltip}} This template creates the effect of displaying a simple tooltip when hovering over a text or icon/image -- it is achieved by applying the ''tooltip'' and ''tooltiptext'' classes to a <code><nowiki><span>XYZ</span></nowiki></code>. This template is suitable for simple inline text, including inline images, but not for tables, lists, or other more complex formatting. See {{template|Tooltip}} for such uses. == Parameters == {| class="wikitable" |- ! Parameter !! Description ! Default !! Status |- | 1 || Dotted underlined text | – || '''required''' |- | 2 || The tooltip appearing after a hovering action | – || '''required''' |- | index || tooltip "index": 2 or 3<br>For tooltip-in-a-tooltip functionality | ''none'' || ''optional'' |- | style || CSS styling of tooltip, preset parameters can be overwritten by defining them again;<br>to unset them, define them with <code>unset</code> or <code>revert</code> | ''font-style:normal; font-weight:normal; background: #FFFFFF;<br>color:initial; padding:2px 5px; border-radius:5px;'' || ''optional'' |- | outer-class || Adds additional defined classes to the display text || ''none'' || ''optional'' |- | inner-class || Adds additional defined classes to the tooltip text<br>Note this may require overwriting || ''none'' || ''optional'' |} == Examples == By default, the hover text uses as no more horizontal space than the display text, set <code>style=width:max-content;</code> or a similar format to change this. * <code><nowiki>Hover {{TextTooltip|here|Example text}} to see the tooltip</nowiki></code> gives Hover {{TextTooltip|here|Example text}} to see the tooltip * <code><nowiki>Hover {{TextTooltip|here|Example text|style=width:max-content;}} to see the tooltip</nowiki></code> gives Hover {{TextTooltip|here|Example text|style=width:max-content;}} to see the tooltip * <code><nowiki>{{TextTooltip|Hover here to see the tooltip|Example text|outer-class=eu4box}}</nowiki></code> gives {{TextTooltip|Hover here to see the tooltip|Example text|outer-class=eu4box}} * <code><nowiki>Hover {{TextTooltip|here|Example text|inner-class=eu4box-inline}} to see the tooltip</nowiki></code> gives Hover {{TextTooltip|here|Example text|inner-class=eu4box-inline}} to see the tooltip
本页使用的模板:
Template:Hatnote
(
查看源代码
)
Template:See also
(
查看源代码
)
Template:Template
(
查看源代码
)
Template:Template doc page viewed directly
(
查看源代码
)
Template:TextTooltip
(
查看源代码
)
Template:Tlx
(
查看源代码
)
返回
Template:TextTooltip/doc
。
×
登录
密码
记住登录
加入维多利亚3百科
忘记密码?
其他方式登录