→Other parameters: document positional arguments
|
→top: add warning people still changing portals to this making them non visible in mobile view
|
||
Line 1: | Line 1: | ||
{{Documentation subpage}} |
{{Documentation subpage}} |
||
{{High-use|11679}} |
{{High-use|11679}} |
||
{{Warning|'''<big>This template is not transcluded (visible) in mobile view for portals</big>'''. See [[Wikipedia:Portal#How to add portal links to articles|how to add portal links to articles]] for more information.}} |
|||
{{lua|Module:Portal}} |
|||
This navigational template offers a variant to several floating box templates that link to [[Portal:Contents/Portals|portals]], and [[Wikipedia:Wikimedia sister projects|Wikipedia's sister projects]] but also typically cause formatting issues because of their size and alignment. |
This navigational template offers a variant to several floating box templates that link to [[Portal:Contents/Portals|portals]], and [[Wikipedia:Wikimedia sister projects|Wikipedia's sister projects]] but also typically cause formatting issues because of their size and alignment. |
||
![]() | This is a documentation subpage for Template:Subject bar. It may contain usage information, categories and other content that is not part of the original template page. |
![]() | This template is used on approximately 18,000 pages and changes may be widely noticed. Test changes in the template's /sandboxor/testcases subpages, or in your own user subpage. Consider discussing changes on the talk page before implementing them. |
![]() | This template is not transcluded (visible) in mobile view for portals. See how to add portal links to articles for more information. |
![]() | This template uses Lua:
|
This navigational template offers a variant to several floating box templates that link to portals, and Wikipedia's sister projects but also typically cause formatting issues because of their size and alignment.
It is intended to 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:
|
No single parameter is required, however, at least one 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.
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.
{{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 = }}
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 = }}
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 = }}
|
|
portal###
where ### is any number to link to a portalFile:
prefix|auto=1
to use Wikidata to find sister linksNote: positional arguments are interpreted as portals, will be appended after any named portal arguments.
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.
{{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
{{Subject bar|commons = y|commons-search = Category:Lemuriformes|species = y|species-search = Lemuriformes|portal1 = Primates|portal2 = Madagascar}}
Example page: Ring-tailed lemur
{{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}}
{{Portal bar}} may be better since portals are internal links. Portal bars are narrower too, and so they use less space. An example: