• Home
  • Random
  • Nearby
  • Log in
  • Settings
Donate Now If Wikipedia is useful to you, please give today.
  • About Wikipedia
  • Disclaimers
Wikipedia

Template:Portal bar/sandbox

  • Template
  • Talk
  • Language
  • Watch
  • Edit
< Template:Portal bar
This is the template sandbox page for Template:Portal bar (diff).
See also the companion subpage for test cases.
Template documentation[view] [edit] [history] [purge]
WarningThis template is used on approximately 156,000 pages.
To avoid major disruption and server load, any changes should be tested in the template's /sandbox or /testcases subpages, or in your own user subpage. The tested changes can be added to this page in a single edit. Consider discussing changes on the talk page before implementing them.
This template does not belong in the "See also" section. Per MOS:SECTIONORDER, this template is bottom matter and goes below standard navigation templates, and above geographical coordinates and authority control templates.

The primary purpose of this template is for when using {{portal}} would cause formatting problems. This template forms a horizontal bar instead of a vertical, sidebar-like template.

Please note that this template does not belong in the "See also" section. This template is bottom matter and goes below standard navigation templates, and above geographical coordinates and authority control templates.

This template uses Lua:
  • Module:Portal bar (sandbox)
Wikipedia Portals
– About Portals
– List of Portals
– WikiProject Portals
  • v
  • t
  • e

Contents

  • 1 Usage
    • 1.1 Border
    • 1.2 No border
  • 2 Error tracking
  • 3 TemplateData
  • 4 See also

Usage

edit

See Module:Portal § Image on how to add, update, or remove portal images.

Border

edit

To add the template to a page:

→ {{Portal bar|Biology|Fungi|Plants|Science}}
Portals:
  • icon Biology
  • Fungi
  • icon Plants
  • icon Science

No border

edit

For a version with no border:

→ {{Portal bar|Biology|Fungi|Plants|Science|border=n}}
Portals:
  • icon Biology
  • Fungi
  • icon Plants
  • icon Science

Portal bar with border extends to the full width of the article, and that can be a problem with right-floating items. To use space better, remove the border.

Error tracking

edit

If the template is used incorrectly, the page will be added to a tracking category.

The tracking categories are not applied if any of the following is true:

  1. Tracking is specially disabled for that usage. This is done by setting the optional parameter |tracking= to any the following values: no, n, false
  2. The template is used on a page in any of these namespaces: Talk, User, User talk, Wikipedia talk, File talk, Template talk, Category talk, Portal talk, Draft, Draft talk, Module talk
  3. The title page on which the template is used includes any of the following case-insensitive strings: "/archive", "/doc", "/test", "/sandbox"
  • Category:Portal templates with too few portals (1)
  • Category:Portal templates with redlinked portals (1,307)
  • Category:Pages with empty portal template (39)
Purge page to update totals

TemplateData

edit
TemplateData documentation used by VisualEditor and other tools
See a monthly parameter usage report for Template:Portal bar in articles based on its TemplateData.

TemplateData for Portal bar

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.

Template parameters[Edit template data]

ParameterDescriptionTypeStatus
11

The first portal, without surrounding text. For example, use "Science" to display the science portal.

Linerequired
22

The second portal.

Lineoptional
33

The third portal.

Lineoptional
44

The fourth portal

Lineoptional
55

The fifth portal.

Lineoptional
borderborder

Set this to "no" if you do not want to display a border around the portals. You can also use "n", "false", or "0".

Default
Yes
Booleanoptional

See also

edit
  • {{Portal}}
  • {{Portal-inline}}
  • {{Subject bar}}
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.
Add categories to the /doc subpage. Subpages of this template.
Retrieved from "https://en.wikipedia.org/w/index.php?title=Template:Portal_bar/sandbox&oldid=1080075668"
Last edited on 30 March 2022, at 05:09

Languages

      This page is not available in other languages.

      Wikipedia
      • Wikimedia Foundation
      • Powered by MediaWiki
      • This page was last edited on 30 March 2022, at 05:09 (UTC).
      • Content is available under CC BY-SA 4.0 unless otherwise noted.
      • Privacy policy
      • About Wikipedia
      • Disclaimers
      • Contact Wikipedia
      • Code of Conduct
      • Developers
      • Statistics
      • Cookie statement
      • Terms of Use
      • Desktop