Template:Sister project/doc: Difference between revisions
meta>WOSlinker update |
m 66 revisions imported |
||
(57 intermediate revisions by 45 users not shown) | |||
Line 1: | Line 1: | ||
{{Documentation subpage}} | {{Documentation subpage}} | ||
<!-- PLEASE ADD CATEGORIES AT THE BOTTOM OF THIS PAGE --> | |||
<!-- PLEASE ADD CATEGORIES | {{High-risk|944000}} | ||
{{Lua|Module:Side box}} | |||
This is a meta-template used for creating interwiki links to other [[ | This is a meta-template used for creating interwiki links to other [[Wikipedia:Wikimedia sister projects|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 == | |||
*{{para|text}} – text of the message | *{{para|text}} – text of the message | ||
*{{para|project}} – the sister project to link to. Used to select which project logo is displayed. | *{{para|project}} – the sister project to link to. Used to select which project logo is displayed. | ||
*{{para|below}} – optional text to display in a full-width row below the main content. Use sparingly | *{{para|below}} – optional text to display in a full-width row below the main content. Use sparingly | ||
*{{para|position}} – set to < | *{{para|position}} – set to <kbd>left</kbd> for a left-floating box or, ideally, pass through with {{nowrap|<kbd><nowiki>|position={{{position|}}}</nowiki></kbd>}} to let this be set on a per-page basis. | ||
'''Example''' | |||
< | <syntaxhighlight lang="moin"> | ||
{{sister | {{sister project | ||
|project=commons | |project=commons | ||
|text=[[Wikimedia Commons]] has media related to: '''''[[Commons:{{{1|Special:Search/{{PAGENAME}}}}}|{{{2|{{{1|{{PAGENAME}}}}}}}}]]''''' | |text=[[Wikimedia Commons]] has media related to: '''''[[Commons:{{{1|Special:Search/{{PAGENAME}}}}}|{{{2|{{{1|{{PAGENAME}}}}}}}}]]''''' | ||
}} | }} | ||
</ | </syntaxhighlight> | ||
{{sister | {{sister project | ||
|project=commons | |project=commons | ||
|text=[[Wikimedia Commons]] has media related to: '''''[[Commons:{{{1|Special:Search/{{PAGENAME}}}}}|{{{2|{{{1|{{PAGENAME}}}}}}}}]]''''' }} | |text=[[Wikimedia Commons]] has media related to: '''''[[Commons:{{{1|Special:Search/{{PAGENAME}}}}}|{{{2|{{{1|{{PAGENAME}}}}}}}}]]''''' }} | ||
===Location=== | ===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 [[WP:EL|external links]]. If no such section exists, then please place it at the top of the last section in the article. | 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 [[WP:EL|external links]]. If no such section exists, then please place it at the top of the last section in <nowiki>the article</nowiki>. | ||
On [[WP:DAB|disambiguation pages]], this template should be listed above other text, but below any cleanup templates, images, infoboxes or navboxes.<!-- Per WP:ACCESS, cleanup templates, images, infoboxes, and navboxes are always first. --> | On [[WP:DAB|disambiguation pages]], this template should be listed above other text, but below any cleanup templates, images, infoboxes or navboxes.<!-- Per WP:ACCESS, cleanup templates, images, infoboxes, and navboxes are always<nowiki> first</nowiki>. --> | ||
== | ==Template data== | ||
{{TemplateDataHeader}} | |||
<templatedata>{ | |||
"description": "Creates a small box with a links to an article on a sister projects of wikipedia.", | |||
"params": { | |||
"project": { | |||
"label": "Project", | |||
"description": "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.", | |||
"type": "string", | |||
"required": true | |||
}, | |||
"text": { | |||
"label": "Text", | |||
"description": "Text of the message e.g. [[Wikimedia Commons]] has media related to: '''''[[Commons:Alcatraz]]'''''", | |||
"type": "string", | |||
"required": true | |||
}, | |||
"below": { | |||
"label": "Below", | |||
"description": "Optional text to display in a full-width row below the main content. Use sparingly.", | |||
"type": "string", | |||
"required": false | |||
}, | |||
"position": { | |||
"label": "Position", | |||
"description": "Position to display the box: 'left' floats the box to the left rather than the default, which is on the right.", | |||
"type": "string", | |||
"required": false | |||
} | |||
}}</templatedata> | |||
* | ==Images used== | ||
This template potentially displays the following images. | |||
* [[File:Commons-logo.svg|27x27px|link=|alt=]] [[:File:Commons-logo.svg|Wikimedia Commons logo]] <code>commons</code> | |||
* [[File:Wikimedia Community Logo.svg|27x27px|link=|alt=]] [[:File:Wikimedia Community Logo.svg|Meta-Wiki logo]] <code>meta</code>, <code>metawiki</code>, or <code>m</code> | |||
* [[File:Wikibooks-logo-en-noslogan.svg|27x27px|link=|alt=]] [[:File:Wikibooks-logo-en-noslogan.svg|Wikibooks logo]] <code>wikibooks</code>, <code>wbk</code>, <code>wb</code>, or <code>b</code> | |||
* [[File:Wikidata-logo.svg|27x27px|link=|alt=]] [[:File:Wikidata-logo.svg|Wikidata logo]] <code>wikidata</code> or <code>data</code> | |||
* [[File:Wikiquote-logo.svg|27x27px|link=|alt=]] [[:File:Wikiquote-logo.svg|Wikiquote logo]] <code>wikiquote</code>, <code>quote</code>, <code>wqt</code>, or <code>q</code> | |||
* [[File:Wikipedia-logo-v2.svg|27x27px|link=|alt=]] [[:File:Wikipedia-logo-v2.svg|Wikipedia logo]] <code>wikipedia</code>, <code>wp</code>, or <code>w</code> | |||
* [[File:Wikisource-logo.svg|27x27px|link=|alt=]] [[:File:Wikisource-logo.svg|Wikisource logo]] <code>wikisource</code>, <code>source</code>, <code>ws</code>, or <code>s</code> | |||
* [[File:Wiktionary-logo-v2.svg|27x27px|link=|alt=]] [[:File:Wiktionary-logo-v2.svg|Wiktionary logo]] <code>wiktionary</code>, <code>wkt</code>, <code>wdy</code>, or <code>d</code> | |||
* [[File:Wikinews-logo.svg|27x27px|link=|alt=]] [[:File:Wikinews-logo.svg|Wikinews logo]] <code>wikinews</code>, <code>news</code>, <code>wnw</code>, or <code>n</code> | |||
* [[File:Wikispecies-logo.svg|27x27px|link=|alt=]] [[:File:Wikispecies-logo.svg|Wikispecies logo]] <code>wikispecies</code> or <code>species</code> | |||
* [[File:Wikiversity-logo.svg|27x27px|link=|alt=]] [[:File:Wikiversity-logo.svg|Wikiversity logo]] <code>wikiversity</code>, <code>wvy</code>, or <code>v</code> | |||
* [[File:Wikivoyage-Logo-v3-icon.svg|27x27px|link=|alt=]] [[:File:Wikivoyage-Logo-v3-icon.svg|Wikivoyage logo]] <code>wikivoyage</code>, <code>voyage</code>, or <code>voy</code> | |||
* [[File:Mediawiki.png|27x27px|link=|alt=]] [[:File:Mediawiki.png|MediaWiki logo]] <code>mediawiki</code> or <code>mw</code> | |||
* [[File:Wikimedia Outreach.png|27x27px|link=|alt=]] [[:File:Wikimedia Outreach.png|Wikimedia Outreach logo]] <code>outreachwiki</code> or <code>outreach</code> | |||
* [[File:Incubator-notext.svg|27x27px|link=|alt=]] [[:File:Incubator-notext.svg|Wikimedia Incubator logo]] <code>incubator</code> | |||
* [[File:Wikimedia-logo.svg|27x27px|link=|alt=]] [[:File:Wikimedia-logo.svg|Wikimedia logo]] default | |||
== See also == | |||
* {{tl|sister-inline}}, compatible template for inline use with preceding bullets or indentation | |||
* {{tl|sister project links}} | |||
* {{tl|side box}}, the meta-template used for floated side boxes like {{tl|sister project}} | |||
* {{tl|Subject bar}}, a comprehensive horizontal template | |||
<includeonly>{{Sandbox other|| | |||
[[Category:Interwiki link templates| ]] | [[Category:Interwiki link templates| ]] | ||
[[Category:Exclude in print|{{PAGENAME}}]] | [[Category:Exclude in print|{{PAGENAME}}]] | ||
}}</includeonly> | |||
</includeonly> |
Latest revision as of 05:11, 3 September 2020
This is a documentation subpage for Template:Sister project. It may contain usage information, categories and other content that is not part of the original template page. |
This template is used on approximately 962,000 pages, or roughly 14371% of all pages. To avoid major disruption and server load, any changes should be tested in the template's /sandbox or /testcases subpages, or in your own user subpage. The tested changes can be added to this page in a single edit. Consider discussing changes on the talk page before implementing them. |
This template uses Lua: |
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">
</syntaxhighlight>
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
TemplateData for Sister project
Creates a small box with a links to an article on a sister projects of wikipedia.
Parameter | Description | Type | Status | |
---|---|---|---|---|
Project | project | 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. | String | required |
Text | text | Text of the message e.g. [[Wikimedia Commons]] has media related to: '''''[[Commons:Alcatraz]]''''' | String | required |
Below | below | Optional text to display in a full-width row below the main content. Use sparingly. | String | optional |
Position | position | Position to display the box: 'left' floats the box to the left rather than the default, which is on the right. | String | optional |
Images used
This template potentially displays the following images.
- Wikimedia Commons logo
commons
- Meta-Wiki logo
meta
,metawiki
, orm
- Wikibooks logo
wikibooks
,wbk
,wb
, orb
- Wikidata logo
wikidata
ordata
- Wikiquote logo
wikiquote
,quote
,wqt
, orq
- Wikipedia logo
wikipedia
,wp
, orw
- Wikisource logo
wikisource
,source
,ws
, ors
- Wiktionary logo
wiktionary
,wkt
,wdy
, ord
- Wikinews logo
wikinews
,news
,wnw
, orn
- Wikispecies logo
wikispecies
orspecies
- Wikiversity logo
wikiversity
,wvy
, orv
- Wikivoyage logo
wikivoyage
,voyage
, orvoy
- MediaWiki logo
mediawiki
ormw
- Wikimedia Outreach logo
outreachwiki
oroutreach
- Wikimedia Incubator logo
incubator
- Wikimedia logo default
See also
- {{sister-inline}}, compatible template for inline use with preceding bullets or indentation
- {{sister project links}}
- {{side box}}, the meta-template used for floated side boxes like {{sister project}}
- {{Subject bar}}, a comprehensive horizontal template