Template:Subject bar: Difference between revisions
meta>Maky adjust comment |
meta>Maky try a different approach |
||
Line 45: | Line 45: | ||
Sister Projects | Sister Projects | ||
-->{{#if:{{{ | -->{{#if:{{{wikt|{{{commons|{{{b|{{{n|{{{q|{{{s|{{{v|{{{species|}}}}}}}}}}}}}}}}}}}}}}}}| | ||
{{!}}- | {{!}}- | ||
{{!}} 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> | {{!}} 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:{{{ | {{#if:{{{commons|}}}|{{User:Visionholder/Template:Subject bar/book|image=[[File:Commons-logo.svg{{!}}30px{{!}}link{{=}}]]|text={{sec link auto|commons|Special:Search/{{{commons|{{{commons-search|{{PAGENAME}}}}}}}}|Images and media}}<br>from Commons|}}}}<!-- | ||
--> | --> | ||
|}} | |}} |
Revision as of 04:24, 2 February 2011
This template is used on approximately 16,000 pages and changes may be widely noticed. Test changes in the template's /sandbox or /testcases subpages, or in your own user subpage. Consider discussing changes on the talk page before implementing them. |
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
andspoken
. 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
andspoken
. 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
|
|
Other parameters
bookUsebook1
up tobook10
to link to a book- portal
- Use
portal1
up toportal10
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
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
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
- Wikipedia:Template messages/Sister projects
- {{Commons}}
- {{Commons category}}
- {{Commons category multi}}
- {{Commons and category}}
- {{Commons-inline}}
- {{Commons category-inline}}
- {{Portal}}
- {{Portal bar}}
- {{Sister project links}}
{{Wikipedia-Books}}{{Book bar}}