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  



2.1  Sister project parameters  





2.2  Other parameters  







3 Examples  





4 Portals  





5 See also  














Template:Subject bar/doc







Add links
 









Template
Talk
 

















Read
Edit
View history
 








Tools
   


Actions  



Read
Edit
View history
 




General  



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




Print/export  



Printable version
 
















Appearance
   

 






From Wikipedia, the free encyclopedia
 

< Template:Subject bar

This is an old revision of this page, as edited by Timeshifter (talk | contribs)at17:38, 26 July 2020 (Parameters: Order of parameters.). The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.
(diff)  Previous revision | Latest revision (diff) | Newer revision  (diff)

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

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

Usage

No single parameter is required, however, at least one book, 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.

All parameters, horizontal. Parameters in order they show up in subject bar.
{{subject bar|commons = y|commons-search = |species = y|species-search = |voy = y|voy-search = |n = y|n-search = |wikt = y|wikt-search = |b = y|b-search = |q = y|q-search = |s = y|s-search = |v = y|v-search = |d = y|d-search = |spoken = |portal = }}
All parameters, horizontal. In alphabetical order. Except for portal and spoken. Those 2 are often removed.
{{subject bar|b = |b-search = |commons = |commons-search = |d = |d-search = |n = |n-searc h =|q = |q-search = |s = |s-search = |species = |species-search = |v = |v-search = |voy = |voy-search = |wikt = |wikt-search = |portal = |spoken = }}
All parameters, vertical. In alphabetical order. Except for portal and spoken. Those 2 are often removed.
{{subject bar
 |b              = 
 |b-search       = 
 |commons        = 
 |commons-search = 
 |d              = 
 |d-search       = 
 |n              = 
 |n-search       = 
 |q              = 
 |q-search       = 
 |s              = 
 |s-search       = 
 |species        = 
 |species-search = 
 |v              = 
 |v-search       = 
 |voy            = 
 |voy-search     = 
 |wikt           = 
 |wikt-search    =  
 |portal         = 
 |spoken         = 
}}

Sister project parameters

Other parameters

book
Use book1 up to book10 to link to a book
portal
Use portal1 up to portal10 to link to a portal
spoken
To provide a link to the spoken Wikipedia, provide the name of the sound file, omitting the File: prefix

Examples

Example. Simplest.

All set to "y". Portal and spoken removed.

Markup
{{subject bar|b = y|b-search = |commons = y|commons-search = |d = y|d-search = |n = y|n-searc h =|q = y|q-search = |s = y|s-search = |species = y|species-search = |v = y|v-search = |voy = y|voy-search = |wikt = y|wikt-search = }}

Try this first. It will use the article name for all the sister links. Test them all, and adjust as necessary.



Example page: Lemur

Markup
{{Subject bar|commons = y|commons-search = Category:Lemuriformes|species = y|species-search = Lemuriformes|book = Lemurs|portal1 = Primates|portal2 = Madagascar}}
Result
  • flag Madagascar



  • Example page: Ring-tailed lemur

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

    {{Portal bar}} may be better since portals are internal links, and can go in the "See also" section if there is one. Portal bars are narrower too, and so they use less space. An example:

  • 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}}
  • {{Wikipedia-Books}}


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

    Hidden category: 
    Template documentation pages
     



    This page was last edited on 26 July 2020, at 17:38 (UTC).

    This version of the page has been revised. Besides normal editing, the reason for revision may have been that this version contains factual inaccuracies, vandalism, or material not compatible with the Creative Commons Attribution-ShareAlike License.



    Privacy policy

    About Wikipedia

    Disclaimers

    Contact Wikipedia

    Code of Conduct

    Developers

    Statistics

    Cookie statement

    Mobile view



    Wikimedia Foundation
    Powered by MediaWiki