Template:Subject bar/doc: Difference between revisions

From Zoophilia Wiki
Jump to navigationJump to search
meta>Jay D. Easy
mNo edit summary
meta>Jay D. Easy
(final tweaks)
Line 2: Line 2:
{{Documentation subpage}}
{{Documentation subpage}}
{{High-use|11679}}
{{High-use|11679}}
This navigational template is intended be placed at the end of an article, after the ''References'' or ''External links'' and before any navboxes and [[WP:Category|categories]]. It offers an variant to several floating box templates that link to [[Wikipedia:Books|books]], [[Portal:Contents/Portals|portals]], and [[Wikipedia:Wikimedia sister projects|Wikipedia's sister projects]] but also typically cause formatting issues because of their size and alignment.
{{Lua|Module:subject bar}}
{{Lua|Module:subject bar}}
{{Uses TemplateStyles|Template:Subject bar/styles.css}}
{{Uses TemplateStyles|Template:Subject bar/styles.css}}
This navigational template is intended be placed at the end of an article, after the ''References'' or ''External links'' and before any navboxes and [[WP:Category|categories]]. It offers an variant to several floating box templates that link to [[Wikipedia:Books|books]], [[Portal:Contents/Portals|portals]], and [[Wikipedia:Wikimedia sister projects|Wikipedia's sister projects]] but also typically cause formatting issues because of their size and alignment.


== Usage ==
== Usage ==
Line 82: Line 83:
: <code><nowiki>{{Subject bar|commons = y|commons-search = Category:Lemuriformes|species = y|species-search = Lemuriformes|book = Lemurs|portal1 = Primates|portal2 = Madagascar}}</nowiki></code>
: <code><nowiki>{{Subject bar|commons = y|commons-search = Category:Lemuriformes|species = y|species-search = Lemuriformes|book = Lemurs|portal1 = Primates|portal2 = Madagascar}}</nowiki></code>
:; Result
:; Result
{{Subject bar|commons=y|commons-search=Category:Lemuriformes|species=y|species-search=Lemuriformes|book=Lemurs|portal1=Primates|portal2=Madagascar}}&nbsp;<br />{{hr|2}}
{{Subject bar|commons=y|commons-search=Category:Lemuriformes|species=y|species-search=Lemuriformes|book=Lemurs|portal1=Primates|portal2=Madagascar}}&nbsp;<br /><hr />


Example page: [[Ring-tailed lemur]]
Example page: [[Ring-tailed lemur]]
Line 90: Line 91:
{{Subject bar|book1=Lemurs|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}}
{{Subject bar|book1=Lemurs|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}}


=== See also ===
== See also ==
{{div col|colwidth=20em}}
{{div col|colwidth=20em}}
* [[Wikipedia:Template messages/Sister projects]]
* [[Wikipedia:Template messages/Sister projects]]

Revision as of 14:48, 3 June 2019

This navigational template is intended be placed at the end of an article, after the References or External links and before any navboxes and categories. It offers an 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.

Lua error in Module:TNT at line 159: Missing JsonConfig extension; Cannot load https://commons.wikimedia.org/wiki/Data:I18n/Uses TemplateStyles.tab.

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 "books", that part of the template will not appear on the page.

All parameters, horizontal
{{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 = |book = |portal = |spoken = }}
All parameters, vertical
{{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    = 
 |book           = 
 |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 page: Lemur

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

Script error: No such module "subject bar". 


Example page: Ring-tailed lemur

Markup
{{Subject bar|book1 = Lemurs|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

Script error: No such module "subject bar".

See also