Toggle menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

Template:Tooltip/doc: Difference between revisions

Template page
dustloop>TarkusLee
Created page with "== What this is == Styles for this tempalte are found on Template:Tooltip/styles.css == Usage & Examples == <pre><nowiki>{{tt|Normal text|Tooltip text}}</nowiki></pre> Lorem ipsum, {{tt|Normal text|Tooltip text}}, sed do dolore magna aliqua. <pre><nowiki>{{tt|Normal text without underline|Tooltip text|line=false}}</nowiki></pre> {{tt|Normal text without underline|Tooltip text|line=false}} <pre><nowiki>{{tt|Tooltip text with horizontal rule|Tooltip<hr>Text}}</nowiki>..."
 
dustloop>TarkusLee
No edit summary
Line 1: Line 1:
{{doc/start}}
== What this is ==
== What this is ==
Styles for this tempalte are found on [[Template:Tooltip/styles.css]]
Styles for this tempalte are found on [[Template:Tooltip/styles.css]]
Line 18: Line 19:
** Use <code><nowiki><span class="hr"></span></nowiki></code> instead.
** Use <code><nowiki><span class="hr"></span></nowiki></code> instead.
** This is due to mw parser spawning random linebreaks if <code><nowiki><hr /></nowiki></code> is used.
** This is due to mw parser spawning random linebreaks if <code><nowiki><hr /></nowiki></code> is used.
{{doc/end}}

Revision as of 21:24, 1 January 2023

What this is

Styles for this tempalte are found on Template:Tooltip/styles.css

Usage & Examples

{{tt|Normal text|Tooltip text}}

Lorem ipsum, Normal textTooltip text, sed do dolore magna aliqua.

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

Normal text without underlineTooltip text

{{tt|Tooltip text with horizontal rule|Tooltip<hr>Text}}
Tooltip text with horizontal ruleTooltip
Text
{{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.
    • This is due to mw parser spawning random linebreaks if <hr /> is used.

This is the documentation page, it should be transcluded into the main template page. See Template:Doc for more information.

MediaWiki Appliance - Powered by TurnKey Linux