「Template:Tooltip/doc」:修訂間差異
跳至導覽
跳至搜尋
小無編輯摘要 |
無編輯摘要 標籤:已被回退 |
||
第1行: | 第1行: | ||
{{tlx|Tooltip}} | {{tlx|Tooltip}} is a template that generates a tooltip popup for text that is not an abbreviation. If what you're representing is not an abbreviation, you '''must''' use this template. | ||
== | == Template Parameters == | ||
{{tlx|Tooltip}} | {{tlx|Tooltip}} has two unnamed parameters: | ||
# ''' | # '''Abbreviation text''': This text will be displayed on the page with an underlined dotted style. | ||
# ''' | # '''Full text''': When a user hovers their mouse cursor over the abbreviation text in most [[web browsers]], the tooltip will pop up and display the full text. Avoid using any special syntax in the full text; only plain text should be used. | ||
{{tlx|Tooltip}} | {{tlx|Tooltip}} also has a {{code|dotted}} parameter. When set to `no`, the dotted underline will be removed. Note that doing so may make it harder for readers to identify where tooltips are available. | ||
== Usage Example == | |||
<code><nowiki>{{tooltip |Hover over me |You did it right}}</nowiki></code> → {{tooltip |Hover over me |You did it right}} | |||
<noinclude> | <noinclude> | ||
[[Category: | [[Category:Template Documentation]][[en:Template:Tooltip/doc]] | ||
</noinclude> | </noinclude> | ||
<includeonly> | <includeonly> | ||
[[Category: | [[Category:Formatting Templates|{{PAGENAME}}]][[zh:Template:Tooltip]] | ||
</includeonly> | </includeonly> |
於 2025年1月21日 (二) 22:15 的修訂
{{Tooltip}}
is a template that generates a tooltip popup for text that is not an abbreviation. If what you're representing is not an abbreviation, you must use this template.
Template Parameters
{{Tooltip}}
has two unnamed parameters:
- Abbreviation text: This text will be displayed on the page with an underlined dotted style.
- Full text: When a user hovers their mouse cursor over the abbreviation text in most web browsers, the tooltip will pop up and display the full text. Avoid using any special syntax in the full text; only plain text should be used.
{{Tooltip}}
also has a dotted
parameter. When set to `no`, the dotted underline will be removed. Note that doing so may make it harder for readers to identify where tooltips are available.
Usage Example
{{tooltip |Hover over me |You did it right}}
→ Hover over me