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