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

Template:Pbox

  • Template
  • Talk
  • Language
  • Watch
  • View source
  • iconPortal
    Directory
Template documentation[view] [edit] [history] [purge]
This template uses Lua:
  • Module:Icon box (sandbox)

This template creates a floating box with links to Wikipedia portals.

This template is compact version of Template:Portal. This template uses a 48 by 24 pixel frame for all portal images and an 8-point bold nonserif font for all portal links. If the designated portal does not exist, this template will redirect to the Portal Directory.

When used for more than one portal, this template will:

  1. Space each portal link equally regardless of image dimensions.
  2. Center each portal image.
  3. Center each portal link.

Usage

The complete syntax for this template is:

{{Pbox|portal1|portal2|...|align=}}

where:

  • portal1|portal2 are portal names without a prefix. The box supports an unlimited number of portals.

Named arguments

align
how to place box on page, default "right"
color
background color for box
size
font size. If bare number, interpreted as pt
lh
line height
width
width of box. If bare number, interpreted as px
talign
alignment of link text, defaults to "center"

Examples

Wikitext userbox where used
{{Pbox}}
  • iconPortal
    Directory
linked pages
{{Pbox|Haiti}}
  • flagHaiti
    portal
linked pages
{{Pbox|Republic of the Congo}}
  • flagRepublic of the Congo
    portal
linked pages
{{Pbox|Australia|New Zealand}}
  • flagAustralia
    portal
  • flagNew Zealand
    portal
linked pages
{{Pbox|Africa|Asia|Europe}}
  • mapAfrica
    portal
  • iconAsia
    portal
  • mapEurope
    portal
linked pages
{{Pbox|?dFb6%}}
  • iconPortal
    Directory
linked pages

See also

  • This template is compatible with Template:WPbox, Template:WGbox, Template:TFbox, Template:NBbox, and Template:Dbox.
  • This template employs image names from directory Module:Portal/images.
  • This template is invoked by Template:Plinks.
  • For help with this template, please post a comment on the template talk page with a {{reply to}} one or more of the previous editors.
The above documentation is transcluded from Template:Pbox/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:Pbox&oldid=1353648985"