• 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"

From Kancolle Wiki
Jump to navigation Jump to search
(Created page with "<includeonly>{{#invoke:Utils|method|Formatting|tooltip|{{{1|}}}|{{{2|}}}}}</includeonly> <noinclude> {{Documentation}} </noinclude>")
 
 
Line 1: Line 1:
<includeonly>{{#invoke:Utils|method|Formatting|tooltip|{{{1|}}}|{{{2|}}}}}</includeonly>
+
<includeonly><span class="explain" title="{{#replace:{{#replace:{{#replace:{{#replace:{{{2|}}}|"|&quot;}}|<|&lt;}}|>|&gt;}}|\n|&#10;}}" {{#if:{{{style|}}}|style="{{{style}}}"}} {{#if:{{{lang|}}}|lang="{{{lang}}}"}}>{{{1|}}}</span></includeonly><noinclude>{{Documentation}}</noinclude>
<noinclude>
 
{{Documentation}}
 
</noinclude>
 

Latest revision as of 13:14, 6 June 2019

Template-info.png Template documentation [view] [edit] [history] [purge]

This template is to provide tooltip function to the words.

Usage

To use this template, simply follow the examples:

{{Tooltip|text}}

text

{{Tooltip|text|tooltip}}

text

{{Tooltip|text|tooltip|style=color:red}}

text

{{Tooltip|金剛|Kongō|lang=ja}}

金剛

Tests

Escaping

{{Tooltip|double quotation mark|"}}

double quotation mark

{{Tooltip|single quotation mark|'}}

single quotation mark

{{Tooltip|ampersand|&}}

ampersand

{{Tooltip|less-than sign|<}}

less-than sign

{{Tooltip|greater-than sign|>}}

greater-than sign

Line breaks

{{Tooltip|...|1\n2}}

...

Tables

1
2
3
1
2
3