Template:Tooltip/doc:修订间差异

Selfice留言 | 贡献
无编辑摘要
Selfice留言 | 贡献
无编辑摘要
标签已被回退
第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}}{{code|dotted}}参数,定为 no 时会除去虚线。请注意这样做会让读者无法知道哪里有快显视窗提示。
{{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}}


==使用范例==
<code><nowiki>{{tooltip |鼠标悬浮我 |你做对了}}</nowiki></code> → {{tooltip |鼠标悬浮我 |你做对了}}
<noinclude>
<noinclude>
[[Category:模板文档]][[en:Template:Tooltip/doc]]
[[Category:Template Documentation]][[en:Template:Tooltip/doc]]
</noinclude>
</noinclude>
<includeonly>
<includeonly>
[[Category:格式模板|{{PAGENAME}}]][[en:Template:Tooltip]]
[[Category:Formatting Templates|{{PAGENAME}}]][[zh:Template:Tooltip]]
</includeonly>
</includeonly>