Template:Portal bar/doc: Difference between revisions

From Zoophilia Wiki
Jump to navigationJump to search
meta>Moxy
m (Reverted edits by Moxy (talk) to last version by Czar)
meta>Andy M. Wang
({{high-use|32700+}})
Line 2: Line 2:
<!--Categories where indicated at the bottom of this page, please; interwikis at Wikidata (see [[Wikipedia:Wikidata]])-->
<!--Categories where indicated at the bottom of this page, please; interwikis at Wikidata (see [[Wikipedia:Wikidata]])-->
{{lua|Module:Portal bar}}
{{lua|Module:Portal bar}}
{{high-use|32700+}}
The primary purpose of this template is for when using {{tl|Portal}} would cause formatting problems. Sometimes images and infoboxes can push the regular, vertical <nowiki>{{portal}}</nowiki> template outside of the "See also" section. This template forms a horizontal bar, instead of a vertical, sidebar-like template.
The primary purpose of this template is for when using {{tl|Portal}} would cause formatting problems. Sometimes images and infoboxes can push the regular, vertical <nowiki>{{portal}}</nowiki> template outside of the "See also" section. This template forms a horizontal bar, instead of a vertical, sidebar-like template.



Revision as of 07:47, 29 June 2016

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

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

Within articles, this template is usually placed at the bottom of the article.

Image

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

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

Produces:


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

Produces:


See also

Portal content templates

Main portal page formatting templates

Templates that configure links

Selected page templates, used on subpages of older portals

Related templates

TemplateData

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

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".

Lineoptional