Open main menu
Home
Random
Nearby
Log in
Settings
About Kancolle Wiki
Disclaimers
Kancolle Wiki
Search
Changes
← Older edit
Template:ToolTip
(view source)
Revision as of 13:02, 4 November 2023
205 bytes added
,
1 year ago
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>
Chocolatecravinghobo
advmod, cssedit,
Interface administrators
, janitor,
Moderators
, prechecked,
Widget editors
7,410
edits