打开/关闭菜单
4741
2301
13
7.5万
Trials in Tainted Space Bilingual Wiki
打开/关闭外观设置菜单
打开/关闭个人菜单
未登录
未登录用户的IP地址会在进行任意编辑后公开展示。

Template:Tt

模板页面
src->Jacques002025年3月5日 (三) 09:15的版本 (Created page with "<includeonly><span class="tooltip" {{ #ifeq: {{{line|true}}} | false | style="border-bottom: 0;" }}>{{{1}}}<span class="tooltiptext" style="{{#if:{{{text-align|}}}|text-align:...")
(差异) ←上一版本 | 最后版本 (差异) | 下一版本→ (差异)


Crediting

This template and the tooltip functions within the common.css were taken from the gbf.wiki.

Usage & Examples

{{tt|Normal text|Tooltip text}}

Normal textTooltip text

{{tt|Normal text without underline|Tooltip text|line=false}}

Normal text without underlineTooltip text

{{tt|1=Tooltip text with horizontal rule|2=Tooltip<span class="hr"></span>Text}}

Tooltip text with horizontal ruleTooltipText

{{tt|{{tt|Nested tooltip|Bottom text}}|Top text}}

Nested tooltipBottom textTop text

{{tt|left-aligned text|Tooltip text|text-align=left}}

left-aligned textTooltip text

Notes

  • Do not use <hr /> inside tooltips!
    • Use <span class="hr"></span> instead (with named parameters; i.e. |1= and |2=)
    • This is due to mw parser spawning random linebreaks if <hr /> is used.