维多利亚3
ParaWikis
502 Bad Gateway
502 Bad Gateway
openresty
最近更改
随机页面
加入QQ群
工具
链入页面
相关更改
特殊页面
页面信息
页面值
×
欢迎访问维多利亚3百科!
注册一个账号
,一起参与编写吧!这里是
当前的工程
。
全站已采用新UI,任何使用上的问题请点击
这里
。欢迎所有对百科感兴趣的同学加入QQ群:
497888338
。
阅读
查看源代码
查看历史
讨论
查看“Template:Tooltip/doc”的源代码
←
Template:Tooltip/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}} This template creates the effect of displaying an advanced tooltip when hovering over a text or icon/image -- it is achieved by applying the ''tooltip'' and ''tooltiptext'' classes to container classes such as <code><nowiki><span>XYZ</span></nowiki></code> or <code><nowiki><div>XYZ</div></nowiki></code>. The user can customize the tooltip's appearance by defining its layout, used images, and text styles. This can be defined in-page, called via another template, or called after being enveloped within transclusion tags. == Parameters == {| class="wikitable" |- ! Parameter !! Description ! Default !! Status |- | 1 || Dotted underlined text | – || '''required''' |- | 2 || The tooltip appearing after a hovering action | – || '''required''' |- | class || tooltip "class": 2 or 3<br>For tooltip-in-a-tooltip functionality | ''none'' || ''optional'' |- | tag || HTML tag type: span or div<br>Use span for simple, inline tooltips | ''div'' || ''optional'' |- | style || CSS styling of tooltip | ''background:white'' || ''optional'' |} == Example == {{see also|Template:Tooltip/Example}} {{Template:Tooltip/Example}} For a usage example, see the table on the right. It has been defined as a template and also enveloped within transclusion tags. This allows the table to be called in one of the below ways: * <code><nowiki><span>Hover {{Tooltip|here|{{Template:Tooltip/Example}}}} to see the tooltip</span></nowiki></code> * <code><nowiki><span>Hover {{Tooltip|here|{{#lst:Template:Tooltip/Example|example_table}}}} to see the tooltip</span></nowiki></code> Both of which will result in: <span>Hover {{Tooltip|here|{{Template:Tooltip/Example}}}} to see the tooltip.</span> == Notes == # For a simpler, plaintext-only tooltip on hover effect, please refer to the existing {{Template|Hover box}} template. # The "wikitable" class has by default 1em margin added to the top and the bottom of the table causing tables of this class to appear a tad below its template. For best effect it is advised to set the margin style to 0px. # To allow for objects like tables to appear inline, the whole sentence/paragraph should be enveloped within an external <code><nowiki><span>XYZ</span></nowiki></code> or <code><nowiki><div>XYZ</div></nowiki></code>. # Simple tooltips (no tables or lists) can also be used inline by setting the tag parameter to "span".
本页使用的模板:
Template:Hatnote
(
查看源代码
)
Template:See also
(
查看源代码
)
Template:Template
(
查看源代码
)
Template:Template doc page viewed directly
(
查看源代码
)
Template:Tlx
(
查看源代码
)
Template:Tooltip
(
查看源代码
)
Template:Tooltip/Example
(
查看源代码
)
返回
Template:Tooltip/doc
。
×
登录
密码
记住登录
加入维多利亚3百科
忘记密码?
其他方式登录