模板:Sister project/doc

来自决策链云智库
< 模板:Sister project
Zeroclanzhang讨论 | 贡献2024年1月20日 (六) 19:37的版本 (创建页面,内容为“{{Documentation subpage}} <!-- PLEASE ADD CATEGORIES AT THE BOTTOM OF THIS PAGE --> {{High-risk}} {{Lua|Module:Side box}} This is a '''meta-template''' used for creating interwiki link boxes to other sister projects of Wikipedia. Note that links to other ''language'' Wikipedias should ''not'' use links in this form, instead use interwiki links to add them to the sidebar. {{see a…”)
(差异) ←上一版本 | 最后版本 (差异) | 下一版本→ (差异)

This is a meta-template used for creating interwiki link boxes to other sister projects of Wikipedia. Note that links to other language Wikipedias should not use links in this form, instead use interwiki links to add them to the sidebar.

Usage

  • |text= – text of the message
  • |project= – the sister project to link to. Used to select which project logo is displayed.
  • |below= – optional text to display in a full-width row below the main content. Use sparingly
  • |position= – set to left for a left-floating box or, ideally, pass through with |position={{{position|}}} to let this be set on a per-page basis.

Example

{{Sister project
|project=commons
|text=[[Wikimedia Commons]] has media related to: '''''[[Commons:{{{1|Special:Search/{{PAGENAME}}}}}|{{{2|{{{1|{{PAGENAME}}}}}}}}]]'''''
}}

Location

This template should normally be placed at the top of the External links section at the end of an article, if the article has a section for external links. If no such section exists, then please place it at the top of the last section in the article.

On disambiguation pages, this template should be listed above other text, but below any cleanup templates, images, infoboxes or navboxes.

Template data

This is the TemplateData for this template used by TemplateWizard, VisualEditor and other tools. See a monthly parameter usage report for Template:Sister project in articles based on its TemplateData.

TemplateData for Sister project

Creates a small box with a links to an article on a sister project 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.

字符串可选

Other Templates using this template

模板:Commons 模板:Wikinews 模板:Wikiquote 模板:Wikisourcecat 模板:Wikibooks 模板:Wikivoyage

模板:Wikispecies 模板:Wikidata property 模板:Meta 模板:MediaWiki 模板:Incubator

Images used

This template potentially displays the following images.

See also