Jump to content
 







Main menu
   


Navigation  



Main page
Contents
Current events
Random article
About Wikipedia
Contact us
Donate
 




Contribute  



Help
Learn to edit
Community portal
Recent changes
Upload file
 








Search  

































Create account

Log in
 









Create account
 Log in
 




Pages for logged out editors learn more  



Contributions
Talk
 



















Contents

   



(Top)
 


1 Usage  





2 Parameters  





3 Parameters explained  



3.1  Other parameters  







4 Examples  





5 Portal bar  





6 See also  





7 TemplateData  














Template:Subject bar






العربية
تۆرکجه

 / Bân-lâm-gú

Cebuano
فارسی
Fiji Hindi
Føroyskt

Հայերեն
ि
Bahasa Indonesia
Jawa
ि


Bahasa Melayu

ି


Português
Română
Scots

سنڌي
Slovenščina
کوردی
Српски / srpski
Tagalog
ி


Türkçe
اردو
Tiếng Vit


 

Edit links
 









Template
Talk
 

















Read
View source
View history
 








Tools
   


Actions  



Read
View source
View history
 




General  



What links here
Related changes
Upload file
Special pages
Permanent link
Page information
Get shortened URL
Download QR code
Wikidata item
 




Print/export  



Download as PDF
Printable version
 




In other projects  



Wikiversity
 
















Appearance
   

 





Permanently protected template

From Wikipedia, the free encyclopedia
 


This navigational template offers a variant to several floating box templates that link to portals, and Wikipedia's sister projects but also typically cause formatting issues because of their size and alignment.

It is intended to be placed at the end of an article, after the references, external links, navboxes and before any authority control template or categories.

Usage

No single parameter is required, however, at least one portal or sister project should be utilized with the use of this template. Since Wikipedia articles typically are in the domain of one or more WikiProjects, and since WikiProjects often have a portal, almost every article should list at least one portal. None of the parameters should be capitalized.

Parameters

When copying all parameters in either the vertical or horizontal layouts, delete those which are not needed. If no links are needed for a particular type, such as the historical "books", that part of the template will not appear on the page.

Parameter meanings (quick list). Alphabetical order: b: Wikibooks. commons: WikiMedia Commons. d: Wikidata. n: Wikinews. q: Wikiquote. s: Wikisource. species: Wikispecies. v: Wikiversity. voy: Wikivoyage. wikt: Wiktionary.

All parameters, horizontal. Parameters in order they show up in subject bar.
{{Subject bar|commons = y|species = y|voy = y|n = y|wikt = y|b = y|q = y|s = y|v = y|d = y|portal = }}
All parameters, horizontal. In alphabetical order, except for portal which is often removed.
{{Subject bar|b = |commons = |d = |n = |q = |s = |species = |v = |voy = |wikt = |portal = }}
All parameters, vertical. In alphabetical order, except for portal which is often removed.
{{Subject bar
 |b= 
 |commons        = 
 |d= 
 |n= 
 |q= 
 |s= 
 |species        = 
 |v= 
 |voy            = 
 |wikt           =  
 |portal         = 
}}

Parameters explained

b
Wikibooks page to link to, "yes" means use wikidata to search for page
commons
WikiMedia Commons page (or Category:) to link to, "yes" means use wikidata to search for page
d
Wikidata page to link to, "yes" means use wikidata to search for page
n
Wikinews page to link to, "yes" means use wikidata to search for page
q
Wikiquote page to link to, "yes" means use wikidata to search for page
s
Wikisource page (or Author:) to link to, "yes" means use wikidata to search for page
species
Wikispecies page to link to, "yes" means use wikidata to search for page
v
Wikiversity page to link to, "yes" means use wikidata to search for page
voy
Wikivoyage page to link to, "yes" means use wikidata to search for page
wikt
Wiktionary page to link to, "yes" means use wikidata to search for page

Other parameters

portal
Use portal### where ### is any number to link to a portal
auto
set |auto=1 to use Wikidata to find sister links
search
override default search string (= title of page)
display
set the display string on the sister links bar
commonscat
link to Commons category instead of gallery
author
link to Species author instead of taxon

Note: positional arguments are interpreted as portals, will be appended after any named portal arguments.

Examples

Example: Simplest case.

auto=1: Try this first to look up sister project links in Wikidata.

Markup
{{Subject bar|auto=1}}
Result (if used on Lemur)

Example page: Lemur

Markup
{{Subject bar|commons= Category:Lemuriformes|species = Lemuriformes|portal1 = Primates|portal2 = Madagascar}}
Result
  • flag Madagascar
  • Example page: Ring-tailed lemur

    Markup
    {{Subject bar|portal1 = Primates|portal2 = Madagascar|commons = Category:Lemur catta |species = Lemur catta|n = Ring-tailed lemur|wikt = Lemur|b = Ring-tailed lemur|q = Ring-tailed lemur|s = Ring-tailed lemur|v = Ring-tailed lemur|voy = Madagascar}}
    Result
  • flag Madagascar
  • Portal bar

    {{Portal bar}} is a subset of {{Subject bar}}, where only positional arguments are allowed. For example:

    Markup
    {{Portal bar|COVID-19|Medicine|Viruses}}
    Result
  • icon Medicine
  • icon Viruses
  • See also

  • {{Commons}}
  • {{Commons category}}
  • {{Commons category multi}}
  • {{Commons and category}}
  • {{Commons-inline}}
  • {{Commons category-inline}}
  • {{Portal}}
  • {{Portal bar}}
  • {{Sister project links}}
  • {{Sister bar}}
  • {{Cross-wiki user}}
  • TemplateData

    TemplateData documentation used by VisualEditor and other tools

    See a monthly parameter usage report for Template:Subject bar in articles based on its TemplateData.

    TemplateData for Subject bar

    This template adds a bar of portals and sister links. It is usually used just above an article's navboxes.

    Template parameters[Edit template data]

    ParameterDescriptionTypeStatus
    portal1portal1 1

    The first portal, without surrounding text. For example, use "Science" to display the science portal.

    Lineoptional
    portal2portal2 2

    The second portal.

    Lineoptional
    portal3portal3 3

    The third portal.

    Lineoptional
    portal4portal4 4

    The fourth portal

    Lineoptional
    portal5portal5 5

    The fifth portal.

    Lineoptional
    Use wikidata to fill sister link 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
    Search stringsearch

    String to search in sister projects.

    Default
    Page title
    Stringoptional
    Commons categorycommonscat

    Use if link to Commons category is desired instead of gallery.

    Stringoptional
    Wikispecies authorauthor

    Use if link to Wikispecies author is desired instead of taxon.

    Stringoptional
    Wiktionary linkwikt wikt-search

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

    Default
    No
    Stringoptional
    Commons linkcommons c c-search commons-search

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

    Default
    No
    Stringoptional
    Wikinews linkn n-search

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

    Default
    No
    Stringoptional
    Wikiquote linkq q-search

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

    Default
    No
    Stringoptional
    Wikisource links s-search

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

    Default
    No
    Stringoptional
    Wikibooks linkb b-search

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

    Default
    No
    Stringoptional
    Wikivoyage linkvoy voy-search

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

    Default
    No
    Stringoptional
    Wikiversity linkv v-search

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

    Default
    No
    Stringoptional
    Wikidata linkd d-search

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

    Default
    No
    Stringoptional
    Wikispecies taxon linkspecies species-search

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

    Default
    No
    Stringoptional

    Retrieved from "https://en.wikipedia.org/w/index.php?title=Template:Subject_bar&oldid=942385494"

    Categories: 
    Lua-based templates
    Wikipedia Portal navflags
    Interwiki link templates
    Hidden categories: 
    Wikipedia template-protected templates
    Templates using TemplateData
     



    This page was last edited on 24 February 2020, at 10:07 (UTC).

    Text is available under the Creative Commons Attribution-ShareAlike License 4.0; additional terms may apply. By using this site, you agree to the Terms of Use and Privacy Policy. Wikipedia® is a registered trademark of the Wikimedia Foundation, Inc., a non-profit organization.



    Privacy policy

    About Wikipedia

    Disclaimers

    Contact Wikipedia

    Code of Conduct

    Developers

    Statistics

    Cookie statement

    Mobile view



    Wikimedia Foundation
    Powered by MediaWiki