|
|
(29 intermediate revisions by 21 users not shown) |
Line 1: |
Line 1: |
| {| class="noprint navbox" style="background-color: #F9F9F9; border: 1px solid #AAA; clear: both; margin-bottom: 3pt; margin-top: 3pt;"
| | {{#invoke:subject bar|main}}<noinclude>{{documentation}}<!-- Categories go on the /doc subpage, and interwikis go on Wikidata. --></noinclude> |
| <!--
| |
| | |
| Books
| |
| | |
| -->{{#if:{{{book|{{{book1|}}}}}}|
| |
| {{!}}-
| |
| {{!}} width="175pt" {{!}} <span style="font-size:125%;">'''[[Wikipedia:Books{{!}}Books]]'''</span><br><span style="font-size:85%;">View or order collections of articles</span>
| |
| {{!}}
| |
| {{#if:{{{book|{{{book1|}}}}}}|{{Subject bar/item|image=[[File:Office-book.svg{{!}}30px{{!}}link{{=}}]]|text='''''[[Book:{{{book|{{{book1|}}}}}}{{!}}{{{book|{{{book1|}}}}}}]]'''''|}}}}<!-- | |
| -->{{#if:{{{book2|}}}|{{Subject bar/item|image=[[File:Office-book.svg{{!}}30px{{!}}link{{=}}]]|text='''''[[Book:{{{book2}}}{{!}}{{{book2}}}]]'''''|}}}}<!--
| |
| -->{{#if:{{{book3|}}}|{{Subject bar/item|image=[[File:Office-book.svg{{!}}30px{{!}}link{{=}}]]|text='''''[[Book:{{{book3}}}{{!}}{{{book3}}}]]'''''|}}}}<!--
| |
| -->{{#if:{{{book4|}}}|{{Subject bar/item|image=[[File:Office-book.svg{{!}}30px{{!}}link{{=}}]]|text='''''[[Book:{{{book4}}}{{!}}{{{book4}}}]]'''''|}}}}<!--
| |
| -->{{#if:{{{book5|}}}|{{Subject bar/item|image=[[File:Office-book.svg{{!}}30px{{!}}link{{=}}]]|text='''''[[Book:{{{book5}}}{{!}}{{{book5}}}]]'''''|}}}}<!--
| |
| -->{{#if:{{{book6|}}}|{{Subject bar/item|image=[[File:Office-book.svg{{!}}30px{{!}}link{{=}}]]|text='''''[[Book:{{{book6}}}{{!}}{{{book6}}}]]'''''|}}}}<!--
| |
| -->{{#if:{{{book7|}}}|{{Subject bar/item|image=[[File:Office-book.svg{{!}}30px{{!}}link{{=}}]]|text='''''[[Book:{{{book7}}}{{!}}{{{book7}}}]]'''''|}}}}<!--
| |
| -->{{#if:{{{book8|}}}|{{Subject bar/item|image=[[File:Office-book.svg{{!}}30px{{!}}link{{=}}]]|text='''''[[Book:{{{book8}}}{{!}}{{{book8}}}]]'''''|}}}}<!--
| |
| -->{{#if:{{{book9|}}}|{{Subject bar/item|image=[[File:Office-book.svg{{!}}30px{{!}}link{{=}}]]|text='''''[[Book:{{{book9}}}{{!}}{{{book9}}}]]'''''|}}}}<!--
| |
| -->{{#if:{{{book10|}}}|{{Subject bar/item|image=[[File:Office-book.svg{{!}}30px{{!}}link{{=}}]]|text='''''[[Book:{{{book10}}}{{!}}{{{book10}}}]]'''''|}}}}
| |
| {{!}}-
| |
| {{!}} colspan="2" {{!}} <hr>
| |
| |}}
| |
| <!--
| |
| | |
| Portals
| |
| | |
| -->{{#if:{{{portal|{{{portal1|}}}}}}|
| |
| {{!}}-
| |
| {{!}} width="175pt" {{!}} <span style="font-size:125%;">'''[[Portal:Contents/Portals{{!}}Portals]]'''</span><br><span style="font-size:85%;">Access related topics</span>
| |
| {{!}}
| |
| {{#if:{{{portal|{{{portal1|}}}}}}|{{Subject bar/item|image=[[File:{{#ifexist:Template:Portal/Images/{{ucfirst:{{lc:{{{portal|{{{portal1|}}}}}} }} }}|{{Portal/Images/{{ucfirst:{{lc:{{{portal|{{{portal1|}}}}}}}}}}}}|{{Portal/Images/Default}} }}{{!}}30x30px{{!}}link{{=}}]]|text='''''[[Portal:{{{portal|{{{portal1|}}}}}}|{{{portal|{{{portal1|}}}}}} portal]]'''''|}}}}<!--
| |
| -->{{#if:{{{portal2|}}}|{{Subject bar/item|image=[[File:{{#ifexist:Template:Portal/Images/{{ucfirst:{{lc:{{{portal2}}} }} }}|{{Portal/Images/{{ucfirst:{{lc:{{{portal2}}}}}}}}}|{{Portal/Images/Default}} }}{{!}}30x30px{{!}}link{{=}}]]|text='''''[[Portal:{{{portal2}}}|{{{portal2}}} portal]]'''''|}}}}<!--
| |
| -->{{#if:{{{portal3|}}}|{{Subject bar/item|image=[[File:{{#ifexist:Template:Portal/Images/{{ucfirst:{{lc:{{{portal3}}} }} }}|{{Portal/Images/{{ucfirst:{{lc:{{{portal3}}}}}}}}}|{{Portal/Images/Default}} }}{{!}}30x30px{{!}}link{{=}}]]|text='''''[[Portal:{{{portal3}}}|{{{portal3}}} portal]]'''''|}}}}<!--
| |
| -->{{#if:{{{portal4|}}}|{{Subject bar/item|image=[[File:{{#ifexist:Template:Portal/Images/{{ucfirst:{{lc:{{{portal4}}} }} }}|{{Portal/Images/{{ucfirst:{{lc:{{{portal4}}}}}}}}}|{{Portal/Images/Default}} }}{{!}}30x30px{{!}}link{{=}}]]|text='''''[[Portal:{{{portal4}}}|{{{portal4}}} portal]]'''''|}}}}<!--
| |
| -->{{#if:{{{portal5|}}}|{{Subject bar/item|image=[[File:{{#ifexist:Template:Portal/Images/{{ucfirst:{{lc:{{{portal5}}} }} }}|{{Portal/Images/{{ucfirst:{{lc:{{{portal5}}}}}}}}}|{{Portal/Images/Default}} }}{{!}}30x30px{{!}}link{{=}}]]|text='''''[[Portal:{{{portal5}}}|{{{portal5}}} portal]]'''''|}}}}<!--
| |
| -->{{#if:{{{portal6|}}}|{{Subject bar/item|image=[[File:{{#ifexist:Template:Portal/Images/{{ucfirst:{{lc:{{{portal6}}} }} }}|{{Portal/Images/{{ucfirst:{{lc:{{{portal6}}}}}}}}}|{{Portal/Images/Default}} }}{{!}}30x30px{{!}}link{{=}}]]|text='''''[[Portal:{{{portal6}}}|{{{portal6}}} portal]]'''''|}}}}<!--
| |
| -->{{#if:{{{portal7|}}}|{{Subject bar/item|image=[[File:{{#ifexist:Template:Portal/Images/{{ucfirst:{{lc:{{{portal7}}} }} }}|{{Portal/Images/{{ucfirst:{{lc:{{{portal7}}}}}}}}}|{{Portal/Images/Default}} }}{{!}}30x30px{{!}}link{{=}}]]|text='''''[[Portal:{{{portal7}}}|{{{portal7}}} portal]]'''''|}}}}<!--
| |
| -->{{#if:{{{portal8|}}}|{{Subject bar/item|image=[[File:{{#ifexist:Template:Portal/Images/{{ucfirst:{{lc:{{{portal8}}} }} }}|{{Portal/Images/{{ucfirst:{{lc:{{{portal8}}}}}}}}}|{{Portal/Images/Default}} }}{{!}}30x30px{{!}}link{{=}}]]|text='''''[[Portal:{{{portal8}}}|{{{portal8}}} portal]]'''''|}}}}<!--
| |
| -->{{#if:{{{portal9|}}}|{{Subject bar/item|image=[[File:{{#ifexist:Template:Portal/Images/{{ucfirst:{{lc:{{{portal9}}} }} }}|{{Portal/Images/{{ucfirst:{{lc:{{{portal9}}}}}}}}}|{{Portal/Images/Default}} }}{{!}}30x30px{{!}}link{{=}}]]|text='''''[[Portal:{{{portal9}}}|{{{portal9}}} portal]]'''''|}}}}<!--
| |
| -->{{#if:{{{portal10|}}}|{{Subject bar/item|image=[[File:{{#ifexist:Template:Portal/Images/{{ucfirst:{{lc:{{{portal10}}} }} }}|{{Portal/Images/{{ucfirst:{{lc:{{{portal10}}}}}}}}}|{{Portal/Images/Default}} }}{{!}}30x30px{{!}}link{{=}}]]|text='''''[[Portal:{{{portal10}}}|{{{portal10}}} portal]]'''''|}}}}
| |
| |}}
| |
| <!--
| |
| | |
| Sister Projects
| |
| | |
| -->{{#if:{{{wikt|{{{commons|{{{b|{{{n|{{{q|{{{s|{{{v|{{{species|}}}}}}}}}}}}}}}}}}}}}}}}|
| |
| {{!}}-
| |
| {{!}} colspan="2" {{!}} <hr>
| |
| {{!}}-
| |
| {{!}} width="175pt" {{!}} <span style="font-size:85%;">Find out more on Wikipedia's</span><br><span style="font-size:125%;">'''[[Wikipedia:Wikimedia sister projects{{!}}Sister Projects]]'''</span>
| |
| {{!}}
| |
| {{#if:{{{commons|}}}|{{Subject bar/item|image=[[File:Commons-logo.svg{{!}}30x30px{{!}}link{{=}}]]|text={{sec link auto|commons|Special:Search/{{{commons-search|{{PAGENAME}}}}}|Images and media}}<br>from Commons|}}}}<!--
| |
| -->{{#if:{{{species|}}}|{{Subject bar/item|image=[[File:Wikispecies-logo.svg{{!}}30x30px{{!}}link{{=}}]]|text={{sec link auto|wikispecies|Special:Search/{{{species-search|{{PAGENAME}}}}}|Species directories}}<br>from Wikispecies|}}}}<!--
| |
| -->{{#if:{{{n|}}}|{{Subject bar/item|image=[[File:Wikinews-logo.svg{{!}}30x30px{{!}}link{{=}}]]|text={{sec link auto|wikinews|Special:Search/{{{n-search|{{PAGENAME}}}}}|News stories}}<br>from Wikinews|}}}}<!--
| |
| -->{{#if:{{{wikt|}}}|{{Subject bar/item|image=[[File:Wiktionary-logo-en.svg{{!}}30x30px{{!}}link{{=}}]]|text={{sec link auto|wiktionary|Special:Search/{{{wikt-search|{{PAGENAME}}}}}#English|Definitions}}<br>from Wiktionary|}}}}<!--
| |
| -->{{#if:{{{b|}}}|{{Subject bar/item|image=[[File:Wikibooks-logo.svg{{!}}30x30px{{!}}link{{=}}]]|text={{sec link auto|wikibooks|Special:Search/{{{b-search|{{PAGENAME}}}}}|Textbooks}}<br>from Wikibooks|}}}}<!--
| |
| -->{{#if:{{{q|}}}|{{Subject bar/item|image=[[File:Wikiquote-logo.svg{{!}}30x30px{{!}}link{{=}}]]|text={{sec link auto|wikiquote|Special:Search/{{{q-search|{{PAGENAME}}}}}|Quotations}}<br>from Wikiquote|}}}}<!--
| |
| -->{{#if:{{{s|}}}|{{Subject bar/item|image=[[File:Wikisource-logo.svg{{!}}30x30px{{!}}link{{=}}]]|text={{sec link auto|wikisource|Special:Search/{{{s-search|{{PAGENAME}}}}}|Source texts}}<br>from Wikisource|}}}}<!--
| |
| -->{{#if:{{{v|}}}|{{Subject bar/item|image=[[File:Wikiversity-logo.svg{{!}}30x30px{{!}}link{{=}}]]|text={{sec link auto|wikiversity|Special:Search/{{{v-search|{{PAGENAME}}}}}|Learning resources}}<br>from Wikiversity|}}}}
| |
| |}}
| |
| |}<noinclude>
| |
| | |
| {{Documentation}}
| |
| | |
| </noinclude> | |
Script error: No such module "subject bar".
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.
Lua error in Module:Lua_banner at line 112: attempt to index field 'edit' (a nil value).
Lua error in Module:TNT at line 167: Missing Commons dataset I18n/Module:TNT.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 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|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 =
}}
Parameters explained
- 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". In order of use. Portal and spoken removed. Try this first. It will use the article name for all the sister links. Test them all, and adjust as necessary by adding other search terms. Quotes can be placed around search terms to require search results to include the complete phrase.
- Markup
{{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 = }}
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|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".
Portal bar. Separate bar for "See also" sections
{{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:
See also