模板:Sister project/doc:修订间差异

来自悠日計画 維基百科 ~ Yuuni Wiki
 
导入1个版本
 
(没有差异)

2022年9月18日 (日) 22:15的最新版本

<templatestyles src="Module:Message box/ombox.css"></templatestyles>

<templatestyles src="Module:Message box/ombox.css"></templatestyles>

<templatestyles src="Module:Message box/ombox.css"></templatestyles>

This is a meta-template used for creating interwiki links 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 <syntaxhighlight lang="moin">

<templatestyles src="Module:Side box/styles.css"></templatestyles>

</syntaxhighlight>

<templatestyles src="Module:Side box/styles.css"></templatestyles>

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. Click here to see a monthly parameter usage report for this template based on this 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.

字符串可选

Images used

This template potentially displays the following images.

See also