Template:Portal bar/sandbox
This is the template sandbox page for Template:Portal bar (diff). See also the companion subpage for test cases. |
This template uses Lua: |
This template is used on approximately 68,000 pages, so changes to it will be widely noticed. Please test any changes in the template's /sandbox or /testcases subpages, or in your own user subpage. Please consider discussing changes on the talk page before implementing them. |
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[edit source]
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[edit source]
Within articles, this template is usually placed at the bottom of the article, below navbars. For further information, see MOS:ORDER.
Image[edit source]
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[edit source]
{{Portal bar|Biology|Fungi|Plants|Science}}
Produces:
{{Portal bar|Biology|Fungi|Plants|Science|border=no}}
Produces:
See also[edit source]
Main portal creation templates
- {{Box portal skeleton}}—Used to create portal main pages.
- {{Random portal component}}—Used on the portal main page to randomly display articles from the portal sub-pages.
- {{Random portal component with nominate}}—Used on the portal main page to randomly display articles from the portal sub-pages, adding the option to nominate other Featured foo articles.
- {{Random subpage}}—Used on the portal main page to randomly display articles from the portal sub-pages. This template is best used for creating randomly populated Did you know... sections on the portal main page that are intended to include multiple Did you know... facts.
- {{Subpage}}—Used to output a box containing a link to subpage.
- {{Numbered subpages}}—Used to create article links on portal sub-pages with 50 links.
{{Numbered subpages|max=25}}
—As hereinbefore, but with 25 links.{{Numbered subpages|max=75}}
—As hereinbefore, but with 75 links.{{Numbered subpages|max=100}}
—As hereinbefore, but with 100 links.
- {{Random box-header subpage}}—Used to transclude a numbered subpage.
Main portal page formatting templates
- {{Box-header}}
- {{Box-header-blank}}
- {{Box-header-plain}}
- {{Box-header-round}}
- {{Box-header-square}}
- {{Box-header-watch}}
- {{Box-footer}}
Templates that configure links
- {{Portal}}
- {{Portal bar}}
- {{Portal-inline}}
- {{Portal-inline-template}}
- {{Portals}}
- {{Portals browsebar}}
- {{Related portals}}
- {{Related portals2}}
- {{Wikimedia for portals}}
These templates are used to format the articles on the sub-pages
{{Selected X}}—Generic template for situations not listed hereafter.
- {{Selected article}}
- {{Selected biography}}
- {{Selected business}}
- {{Selected DYK}}
- {{Selected ingredient}}
- {{Selected location}}
- {{Selected picture}}
- {{Selected product}}
- {{Selected publication}}
- {{Selected quote}}
- {{Selected recipe}}
Related templates
|}External links[edit source]
- Template:Portal bar/sandbox at Wikipedia, the free Terran encyclopedia that anyone can edit.
The above documentation is transcluded from Template:Portal bar/doc. (edit | history) Editors can experiment in this template's sandbox (edit | diff) and testcases (edit) pages. Please add categories to the /doc subpage. Subpages of this template. |