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

From Kancolle Wiki
Jump to navigation Jump to search
m
m (Fix example)
Line 1: Line 1:
==Parameters==
+
{{Documentation subpage}}
 +
<!--
 +
    PLEASE ADD CATEGORIES AND INTERWIKIS AT THE BOTTOM OF THIS PAGE
 +
    YOU CAN EDIT THE TEMPLATE DOCUMENTATION BELOW THIS COMMENT
 +
-->
 +
This template is to provide tooltip function to the words.
 +
 
 +
==Usage==
 
To use this template, simply follow the examples:
 
To use this template, simply follow the examples:
<pre>
 
{{Tooltip|<text displayed>|<text shown as tooltip>}}
 
</pre>
 
  
{{Tooltip|<text displayed>|<text shown as tooltip>}}
+
<code><nowiki>{{Tooltip|<text displayed>|<text shown as tooltip>}}</nowiki></code>
 +
:{{Tooltip|<text displayed>|<text shown as tooltip>}}
  
<pre>
+
<code><nowiki>{{Tooltip|Kongou class|Kongou, Hiei, Kirishima and Haruna}}</nowiki></code>
{{Tooltip|Kongou class|Kongou, Hiei, Kirishima and Haruna}}
+
:{{Tooltip|Kongou class|Kongou, Hiei, Kirishima and Haruna}}
</pre>
 
  
{{Tooltip|Kongou class|Kongou, Hiei, Kirishima and Haruna}}
+
<code><nowiki>{{Tooltip|{{lang|ja|金剛}}|こんごう}}</nowiki></code>
 
+
:{{Tooltip|{{lang|ja|金剛}}|こんごう}}
<pre>
+
'''NOTE:''' For displaying japanese kanjis with furiganas, you're recommended to use [[Template:Ruby-ja|this template]] instead.
{{Tooltip|金剛|こんごう}}
+
<includeonly>
</pre>
+
<!--PLEASE ADD CATEGORIES BELOW THIS LINE, THANKS.-->
  
{{Tooltip|金剛|こんごう}}
+
<!--PLEASE ADD INTERWIKIS BELOW THIS LINE, THANKS.-->
  
'''NOTE:''' For displaying japanese kanjis with furiganas, you're recommended to use [[Template:Ruby-ja|this template]] instead.
+
</includeonly>

Revision as of 15:12, 9 February 2017

This template is to provide tooltip function to the words.

Usage

To use this template, simply follow the examples:

{{Tooltip|<text displayed>|<text shown as tooltip>}}

<text displayed>

{{Tooltip|Kongou class|Kongou, Hiei, Kirishima and Haruna}}

Kongou class

{{Tooltip|{{lang|ja|金剛}}|こんごう}}

金剛

NOTE: For displaying japanese kanjis with furiganas, you're recommended to use this template instead.