模板:Template shortcut

来自能源智库
SolarLib讨论 | 贡献2016年8月7日 (日) 01:20的版本 (创建页面,内容为“<table class="shortcutbox shortcutbox-template plainlinks noprint" style="{{#switch:{{{clear|}}} |true=clear:{{{float|right}}}; |left|right|both=clear:{{{clea...”)

(差异) ←上一版本 | 最后版本 (差异) | 下一版本→ (差异)
跳转至: 导航搜索
50px 模板-{zh-hans:文档; zh-hant:文件;}-[-{zh-hans:查看; zh-hant:檢視;}-] [编辑] [-{zh-hans:页面历史; zh-hant:頁面歷史; zh-cn:页面历史; zh-sg:页面历史; zh-hk:頁面歷史; zh-mo:頁面歷史; zh-tw:修訂記錄;}-] [清除]

模板:Tsh

用法

本模板能夠在模板的說明頁中顯示模板的-{zh-hans:快捷方式; zh-hant:捷徑;}-。

例子

基本

For one template shortcut named {{uw-v1}}:

模板:Tlc

To indicate that {{uw-vandalism1}} has three shortcuts named: {{uw-v1}}, {{uw-vand1}}, and {{uw-vandal1}}; then the following code may be used:

模板:Tlc

With additional parameters

Using |float=left makes this template flow to the left of the page:

{{template shortcut|float=left|uw-v1}}

Using |pre2=subst: and |pre3=subst: will show "subst:" before the shortcut links, but within the braces. For example:

{{template shortcut|uw-v1|pre2=subst:|uw-vand1|pre3=subst:|uw-vandal1}}

See also

  • {{shortcut}}, the standard shortcut notice.
    • {{shortcut-l}} for a left-aligned standard shortcut notice.
  • {{policy shortcut}} for shortcuts to sections of policy pages.