• Home
  • Random
  • Log in
  • Settings
  • About English Wikipedia @ Freddythechick
English Wikipedia @ Freddythechick

Template:Sister bar

  • Language
  • Watch
  • View source
Sister bar 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
Template documentation[view] [edit] [history] [purge]
This template uses Lua:
  • Module:Sister project links (sandbox)
  • Module:Commons link (sandbox)

The {{Sister bar}} template provides links corresponding pages on various Wikimedia sister projects, similar to {{Sister project links}}. Unlike that other template, {{Sister bar}} creates a horizontal bar for the sister projects links. This template is designed for use when there is not enough space in the External links section for a Sister project links box. It is designed to go after other navboxes and {{Portal bar}}.

The following pages are sought by the template, in order:

  • An explicit page chosen by an editor (if provided)
  • A sitelink in Wikidata (if exists)
  • A search page on the sister project

Sending a reader to a search page can be an unpleasant experience, if there is no corresponding page for that subject. Editors have a choice between two methods to prevent this negative experience:

  • Manually check each project for a relevant page, if missing, then set argument to "no" (e.g., |wikt=n)
  • Use "automatic mode", which only displays a sister project by default if sitelink exists (e.g., |auto=yes)

Contents

  • 1 Parameters
    • 1.1 Default display
    • 1.2 Tracking categories
    • 1.3 Interwiki link
  • 2 TemplateData

Parameters

<syntaxhighlight lang="wikitext" style="overflow:auto;">

Sister bar 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

All parameters:

Sister bar 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

</syntaxhighlight>

Default display

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

Tracking categories

  • Category:Pages using Sister project links with unknown parameters (0)
  • Category:Pages with single-entry sister bar (417)

Interwiki link

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

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

TemplateData for Sister bar

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

Template parameters

ParameterDescriptionTypeStatus
Search Parameter1

Use if the ''search parameter'' differs from the 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.

Stringoptional
Display namedisplay

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

Stringoptional
Wiktionary linkwikt

Wiktionary link to show. Acceptable values are a page name, "yes", and "no". The default is "Yes" (find page automatically).

Default
Yes
Stringoptional
Commons linkc commons

Commons link to show. Acceptable values are a page name, "yes" and "no". The default is "Yes" (find page automatically).

Default
Yes
Stringoptional
Commons category?commonscat

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

Default
No
Stringoptional
Wikinews linkn

Wikinews link to show. Acceptable values are a page name, "yes" and "no". The default is "Yes" (find page automatically).

Default
Yes
Stringoptional
Wikiquote linkq

Wikiquote link to show. Acceptable values are a page name, "yes" and "no". The default is "Yes" (find page automatically).

Default
Yes
Stringoptional
Wikisource links

Wikisource link to show. Acceptable values are a page name, "yes" and "no". The default is "Yes" (find page automatically).

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". The default is "No".

Default
No
Stringoptional
Wikibooks linkb

Wikibooks link to show. Acceptable values are a page name, "yes" and "no". The default is "Yes" (find page automatically).

Default
Yes
Stringoptional
Cookbookcookbook

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

Default
Yes
Stringoptional
Wikivoyage linkvoy

Wikivoyage link to show. Acceptable values are a page name, "yes" (find page automatically), and "no". The default is "No".

Default
No
Stringoptional
Wikiversity linkv

Wikiversity link to show. Acceptable values are a page name, "yes", and "no". The default is "Yes" (find page automatically).

Default
Yes
Stringoptional
Wikidata linkd

Wikidata link to show. Acceptable values are a QID, "yes" (find page automatically), and "no". The default is "No".

Default
No
Stringoptional
Wikispecies taxon linkspecies

Wikispecies link to show. Acceptable values are a page name, "yes" (find page automatically), and "no". The default is "No".

Default
No
Stringoptional
Wikispecies author linkspecies_author

Wikispecies author link to show. Acceptable values are a page name, "yes"(find page automatically), and "no". The default is "No".

Default
No
Stringoptional
Meta linkm

Meta link to show. Acceptable values are a page name, "yes" (find page automatically), and "no". The default is "No".

Default
No
Stringoptional
MediaWiki linkmw

MediaWiki link to show. Acceptable values are a page name, "yes" (find page automatically) and "no". The default is "No".

Default
No
Stringoptional
Wikifunctions linkf

Wikifunctions link to show. Acceptable values are a page name, "yes" (find page automatically) and "no". The default is "No".

Default
No
Stringoptional
The above documentation is transcluded from Template:Sister bar/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://enwiki.freddythechick.net/index.php?title=Template:Sister_bar&oldid=6087422"
Last edited on 11 August 2023, at 07:05

Languages

      This page is not available in other languages.

      English Wikipedia @ Freddythechick
      • This page was last edited on 11 August 2023, at 07:05.
      • Content is available under Creative Commons Attribution-ShareAlike 4.0 unless otherwise noted.
      • About English Wikipedia @ Freddythechick
      • Desktop