Template:Template shortcut

来自NeuroWiki
Selfice留言 | 贡献2024年11月1日 (五) 12:14的版本 (创建页面,内容为“<div role="note" class="shortcutbox shortcutbox-left plainlist plainlinks noprint" style="<!-- -->{{#switch:{{{clear|}}} |true=clear:{{{float|right}}}; |left|right|both=clear:{{{clear|}}}; |#default=}}<!-- -->float: {{#ifeq:{{{float|}}}|left|left|right}};<!-- -->margin: {{{top|0em}}} {{#ifeq:{{{float|}}}|left|1em 0em 0em|0em 0em 1em}};<!-- -->border: 1px solid var(--border-color-base,#aaa); background: var(--background-color-base,#fff); padding: 0.3em 0.6em 0.2…”)
(差异) ←上一版本 | 最后版本 (差异) | 下一版本→ (差异)
跳转到导航 跳转到搜索
[ 查看 | 编辑 | 历史 | 刷新 ]文档页面

用法

本模板能夠在模板的說明頁中顯示模板的快捷方式。

範例

基本

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.
[ 查看 | 编辑 | 历史 | 刷新 ]上述文档引用自Template:Template shortcut/doc