Template:Portal bar/doc

From the Garry's Mod Factions Wiki
Revision as of 03:16, 24 August 2023 by imported>Paine Ellsworth (High-use template)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

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.

Usage

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

Border

To add the template to a page:

{{Portal bar|Biology|Fungi|Plants|Science}}

Lua error in mw.title.lua at line 359: bad argument #2 to 'title.new' (unrecognized namespace name 'Portal').

No border

For a version with no border:

{{Portal bar|Biology|Fungi|Plants|Science|border=n}}

Lua error in mw.title.lua at line 359: bad argument #2 to 'title.new' (unrecognized namespace name 'Portal').

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

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"
Purge page to update totals

TemplateData

See also