跳至內容

模板:Ublist/doc

用法

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

範例

基本

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.

模板:Stack 這個模板是用來建立無項目符號的列表。每個項目可以有獨立的樣式;使用參數item_style1來設定第一個項目的樣式,item_style2設定第二個項目的樣式,以此類推。

用法

{{Unbulleted list|項目1|項目2|項目3}}
{{Unbulleted list|項目1|項目2|項目3|item1_style=css-style-a;css-style-b;|item3_style=css-style-x;css-style-y;|item_style=}}

範例

代碼 結果
{{Unbulleted list|項目1|項目2|項目3|項目4|項目5|項目6|項目7|項目8|項目9}}
  • 項目1
  • 項目2
  • 項目3
  • 項目4
  • 項目5
  • 項目6
  • 項目7
  • 項目8
  • 項目9
{{Unbulleted list|冠軍|亞軍|季軍|item_style=color:blue;}}
  • 冠軍
  • 亞軍
  • 季軍
{{Unbulleted list|冠軍|亞軍|季軍|item1_style=background-color:yellow;|item2_style=background-color:silver;}}
  • 冠軍
  • 亞軍
  • 季軍
{{Unbulleted list| |項目2|項目3}}
  • 項目2
  • 項目3
{{Unbulleted list|項目1| |項目3}}
  • 項目1
  • 項目3
{{Unbulleted list|項目1|項目2| }}
  • 項目1
  • 項目2
{{Unbulleted list|項目1| | }}
  • 項目1
{{Unbulleted list| |項目2| }}
  • 項目2
{{Unbulleted list| | |項目3}}
  • 項目3
{{Unbulleted list| | | }}

參見