Difference between revisions of "Template:Tooltip/doc"
m |
|||
| (2 intermediate revisions by 2 users not shown) | |||
| Line 1: | Line 1: | ||
| − | == | + | {{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 | + | {{Tooltip|text}} |
| − | </pre> | + | <pre>{{Tooltip|text|tooltip}}</pre> |
| − | + | {{Tooltip|text|tooltip}} | |
| − | {{Tooltip|< | + | <pre>{{Tooltip|text|tooltip|style=color:red}}</pre> |
| − | + | {{Tooltip|text|tooltip|style=color:red}} | |
| − | <pre> | + | <pre>{{Tooltip|金剛|Kongō|lang=ja}}</pre> |
| − | {{Tooltip| | + | {{Tooltip|金剛|Kongō|lang=ja}} |
| − | </pre> | + | ==Tests== |
| − | + | ===Escaping=== | |
| − | {{Tooltip| | + | <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__ | ||
Latest revision as of 13:14, 6 June 2019
|
|
This is a documentation subpage for Template:Tooltip. It contains usage information, categories, interlanguage links and other content that is not part of the original template page. |
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 |