模板:Sister project/doc

維基教科書,自由的教學讀本

模板介紹[編輯]

本模板為一系列姊妹計劃連結模板的元模板,亦即本模板用於構建其他模板。注意其他語言維基百科的連結不應使用此頁中的連結,而不是使用跨維基連結將它們添加到側欄。

使用方法[編輯]

  • |text= – 填充文本。
  • |project= – 選擇需要連接的姊妹項目的標誌。
  • |below= – 在正文下方的全形行顯示文本,慎用。
  • |position= – 輸入left可向左對齊,可以通過|position={{{position|}}}設置本模板如何對齊。

範例[編輯]

{{sister
|project=commons
|text=[[维基共享资源]]中相关的多媒体资源:'''[[Commons:{{{1|Special:Search/{{PAGENAME}}}}}|{{{2|{{{1|{{PAGENAME}}}}}}}}]]'''
}}

注意事項[編輯]

如果條目正文中有了外部連結,那麼本模板通常應該置於外部連結章節的第一行。如果沒有此章節,則置於最後一節的第一行。

消歧義頁中,本模板應置於文本上方。

模板數據[編輯]

這是用於新版視覺化編輯器及其他工具的模板資料文件。

Sister project模板資料

Creates a small box with a links to an article on a sister projects of wikipedia.

模板參數

參數描述類型狀態
Projectproject

The project to link to e.g. commons, meta, wikibooks, wikidata, wikiquote, wikipedia, wikisource, wiktionary, wikinews, wikispecies, wikiversity, wikivoyage, mediawiki, outreachwiki, or incubator. The default displays the Wikimedia logo.

字串必填
Texttext

Text of the message e.g. [[Wikimedia Commons]] has media related to: '''''[[Commons:Alcatraz]]'''''

字串必填
Belowbelow

Optional text to display in a full-width row below the main content. Use sparingly.

字串選填
Positionposition

Position to display the box: 'left' floats the box to the left rather than the default, which is on the right.

字串選填

參見[編輯]

  • {{sister-inline}},不帶邊框的姊妹計劃連結模板的元模板
  • {{side box}},添加浮動邊框的元模板,作用如同{{sister}}