J u m p t o c o n t e n t
M a i n m e n u
M a i n m e n u
N a v i g a t i o n
● M a i n p a g e
● C o n t e n t s
● C u r r e n t e v e n t s
● R a n d o m a r t i c l e
● A b o u t W i k i p e d i a
● C o n t a c t u s
● D o n a t e
C o n t r i b u t e
● H e l p
● L e a r n t o e d i t
● C o m m u n i t y p o r t a l
● R e c e n t c h a n g e s
● U p l o a d f i l e
S e a r c h
Search
A p p e a r a n c e
● C r e a t e a c c o u n t
● L o g i n
P e r s o n a l t o o l s
● C r e a t e a c c o u n t
● L o g i n
P a g e s f o r l o g g e d o u t e d i t o r s l e a r n m o r e
● C o n t r i b u t i o n s
● T a l k
( T o p )
1
U s a g e
2
P a r a m e t e r s
T o g g l e P a r a m e t e r s s u b s e c t i o n
2 . 1
S i s t e r p r o j e c t p a r a m e t e r s
2 . 2
O t h e r p a r a m e t e r s
3
E x a m p l e s
4
P o r t a l s
5
S e e a l s o
T o g g l e t h e t a b l e o f c o n t e n t s
T e m p l a t e : S u b j e c t b a r / d o c
A d d l a n g u a g e s
A d d l i n k s
● T e m p l a t e
● T a l k
E n g l i s h
● R e a d
● E d i t
● V i e w h i s t o r y
T o o l s
T o o l s
A c t i o n s
● R e a d
● E d i t
● V i e w h i s t o r y
G e n e r a l
● W h a t l i n k s h e r e
● R e l a t e d c h a n g e s
● U p l o a d f i l e
● S p e c i a l p a g e s
● P e r m a n e n t l i n k
● P a g e i n f o r m a t i o n
● G e t s h o r t e n e d U R L
● D o w n l o a d Q R c o d e
P r i n t / e x p o r t
● P r i n t a b l e v e r s i o n
A p p e a r a n c e
F r o m W i k i p e d i a , t h e f r e e e n c y c l o p e d i a
< T e m p l a t e : S u b j e c t b a r
T h i s i s a n o l d r e v i s i o n o f t h i s p a g e , a s e d i t e d b y T i m e s h i f t e r ( t a l k | c o n t r i b s ) at 1 7 : 3 8 , 2 6 J u l y 2 0 2 0 . T h e p r e s e n t a d d r e s s ( U R L ) i s a p e r m a n e n t l i n k t o t h i s r e v i s i o n , w h i c h m a y d i f f e r s i g n i f i c a n t l y f r o m t h e c u r r e n t r e v i s i o n .
( d i f f ) ← P r e v i o u s r e v i s i o n | L a t e s t r e v i s i o n ( d i f f ) | N e w e r r e v i s i o n → ( d i f f )
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 .
This template uses Lua :
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
b
Setting any value for this parameter will result in a link to Wikibooks
b-search
To replace the default (article name) search string
commons
Setting any value for this parameter will result in a link to WikiMedia Commons
commons-search
To replace the default (article name) search string
To search by category, start with Category:
d
Setting any value for this parameter will result in a link to Wikidata
d-search
To replace the default (article name) search string
n
Setting any value for this parameter will result in a link to Wikinews
n-search
To replace the default (article name) search string
q
Setting any value for this parameter will result in a link to Wikiquote
q-search
To replace the default (article name) search string
s
Setting any value for this parameter will result in a link to Wikisource
s-search
To replace the default (article name) search string
To search by author, start with Author:
species
Setting any value for this parameter will result in a link to Wikispecies
species-search
To replace the default (article name) search string
v
Setting any value for this parameter will result in a link to Wikiversity
v-search
To replace the default (article name) search string
voy
Setting any value for this parameter will result in a link to Wikivoyage
voy-search
To replace the default (article name) search string
wikt
Setting any value for this parameter will result in a link to Wiktionary
wikt-search
To replace the default (article name) search string
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
Madagascar
Media from Commons
Taxa from Wikispecies
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
Madagascar
Definitions from Wiktionary
Media from Commons
News from Wikinews
Quotations from Wikiquote
Texts from Wikisource
Textbooks from Wikibooks
Resources from Wikiversity
Travel guides from Wikivoyage
Taxa from Wikispecies
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:
Medicine
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 }}
R e t r i e v e d f r o m " https://en.wikipedia.org/w/index.php?title=Template:Subject_bar/doc&oldid=969646245 "
H i d d e n c a t e g o r y :
● T e m p l a t e d o c u m e n t a t i o n p a g e s
● T h i s p a g e w a s l a s t e d i t e d o n 2 6 J u l y 2 0 2 0 , a t 1 7 : 3 8 ( U T C ) .
● T h i s v e r s i o n o f t h e p a g e h a s b e e n r e v i s e d . B e s i d e s n o r m a l e d i t i n g , t h e r e a s o n f o r r e v i s i o n m a y h a v e b e e n t h a t t h i s v e r s i o n c o n t a i n s f a c t u a l i n a c c u r a c i e s , v a n d a l i s m , o r m a t e r i a l n o t c o m p a t i b l e w i t h t h e C r e a t i v e C o m m o n s A t t r i b u t i o n - S h a r e A l i k e L i c e n s e .
● P r i v a c y p o l i c y
● A b o u t W i k i p e d i a
● D i s c l a i m e r s
● C o n t a c t W i k i p e d i a
● C o d e o f C o n d u c t
● D e v e l o p e r s
● S t a t i s t i c s
● C o o k i e s t a t e m e n t
● M o b i l e v i e w