Difference between revisions of "Template:Sister project/doc"

From Second Life Wiki
Jump to navigation Jump to search
(Shamelessly copied from wikipedia.org and adapted for SL Wiki)
 
m (Placed wikidata logo using PNG (because SVG support is still broken on the SL WIki))
 
Line 69: Line 69:
* [[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: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: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:Wikidata-logo.png|27x27px|link=|alt=]] [[:File:Wikidata-logo.png|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: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:Wikipedia-logo-v2.svg|27x27px|link=|alt=]] [[:File:Wikipedia-logo-v2.svg|Wikipedia logo]] <code>wikipedia</code>, <code>wp</code>, or <code>w</code>

Latest revision as of 15:25, 2 February 2023

This is a meta-template used for creating interwiki links to other "Wikipedia logo"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 "Wikipedia logo"external links. If no such section exists, then please place it at the top of the last section in the article.

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

Template data

This is the "Wikipedia logo"TemplateData for this template used by TemplateWizard, "Wikipedia logo"VisualEditor and other tools. Click here to see a monthly parameter usage report for this template based on this TemplateData.

TemplateData for Sister project

{
"description": "Creates a small box with a links to an article on a sister project 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
  }
}}

Images used

This template potentially displays the following images.

See also