Template:Subject bar/doc: Difference between revisions

From Zoophilia Wiki
Jump to navigationJump to search
meta>Maky
(add intro)
meta>Maky
(save)
Line 5: Line 5:


=== Usage ===
=== Usage ===
When copying all parameters in either the vertical or horizontal layouts, delete those which are not needed.
'''''Note''''': None of the parameters should be capitalized. For example, use "commons", "v", etc. - not "Commons", "V", etc.
 
===All 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 layout: <code><nowiki>{{Subject bar |book= |portal= |commons= |commons-search= |species= |species-search= |n= |n-search= |wikt= |wikt-search= |b= |b-search= |q= |q-search= |wikt= |wikt-search= |s= |s-search= |v= |v-search= }}</nowiki></code>
;All parameters, horizontal layout: <code><nowiki>{{Subject bar |book= |portal= |commons= |commons-search= |species= |species-search= |n= |n-search= |wikt= |wikt-search= |b= |b-search= |q= |q-search= |wikt= |wikt-search= |s= |s-search= |v= |v-search= }}</nowiki></code>
Line 33: Line 36:
</pre>
</pre>


===Using multiple books and portals===
The for articles linking to a single book or portal, use the sample code below.  If more than one book or portal is needed (up to 10 of each), append a number as follows:<br>
<code><nowiki>{{Subject bar |book1= |book2= |book3= | ... | |portal1= |portal2= |portal3= |...}}</nowiki></code>


{{User:Visionholder/Template:Subject bar|book1=Lemurs|book2=Subfossil lemurs|book3=Mesozoic mammals of Madagascar|portal1=Primates|portal2=Mammals|portal3=Madagascar|commons=y|commons-search=Category:Lemur catta|wikt=y|wikt-search=Lemur|b=y|b-search=Lemur|n=y|n-search=Lemur|q=y|q-search=Lemur|s=y|s-search=Author:Alison Jolly|v=y|v-search=Lemur|species=y|species-search=Lemur catta}}
{{User:Visionholder/Template:Subject bar|book1=Lemurs|book2=Subfossil lemurs|book3=Mesozoic mammals of Madagascar|portal1=Primates|portal2=Mammals|portal3=Madagascar|commons=y|commons-search=Category:Lemur catta|wikt=y|wikt-search=Lemur|b=y|b-search=Lemur|n=y|n-search=Lemur|q=y|q-search=Lemur|s=y|s-search=Author:Alison Jolly|v=y|v-search=Lemur|Species=y|species-search=Lemur catta}}


===See also===
===See also===

Revision as of 06:32, 2 February 2011

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

Usage

Note: None of the parameters should be capitalized. For example, use "commons", "v", etc. - not "Commons", "V", etc.

All 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 layout
{{Subject bar |book= |portal= |commons= |commons-search= |species= |species-search= |n= |n-search= |wikt= |wikt-search= |b= |b-search= |q= |q-search= |wikt= |wikt-search= |s= |s-search= |v= |v-search= }}
All parameters, vertical layout
{{Subject bar
|book           = 
|portal         = 
|commons        = 
|commons-search = 
|species        = 
|species-search = 
|n              = 
|n-search       = 
|wikt           = 
|wikt-search    = 
|b              = 
|b-search       = 
|q              = 
|q-search       = 
|s              = 
|s-search       = 
|v              = 
|v-search       = 
}}

Using multiple books and portals

The for articles linking to a single book or portal, use the sample code below. If more than one book or portal is needed (up to 10 of each), append a number as follows:
{{Subject bar |book1= |book2= |book3= | ... | |portal1= |portal2= |portal3= |...}}

User:Visionholder/Template:Subject bar

See also