Difference between revisions of "Template:Pbox/doc"

Deadfire>JJMC89 bot III
 
 
(One intermediate revision by the same user not shown)
Line 37: Line 37:
 
<includeonly>{{Sandbox other||
 
<includeonly>{{Sandbox other||
 
[[Category:Internal link templates]]
 
[[Category:Internal link templates]]
[[Category:Wikipedia Portal navflags]]
+
[[Category:Portal navflags]]
 
}}</includeonly>
 
}}</includeonly>

Latest revision as of 17:26, 14 August 2023

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

This template is a simplified and 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.

Use[edit]

The complete syntax for this template is:

{{Pbox|portal01|...|portal20|align=|image=}}

where:

  • portal01|...|portal20 are up to 20 portal names without a prefix.
  • align= an optional floating box alignment parameter.
    • align=left
    • align=right (default)
  • image= an alternative image without a prefix.

Examples[edit]

Wikitext userbox where used
{{Pbox}} linked pages
{{Pbox|Haiti}} linked pages
{{Pbox|Republic of the Congo}} linked pages
{{Pbox|Australia|New Zealand}} linked pages
{{Pbox|Africa|Asia|Europe}} linked pages
{{Pbox|?dFb6%}} linked pages

See also[edit]