Line 1: |
Line 1: |
− | ==Parameters== | + | {{Documentation subpage}} |
| + | 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> | + | <pre>{{Tooltip|text}}</pre> |
− | {{Tooltip|<text displayed>|<text shown as tooltip>}} | + | {{Tooltip|text}} |
− | </pre> | + | <pre>{{Tooltip|text|tooltip}}</pre> |
− | | + | {{Tooltip|text|tooltip}} |
− | {{Tooltip|<text displayed>|<text shown as tooltip>}} | + | <pre>{{Tooltip|text|tooltip|style=color:red}}</pre> |
− | | + | {{Tooltip|text|tooltip|style=color:red}} |
− | <pre> | + | <pre>{{Tooltip|金剛|Kongō|lang=ja}}</pre> |
− | {{Tooltip|Kongou class|Kongou, Hiei, Kirishima and Haruna}} | + | {{Tooltip|金剛|Kongō|lang=ja}} |
− | </pre> | + | ==Tests== |
− | | + | ===Escaping=== |
− | {{Tooltip|Kongou class|Kongou, Hiei, Kirishima and Haruna}} | + | <pre>{{Tooltip|double quotation mark|"}}</pre> |
− | | + | {{Tooltip|double quotation mark|"}} |
− | <pre> | + | <pre>{{Tooltip|single quotation mark|'}}</pre> |
− | {{Tooltip|金剛|こんごう}} | + | {{Tooltip|single quotation mark|'}} |
− | </pre> | + | <pre>{{Tooltip|ampersand|&}}</pre> |
− | | + | {{Tooltip|ampersand|&}} |
− | {{Tooltip|金剛|こんごう}} | + | <pre>{{Tooltip|less-than sign|<}}</pre> |
| + | {{Tooltip|less-than sign|<}} |
| + | <pre>{{Tooltip|greater-than sign|>}}</pre> |
| + | {{Tooltip|greater-than sign|>}} |
| + | ===Line breaks=== |
| + | <pre>{{Tooltip|...|1\n2}}</pre> |
| + | {{Tooltip|...|1\n2}} |
| + | ===Tables=== |
| + | {|class="wikitable" |
| + | {{Tooltip/Test |
| + | |1 |
| + | |2 |
| + | |3 |
| + | |arg={{Tooltip|1|1}}<br/>{{Tooltip|2|2}}<br/>{{Tooltip|3|3}} |
| + | }} |
| + | |} |
| + | __NOTOC__ |