• Home
  • Random
  • Nearby
  • Log in
  • Settings
Donate Now If Wikipedia is useful to you, please give today.
  • About Wikipedia
  • Disclaimers
Wikipedia

Template:Sister project links/sandbox

  • Template
  • Talk
  • Language
  • Watch
  • Edit
< Template:Sister project links
Sister project links/sandbox at Wikipedia's sister projects
  • Definitions from Wiktionary
  • Media from Commons
  • News from Wikinews
  • Quotations from Wikiquote
  • Texts from Wikisource
  • Textbooks from Wikibooks
  • Resources from Wikiversity
This is the template sandbox page for Template:Sister project links (diff).
See also the companion subpage for test cases.
Template documentation[view] [edit] [history] [purge]
WarningThis template is used on approximately 13,000 pages and changes may be widely noticed. Test changes in the template's /sandbox or /testcases subpages, or in your own user subpage. Consider discussing changes on the talk page before implementing them.
This template uses Lua:
  • Module:Sister project links (sandbox)
  • Module:Commons link (sandbox)
CSSThis template uses TemplateStyles:
  • Module:Sister project links/styles.css (sandbox)
Sister project links/sandbox at Wikipedia's sister projects
  • Definitions from Wiktionary
  • Media from Commons
  • News from Wikinews
  • Quotations from Wikiquote
  • Texts from Wikisource
  • Textbooks from Wikibooks
  • Resources from Wikiversity

The {{Sister project links}} template provides one box with links to corresponding pages on various Wikimedia sister projects. The box looks for a page on the subject by checking for the following (in order of preference):

  1. A page specified by an editor
  2. A sitelink in Wikidata
  3. A page that matches the topic name (by searching the sister project)

If none of these three methods returns a page, then the link sends the reader to the search results page, which lists pages that contain matches (exact or partial) for the search string.

Leading a reader to a search results page may confuse or disappoint them. So, before you enable a link to a sister project, it's best to verify that it has a page on the topic. You can do this in one of two ways:

  • Manually check each project for a relevant page. If none exists, set the argument to "no":
  • |wikt=no or |wikt=n
  • Use "automatic mode", which only displays a sister project by default if a sitelink exists:
  • |auto=yes or |auto=y

To enable automatic mode for all links, set {{Sister project links|auto=yes}}, or use the template {{Sister project auto}}.

Contents

  • 1 Usage
    • 1.1 Default display
    • 1.2 Location
    • 1.3 Interwiki link
  • 2 TemplateData
  • 3 Images used
  • 4 Tracking categories
  • 5 See also

Usage

edit
Sister project links/sandbox at Wikipedia's sister projects
  • Definitions from Wiktionary
  • Media from Commons
  • News from Wikinews
  • Quotations from Wikiquote
  • Texts from Wikisource
  • Textbooks from Wikibooks
  • Resources from Wikiversity
  • Travel information from Wikivoyage
  • Taxa from Wikispecies
  • Authorship from Wikispecies
  • English edition of Wikipedia
  • Data from Wikidata
  • Discussions from Meta-Wiki
  • Documentation from MediaWiki
  • Functions from Wikifunctions
{{Sister project links
<!-- Configuration parameters. -->
 |1= |display= |auto= |collapsible= |position= |style=

<!-- Note: The order of the projects is as they appear in the navbox. -->
<!-- First part: Projects that default to "yes" when auto=no -->
 |wikt= |c= |n= |q= |s= |b= |v=

<!-- Second part: Projects that default to "no" when auto=no -->
 |voy= |species= |species_author= |iw= |d= |m= |mw= |f=

<!-- The following parameters specifying search options for pages above. -->
 |commonscat= <!-- (relevant for c) force link to commons category -->
 |author= <!-- (relevant for s) force search for author name in wikisource -->
 |cookbook= <!-- (relevant for b) force link to cookbook at wikibooks -->
}}

Example with all parameters and all projects displayed (see right):

{{Sister project links
 |1= |display= |auto= |collapsible= |position= |style=
 |wikt= |c= |n= |q= |s= |b= |v=
 |voy=yes |species=yes |species_author=John |iw=en |d=yes |m=yes |mw=yes |f=yes
 |commonscat= |author= |cookbook=
}}

Default display

edit

For any project parameter, there are four acceptable values:

  • "yes" means find a reasonable link for the sister project (Wikidata, or default back to search)
  • "no" means exclude this sister project: no link
  • a string means link to the page with whose title is that string
  • blank or missing means use the default
    • If |auto=yes, default is either use Wikidata (if present), or drop the link
    • If |auto=no, if project is in the "yes" list above, either use Wikidata or search. Otherwise drop the link.

Location

edit
If using a large, graphical template produces odd layout problems, like the excessive white space shown on the right of this screenshot, then switch to a different sister template.

Generally:

☒N Do not place this template or any box-type template in a section all by itself.
☒N Do not place this template in a section containing columns without floating left.
☒N Do not indent this template with colon (:) or a bullet (*) markup.

Specifically:

  • In articles, this template should be placed at the top of the last section on the page so that it floats to the right of that section.
    • See Wikipedia:Wikimedia sister projects#Where to place links for more information and alternatives.
  • In disambiguation pages, this template is usually placed at the top of the page.
  • In categories, this template should be grouped with other templates at the beginning of the category introduction. This avoids unnecessary white space as any text is floated around the template boxes.

Interwiki link

edit

The |iw= parameter is for use in articles about languages themselves. It is designed to be used instead of the {{InterWiki}} template: it links to the Main Page of Wikipedia that corresponds to the language code. See Template:InterWiki/doc for more information. Up to three sister Wikipedias can be linked, using |iw=, |iw1=, and |iw2=.

TemplateData

edit
This is the TemplateData for this template used by TemplateWizard, VisualEditor and other tools. See a monthly parameter usage report for Template:Sister project links in articles based on its TemplateData.

TemplateData for Sister project links

Displays a terminal window with a set of commands. If the titles in the individual sister projects differ, use the following parameters, which are taken from [[Help:Interwiki linking]]. The value "Yes" means that the page will be found automatically.

Template parameters[Edit template data]

ParameterDescriptionTypeStatus
Search term1

Use if the ''search term'' differs from the pagename. E.g. to change the capitalization for Wiktionary links

Default
{{PAGENAME}}
Stringoptional
Display namedisplay

Use if the ''display name'' is different from the search term. For example, the bear article would be 'Bears'.

Default
{{PAGENAME}}
Stringoptional
Use wikidata to fill defaultsauto

If auto="yes", then sister projects with wikidata sitelinks are filled-in, others are off by default. Each project can be overridden with its own parameter.

Default
No
Stringoptional
Collapsible?collapsible

Set to "yes" to make the template collapsible. Set to "collapsed" to make the template collapsible and initially collapsed.

Default
No
Stringoptional
Positionposition

Specifies whether the box floats to the left or right. The only acceptable value is "left" which causes the box to float to the left. Any other value (not specifying this parameter) activates the default. (Float to the right.)

Default
right
Stringoptional
CSS stylestyle

Optional CSS style specifications. Use with caution. (And don't use for evil!)

Stringoptional
Wiktionary linkwikt

Wiktionary link to show. Acceptable values are a page name, "yes", and "no".

Default
Yes
Stringoptional
Commons linkc commons

Commons link to show. Acceptable values are a page name, "yes" and "no".

Default
Yes
Stringoptional
Commons category?commonscat

Specifies whether a link to a category on Wikimedia Commons is shown. Can be "yes" or "no".

Default
No
Stringoptional
Wikinews linkn

Wikinews link to show. Acceptable values are a page name, "yes" and "no".

Default
Yes
Stringoptional
Wikiquote linkq

Wikiquote link to show. Acceptable values are a page name, "yes" and "no".

Default
Yes
Stringoptional
Wikisource links

Wikisource link to show. Acceptable values are a page name, "yes" and "no".

Default
Yes
Stringoptional
Wikisource author?author

Use for articles about authors to force the Wikisource links to include the "Author:" prefix. Can be set to "yes" or "no".

Default
No
Stringoptional
Wikibooks linkb

Wikibooks link to show. Acceptable values are a page name, "yes" and "no".

Default
Yes
Stringoptional
Cookbookcookbook

If yes, link to Cookbook at wikibooks. If string, use that string as article title in Cookbooks.

Default
No
Stringoptional
Wikiversity linkv

Wikiversity link to show. Acceptable values are a page name, "yes", and "no".

Default
Yes
Stringoptional
Wikivoyage linkvoy

Wikivoyage link to show. Acceptable values are a page name, "yes" and "no".

Default
No
Stringoptional
Wikispecies taxon linkspecies

Wikispecies link to show. Acceptable values are a page name, "yes" and "no".

Default
No
Stringoptional
Wikispecies author linkspecies_author

Wikispecies author link to show. Acceptable values are a page name, "yes" and "no". Even if "yes" it will be only displayed when species ≠ "yes"

Default
No
Stringoptional
Interwiki linkiw

Link to other language edition. Acceptable values are a Wikipedia language code (e.g., "de"), "yes" and "no".

Default
No
Stringoptional
Wikidata linkd

Wikidata link to show. Acceptable values are a QID, "yes" and "no".

Default
No
Stringoptional
Meta linkm

Meta link to show. Acceptable values are a page name, "yes" and "no".

Default
No
Stringoptional
MediaWiki linkmw

MediaWiki link to show. Acceptable values are a page name, "yes" and "no".

Default
No
Stringoptional
Wikifunctions linkf

Wikifunctions link to show. Acceptable values are a page name, "yes" and "no".

Default
No
Stringoptional

Images used

edit

This template potentially displays the following images:

Wiktionary logo wikt
Wikimedia Commons logo c or commons
Wikinews logo n
Wikiquote logo q
Wikisource logo s
Wikibooks logo b
Wikivoyage logo voy
Wikiversity logo v
Wikispecies logo species or species_author
Wikipedia logo iw
Wikidata logo d
Meta-Wiki logo m
MediaWiki logo mw
Wikifunctions logo f

Tracking categories

edit
  • Category:Pages using Sister project links with unknown parameters (0)
  • Category:Pages using Sister project links with default search (4,287)
  • Category:Pages using Sister project links with hidden wikidata (6,692)
  • Category:Pages using Sister project links with wikidata namespace mismatch (1,111)
  • Category:Pages using Sister project links with wikidata mismatch (636)
  • Category:Pages with empty sister project links (123)

See also

edit
  • Template:Sister project – used on more than one million pages
  • Template:Sister bar – a horizontal version
  • Template:Subject bar – a horizontal version that includes optional portals
  • Template:Commons
  • Wikipedia:Template index/Sister projects
  • Help:Interwiki linking
The above documentation is transcluded from Template:Sister project links/doc. (edit | history)
Editors can experiment in this template's sandbox (edit | diff) and testcases (edit) pages.
Add categories to the /doc subpage. Subpages of this template.
Retrieved from "https://en.wikipedia.org/w/index.php?title=Template:Sister_project_links/sandbox&oldid=1302286723"
Last edited on 24 July 2025, at 13:14

Languages

      This page is not available in other languages.

      Wikipedia
      • Wikimedia Foundation
      • Powered by MediaWiki
      • This page was last edited on 24 July 2025, at 13:14 (UTC).
      • Content is available under CC BY-SA 4.0 unless otherwise noted.
      • Privacy policy
      • About Wikipedia
      • Disclaimers
      • Contact Wikipedia
      • Code of Conduct
      • Developers
      • Statistics
      • Cookie statement
      • Terms of Use
      • Desktop