- Welcome to the Kancolle Wiki!
- If you have any questions regarding site content, account registration, etc., please visit the KanColle Wiki Discord
Difference between revisions of "Template:ToolTip"
m |
(now able to add css classes to tooltips with "tttclass=") |
||
Line 1: | Line 1: | ||
− | <includeonly><span class="tooltip" {{ #ifeq: {{{line|true}}} | false | style="border-bottom: 0;" }}>{{{1}}}<span class="tooltiptext" style="{{#if:{{{text-align|}}}|text-align:{{{text-align|default}}};}}">{{{2}}}</span></span></includeonly><noinclude> | + | <includeonly><span class="tooltip" {{ #ifeq: {{{line|true}}} | false | style="border-bottom: 0;" }}>{{{1}}}<span class="tooltiptext {{#if:{{{tttclass|}}}|{{{tttclass|}}}}}" style="{{#if:{{{text-align|}}}|text-align:{{{text-align|default}}};}}">{{{2}}}</span></span></includeonly><noinclude> |
''From https://gbf.wiki/Template:Tt'' | ''From https://gbf.wiki/Template:Tt'' | ||
Line 31: | Line 31: | ||
<pre><nowiki>{{ToolTip|left-aligned text|Tooltip text|text-align=left}}</nowiki></pre> | <pre><nowiki>{{ToolTip|left-aligned text|Tooltip text|text-align=left}}</nowiki></pre> | ||
{{ToolTip|left-aligned text|Tooltip text|text-align=left}} | {{ToolTip|left-aligned text|Tooltip text|text-align=left}} | ||
+ | <br> | ||
+ | <pre><nowiki>{{ToolTip|custom tooltip css class|Tooltip text|tttclass=dev-s1}}</nowiki></pre> | ||
+ | {{ToolTip|custom tooltip css class|Tooltip text|tttclass=dev-s1}} | ||
</noinclude> | </noinclude> |
Latest revision as of 13:02, 4 November 2023
From https://gbf.wiki/Template:Tt
What this is
A template to write tooltips!
For quick tooltips with assets, see Template:Link and its offshoots.
Usage & Examples
{{ToolTip|[[Kasumi]]|[[File:Ship Banner Kasumi.png]]}} {{ToolTip|[[Kasumi Kai Ni]]|[[File:Ship Banner Kasumi Kai Ni.png]]}} {{ToolTip|[[Kasumi]]|[[File:Ship Banner Kasumi.png]][[File:Ship Banner Kasumi Kai.png]]<br />[[File:Ship Banner Kasumi Kai Ni.png]]}}
{{ToolTip|Normal text|Tooltip text}}
Normal textTooltip text
{{ToolTip|Lorem Ipsum|Lorem Ipsum is simply dummy text of the printing and typesetting industry.<br /> Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book.<br /> It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged.<br /> It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.}}
Lorem IpsumLorem Ipsum is simply dummy text of the printing and typesetting industry.
Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.
{{ToolTip|Normal text without underline|Tooltip text|line=false}}
Normal text without underlineTooltip text
{{ToolTip|Tooltip text with horizontal rule|Tooltip<hr>Text}}Tooltip text with horizontal ruleTooltip
Text
{{ToolTip|{{ToolTip|Nested tooltip|Bottom text}}|Top text}}
Nested tooltipBottom textTop text
{{ToolTip|left-aligned text|Tooltip text|text-align=left}}
left-aligned textTooltip text
{{ToolTip|custom tooltip css class|Tooltip text|tttclass=dev-s1}}
custom tooltip css classTooltip text