模板:Template shortcut/doc

出自NeuroWiki
於 2024年11月1日 (五) 12:14 由 Selfice留言 | 貢獻 所做的修訂 (创建页面,内容为“== 用法 == 本模板能夠在模板的說明頁中顯示模板的{{#if:{{{redirect|}}} |重定向 |-{zh-hans:快捷方式; zh-hant:捷徑;}-}}。 ==範例== ===基本=== For one template shortcut named {{tl|uw-v1}}: <pre> {{template shortcut|uw-v1}} </pre> {{template shortcut|uw-v1}} {{clear}} To indicate that {{tl|uw-vandalism1}} has three shortcuts named: {{tl|uw-v1}}, {{tl|uw-vand1}}, and {{tl|uw-vandal1}}; then the following code may be used: <pre>…”)
(差異) ←上個修訂 | 最新修訂 (差異) | 下個修訂→ (差異)
跳至導覽 跳至搜尋

用法

本模板能夠在模板的說明頁中顯示模板的捷徑。

範例

基本

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

{{template shortcut|uw-v1}}

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

{{template shortcut|uw-v1|uw-vand1|uw-vandal1}}

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}}

重定向

參見

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