Changes

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''
    
== What this is ==
 
== What this is ==
 
A template to write tooltips!
 
A template to write tooltips!
 +
<br>For quick tooltips with assets, see [[Template:Link]] and its offshoots.
    
== Usage & Examples ==
 
== Usage & Examples ==
 +
<pre><nowiki>{{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]]}}</nowiki></pre>
 
{{ToolTip|[[Kasumi]]|[[File:Ship Banner Kasumi.png]]}}
 
{{ToolTip|[[Kasumi]]|[[File:Ship Banner Kasumi.png]]}}
 
{{ToolTip|[[Kasumi Kai Ni]]|[[File:Ship Banner Kasumi Kai Ni.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]]|text-align=left}}
    
<pre><nowiki>{{ToolTip|Normal text|Tooltip text}}</nowiki></pre>
 
<pre><nowiki>{{ToolTip|Normal text|Tooltip text}}</nowiki></pre>
 
{{ToolTip|Normal text|Tooltip text}}
 
{{ToolTip|Normal text|Tooltip text}}
 +
<br>
 +
<pre><nowiki>{{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.}}</nowiki></pre>
 +
{{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. 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.}}
 
<br>
 
<br>
 
<pre><nowiki>{{ToolTip|Normal text without underline|Tooltip text|line=false}}</nowiki></pre>
 
<pre><nowiki>{{ToolTip|Normal text without underline|Tooltip text|line=false}}</nowiki></pre>
Line 23: 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>
advmod, cssedit, janitor, Moderators, prechecked, Widget editors
6,955

edits