Template:Sister project/doc: Difference between revisions

From Zoophilia Wiki
Jump to navigationJump to search
meta>Salix alba
(template data)
m (66 revisions imported)
 
(26 intermediate revisions by 20 users not shown)
Line 1: Line 1:
{{Documentation subpage}}
{{Documentation subpage}}
{{high-risk| 210,000+ }}
<!-- PLEASE ADD CATEGORIES AT THE BOTTOM OF THIS PAGE -->
<!-- PLEASE ADD CATEGORIES AND INTERWIKIS AT THE BOTTOM OF THIS PAGE -->
{{High-risk|944000}}
{{Lua|Module:Side box}}


This is a meta-template used for creating interwiki links to other [[WP: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.
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 ===
== Usage ==


*{{para|text}} &ndash; text of the message
*{{para|text}} &ndash; text of the message
*{{para|project}} &ndash; the sister project to link to.  Used to select which project logo is displayed.
*{{para|project}} &ndash; the sister project to link to.  Used to select which project logo is displayed.
*{{para|below}} &ndash; optional text to display in a full-width row below the main content.  Use sparingly
*{{para|below}} &ndash; optional text to display in a full-width row below the main content.  Use sparingly
*{{para|position}} &ndash; set to <tt>left</tt> for a left-floating box or, ideally, pass through with {{nowrap|<tt><nowiki>|position={{{position|}}}</nowiki></tt>}} to let this be set on a per-page basis.  
*{{para|position}} &ndash; 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
'''Example'''
<pre>
<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}}}}}}}}]]'''''
}}
}}
</pre>
</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}}}}}}}}]]''''' }}
Line 28: Line 29:
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>. -->
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===
==Template data==
{{TemplateDataHeader}}
<templatedata>{
<templatedata>{
"description": "Creates a small box with a links to an article on a sister projects of wikipedia.",
"description": "Creates a small box with a links to an article on a sister projects of wikipedia.",
Line 58: Line 60:
}}</templatedata>
}}</templatedata>


=== See also ===
==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-inline}}, compatible template for inline use with preceding bullets or indentation
* {{tl|side box}}, the meta-template used for floated side boxes like {{tl|sister}}
* {{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>
<includeonly>{{Sandbox other||
<!-- CATEGORIES AND INTERWIKIS HERE, THANKS -->
[[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 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

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

TemplateData for Sister project

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

Template parameters

ParameterDescriptionTypeStatus
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.

Stringrequired
Texttext

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

Stringrequired
Belowbelow

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

Stringoptional
Positionposition

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

Stringoptional

Images used

This template potentially displays the following images.

See also