|
|
(103 intermediate revisions by 25 users not shown) |
Line 1: |
Line 1: |
| <div class="noprint" style="background-color: #F9F9F9;border: 1px solid #AAA;clear: both;margin-left: 0px;margin-top: 1em;padding: 4px;text-align: center;">
| | {{#invoke:subject bar|main}}<noinclude>{{documentation}}<!-- Categories go on the /doc subpage, and interwikis go on Wikidata. --></noinclude> |
| <ul>
| |
| | |
| <li style="display:inline;"><span style="margin: auto 1.5em;white-space: nowrap;"><span style="margin-right: 0.5em;">{{Portal/core|Primates}}</span></li>
| |
| | |
| <li style="display:inline;"><span style="margin: auto 1.5em;white-space: nowrap;"><span style="margin-right: 0.5em;">[[File:Sound mp3.png|48x24px]]</span><span style="font-weight: bold;">[[#|Portail de la réalisation audiovisuelle]]</span></li>
| |
| | |
| </ul>
| |
| </div>
| |
| | |
| <div class="noprint" style="background-color: #F9F9F9;border: 1px solid #AAA;clear: both;margin-left: 0px;margin-top: 1em;padding: 4px;text-align: center;">
| |
| <ul>
| |
| | |
| <li style="display:inline;"><span style="margin: auto 1.5em;white-space: nowrap;"><span style="margin-right: 0.5em;">[[File:Man of the woods.JPG|32x28px]]</span><span style="font-weight: bold;">'''''[[Portal:Primates|Primates portal]]'''''</span></li>
| |
| | |
| <li style="display:inline;"><span style="margin: auto 1.5em;white-space: nowrap;"><span style="margin-right: 0.5em;">[[File:Okapi2.jpg|32x28px]]</span><span style="font-weight: bold;">'''''[[Portal:Mammals|Mammals portal]]'''''</span></li>
| |
| | |
| <li style="display:inline;"><span style="margin: auto 1.5em;white-space: nowrap;"><span style="margin-right: 0.5em;">[[File:Flag of Madagascar.svg|32x28px]]</span><span style="font-weight: bold;">'''''[[Portal:Madagascar|Madagascar portal]]'''''</span></li>
| |
| | |
| </ul>
| |
| </div>
| |
| | |
| {| class="metadata plainlinks mbox-small{{#ifeq:{{lc:{{{position|}}}}}|left|-left}}" style="width: 450px; border:1px solid #aaa; background-color:#f9f9f9; {{{style|}}}"
| |
| |-
| |
| | colspan=5 style="margin: auto; text-align: center" | Find more about '''{{{display|{{{1|{{PAGENAME}}}}}}}}''' on Wikipedia's [[Wikipedia:Wikimedia sister projects|sister projects]]:
| |
| |-
| |
| {{#ifeq:{{{wikt}}}|no||<!--
| |
| -->{{!}} [[File:Wiktionary-logo-en.svg|25x25px|link={{sec link image|wikt|Special:Search/{{{wikt|{{{1|{{PAGENAME}}}}}}}}}}|alt=|Search Wiktionary]] {{!}}{{!}} {{sec link auto|wikt|Special:Search/{{{wikt|{{{1|{{PAGENAME}}}}}}}}|Definitions}} from Wiktionary<br />}}
| |
| |
| |
| {{#ifeq:{{{commons}}}|no||<!--
| |
| -->{{!}} [[File:Commons-logo.svg|25x25px|link={{sec link image|commons|Special:Search/{{{commons|{{{1|{{PAGENAME}}}}}}}}}}|alt=|Search Commons]] {{!}}{{!}} {{sec link auto|commons|Special:Search/{{{commons|{{{1|{{PAGENAME}}}}}}}}|Images and media}} from Commons<br />}}
| |
| |-
| |
| {{#ifeq:{{{v}}}|no||<!--
| |
| -->{{!}} [[File:Wikiversity-logo-Snorky.svg|25x25px|link={{sec link image|v|Special:Search/{{{v|{{{1|{{PAGENAME}}}}}}}}}}|alt=|Search Wikiversity]] {{!}}{{!}} {{sec link auto|v|Special:Search/{{{v|{{{1|{{PAGENAME}}}}}}}}|Learning resources}} from Wikiversity<br />}}
| |
| |
| |
| {{#ifeq:{{{n}}}|no||<!--
| |
| -->{{!}} [[File:Wikinews-logo.svg|25x25px|link={{sec link image|n|Special:Search/{{{n|{{{1|{{PAGENAME}}}}}}}}}}|alt=|Search Wikinews]] {{!}}{{!}} {{sec link auto|n|Special:Search/{{{n|{{{1|{{PAGENAME}}}}}}}}|News stories}} from Wikinews<br />}} | |
| |-
| |
| {{#ifeq:{{{q}}}|no||<!--
| |
| -->{{!}} [[File:Wikiquote-logo.svg|25x25px|link={{sec link image|q|Special:Search/{{{q|{{{1|{{PAGENAME}}}}}}}}}}|alt=|Search Wikiquote]] {{!}}{{!}} {{sec link auto|q|Special:Search/{{{q|{{{1|{{PAGENAME}}}}}}}}|Quotations}} from Wikiquote<br />}}
| |
| |
| |
| {{#ifeq:{{{s}}}|no||{{#ifeq:{{{author|no}}}|yes|<!--
| |
| -->{{!}} [[File:Wikisource-logo.svg|25x25px|link={{sec link image|s|Special:Search/Author:{{{s|{{{1|{{PAGENAME}}}}}}}}}}|alt=|Search Wikisource]] {{!}}{{!}} {{sec link auto|s|Special:Search/Author:{{{s|{{{1|{{PAGENAME}}}}}}}}|Source texts}} from Wikisource<br />
| |
| |<!--
| |
| -->{{!}} [[File:Wikisource-logo.svg|25x25px|link={{sec link image|s|Special:Search/{{{s|{{{1|{{PAGENAME}}}}}}}}}}|alt=|Search Wikisource]] {{!}}{{!}} {{sec link auto|s|Special:Search/{{{s|{{{1|{{PAGENAME}}}}}}}}|Source texts}} from Wikisource<br />}}}}
| |
| |-
| |
| {{#ifeq:{{{b}}}|no||<!--
| |
| -->{{!}} [[File:Wikibooks-logo.svg|25x25px|link={{sec link image|b|Special:Search/{{{b|{{{1|{{PAGENAME}}}}}}}}}}|alt=|Search Wikibooks]] {{!}}{{!}} {{sec link auto|b|Special:Search/{{{b|{{{1|{{PAGENAME}}}}}}}}|Textbooks}} from Wikibooks<br />}}
| |
| |
| |
| {{#ifeq:{{{species<includeonly>|no</includeonly>}}}|no||<!--
| |
| -->{{!}} [[File:Wikispecies-logo.svg|25x25px|link={{sec link image|species|Special:Search/{{{species<noinclude>|{{{1|{{PAGENAME}}}}}</noinclude>}}}}}|alt=|Search Wikispecies]] {{!}}{{!}} {{sec link auto|species|Special:Search/{{{species<noinclude>|{{{1|{{PAGENAME}}}}}</noinclude>}}}|Species directories {{{species<noinclude>|</noinclude>}}}}} from Wikispecies}}
| |
| |}
| |
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