Template:Sister project/doc: Difference between revisions

From Zoophilia Wiki
Jump to navigationJump to search
meta>Billinghurst
m (typo fix)
m (66 revisions imported)
 
(47 intermediate revisions by 36 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}}}}}}}}]]''''' }}


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


=== Use with indenting characters ===
==Template data==
There is a known issue with Mediawiki software that causes this template, and all templates built with a table, to display with no box when indented with ''':''' or '''*''' characters.
{{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>


;Examples
==Images used==
<pre>
This template potentially displays the following images.
:{{sister
* [[File:Commons-logo.svg|27x27px|link=|alt=]] [[:File:Commons-logo.svg|Wikimedia Commons logo]] <code>commons</code>
|project=wikispecies
* [[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>
|text=[[Wikispecies]] has media related to: '''''[[Wikispecies:{{{1|Special:Search/{{PAGENAME}}}}}|{{{2|{{{1|{{PAGENAME}}}}}}}}]]'''''
* [[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>
</pre>
* [[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>
:{{sister
* [[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>
|project=wikispecies
* [[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>
|text=[[Wikispecies]] has media related to: '''''[[Wikispecies:{{{1|Special:Search/{{PAGENAME}}}}}|{{{2|{{{1|{{PAGENAME}}}}}}}}]]'''''
* [[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>
<pre>
* [[File:Wikiversity-logo.svg|27x27px|link=|alt=]] [[:File:Wikiversity-logo.svg|Wikiversity logo]] <code>wikiversity</code>, <code>wvy</code>, or <code>v</code>
*{{sister
* [[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>
|project=wikinews
* [[File:Mediawiki.png|27x27px|link=|alt=]] [[:File:Mediawiki.png|MediaWiki logo]] <code>mediawiki</code> or <code>mw</code>
|text=[[Wikinews]] has media related to: '''''[[Wikinews:{{{1|Special:Search/{{PAGENAME}}}}}|{{{2|{{{1|{{PAGENAME}}}}}}}}]]'''''
* [[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>
</pre>
* [[File:Wikimedia-logo.svg|27x27px|link=|alt=]] [[:File:Wikimedia-logo.svg|Wikimedia logo]] default
*{{sister
|project=wikinews
|text=[[Wikinews]] has media related to: '''''[[Wikinews:{{{1|Special:Search/{{PAGENAME}}}}}|{{{2|{{{1|{{PAGENAME}}}}}}}}]]'''''
}}
 
While this may produce desirable results, this should be considered a bug and not a feature, and as such may disappear in future software updates. Further, this usage should be avoided in article space, as it would lead to inconsistency, and reduce the usefulness of these templates.
 
=== See also ===


*{{tlx|side box}}
== 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>
<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>
[[ar:قالب:شقيقة]]
[[be-x-old:Шаблён:Роднасны праект]]
[[id:Templat:Sister]]
[[ja:Template:Sister]]
[[pt:Predefinição:Irmão]]
[[tr:Şablon:Kardeş proje]]
[[uk:Шаблон:Sister]]
[[vi:Tiêu bản:Dự án liên quan]]
</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