Template:Portal bar/doc: Difference between revisions
meta>Hydrargyrum copyedit - spelling, punctuation, formatting |
meta>Funandtrvl updte |
||
Line 1: | Line 1: | ||
{{Documentation subpage}} | {{Documentation subpage}} | ||
<!-- | <!--Categories where indicated at the bottom of this page, please; interwikis at Wikidata (see [[Wikipedia:Wikidata]])--> | ||
{{lua|Module:Portal bar}} | {{lua|Module:Portal bar}} | ||
The primary purpose of this template is for when using {{tl|Portal}} would cause formatting problems. | The primary purpose of this template is for when using {{tl|Portal}} would cause formatting problems. Sometimes images and infoboxes can push the regular, vertical <nowiki>{{portal}}</nowiki> template outside of the "See also" section. This template forms a horizontal bar, instead of a vertical, sidebar-like template. | ||
This template is well suited for articles that have more portals than related articles in the "See also" section, which would cause a regular <nowiki>{{portal}}</nowiki> sprawl into the next section, although a regular <nowiki>{{portal}}</nowiki> with {{tl|clear}} would sometimes work better, depending on how much white space <nowiki>{{portal}} with {{clear}}</nowiki> would cause. | This template is well suited for articles that have more portals than related articles in the "See also" section, which would cause a regular <nowiki>{{portal}}</nowiki> sprawl into the next section, although a regular <nowiki>{{portal}}</nowiki> with {{tl|clear}} would sometimes work better, depending on how much white space <nowiki>{{portal}} with {{clear}}</nowiki> would cause. | ||
== Usage == | |||
To add the template to a page, use the following code: | To add the template to a page, use the following code: | ||
Line 23: | Line 19: | ||
</pre> | </pre> | ||
==Location== | |||
Within articles, this template is usually placed at the bottom of the article just above the navboxes or within the ''See also'' section. | Within articles, this template is usually placed at the bottom of the article just above the navboxes or within the ''See also'' section. | ||
==Image== | |||
The portal image name is found using [[Module:Portal]]. Please see [[Module:Portal#Image]] for instructions on how to add, update, or remove an image. | The portal image name is found using [[Module:Portal]]. Please see [[Module:Portal#Image]] for instructions on how to add, update, or remove an image. | ||
==Examples== | |||
<pre> | <pre> | ||
{{Portal bar|Biology|Fungi|Plants|Science}} | {{Portal bar|Biology|Fungi|Plants|Science}} | ||
Line 48: | Line 44: | ||
{{clear}} | {{clear}} | ||
==See also== | |||
* [[Template:Subject bar]] | |||
{{Portal template list}} | |||
*[[Template:Subject bar]] | |||
{{Collapse top|TemplateData}} | {{Collapse top|TemplateData}} | ||
<templatedata> | <templatedata> | ||
Line 88: | Line 82: | ||
{{Collapse bottom}} | {{Collapse bottom}} | ||
<includeonly> | <includeonly>{{#ifeq:{{SUBPAGENAME}}|sandbox | | | ||
<!-- Categories --> | <!--Categories below this line, please; interwikis at Wikidata--> | ||
[[Category:Internal link templates]] | [[Category:Internal link templates]] | ||
[[Category:Wikipedia Portal navflags]] | [[Category:Wikipedia Portal navflags]] | ||
[[Category:Exclude in print]] | [[Category:Exclude in print]] | ||
[[ms:Templat:Portal bar]] | [[ms:Templat:Portal bar]] | ||
[[fr:Modèle:Portail]] | [[fr:Modèle:Portail]] | ||
</includeonly> | }}</includeonly> |
Revision as of 21:23, 24 August 2014
This is a documentation subpage for Template:Portal bar. It may contain usage information, categories and other content that is not part of the original template page. |
This template uses Lua: |
The primary purpose of this template is for when using {{Portal}} would cause formatting problems. Sometimes images and infoboxes can push the regular, vertical {{portal}} template outside of the "See also" section. This template forms a horizontal bar, instead of a vertical, sidebar-like template.
This template is well suited for articles that have more portals than related articles in the "See also" section, which would cause a regular {{portal}} sprawl into the next section, although a regular {{portal}} with {{clear}} would sometimes work better, depending on how much white space {{portal}} with {{clear}} would cause.
Usage
To add the template to a page, use the following code:
{{Portal bar|portal 1|portal 2|...}}
For a version with no border, use border=no:
{{Portal bar|portal 1|portal 2|...|border=no}}
Location
Within articles, this template is usually placed at the bottom of the article just above the navboxes or within the See also section.
Image
The portal image name is found using Module:Portal. Please see Module:Portal#Image for instructions on how to add, update, or remove an image.
Examples
{{Portal bar|Biology|Fungi|Plants|Science}}
Produces:
{{Portal bar|Biology|Fungi|Plants|Science|border=no}}
Produces:
See also
Portal content templates
- To display "selected content" on the portal main page
- {{Transclude list item excerpts as random slideshow}}—transcludes excerpts from recognized content lists, which are populated by a bot.
- {{Transclude random subpage}}—transcludes random portal subpage.
- {{Random portal component}}—transcludes random portal subpage.
- {{Random subpage}}—transcludes random portal subpages.
- To organize "selected content" on subpages
- {{Numbered subpages}}—outputs an automatic index, transcluding numbered subpages.
- {{Portal subpage}}—outputs a box linking to and transcluding a single subpage.
- {{Portal subpage inline}}—outputs an unordered list item linking to and transcluding a single subpage.
Main portal page formatting templates
- {{Box-header}}
- {{Box-header-plain}}
- {{Box-header-round}}
- {{Box-header-square}}
- {{Box-header-watch}}
- {{Box-footer}}
Templates that configure links
- {{Portal}}
- {{Portal bar}}
- {{Portal-inline}}
- {{Portals}}
- {{Portal-image}}
- {{Portals browsebar}}
- {{Related portals}}
- {{Related portals2}}
- {{Wikimedia for portals}}
Selected page templates, used on subpages of older portals
- {{Selected article}}
- {{Selected biography}}
- {{Selected business}}
- {{Selected DYK}}
- {{Selected ingredient}}
- {{Selected location}}
- {{Selected picture}}
- {{Selected product}}
- {{Selected publication}}
- {{Selected quote}}
- {{Selected recipe}}
- {{Selected X}}
Related templates
- {{Project template list}}
- {{Basic portal start page}} (deleted)—Used to create portal main pages.
- {{Random box-header subpage}}—randomized selection from {{Box-header/1}} to {{Box-header/42}}.
TemplateData
| |||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
This template adds a bar of portals. It is usually used just above an article's navboxes or in its "See also" section when using [[Template:Portal]] would cause formatting problems.
|