Template:Portal bar/doc: Difference between revisions

From Zoophilia Wiki
Jump to navigationJump to search
meta>Jay D. Easy
calling more attention to mos:order, since this is template is inappropriately transcluded in the see also still too often
meta>Moxy
Let's make clear what is need fir mobile view
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]])-->
{{High-use|76388}}
{{High-use|76388}}
{{Warning|'''<big>This template is not transcluded (visible) in mobile view unless the ''<nowiki>border=no</nowiki>'' parameter is used</big>'''. See [[Wikipedia:Portal#How to add portal links to articles|how to add portal links to articles]] for more information.}}
{{Warning|{{strong|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.}}
{{Warning|{{strong|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.}}


Line 15: Line 16:
</pre>
</pre>


For a version with no border, use border=no:
For a version with no border that can be seen in mobile view use border=no:


<pre>
<pre>

Revision as of 01:07, 9 June 2019

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. Please note, however, that this template does not belong in the "See also" section.

Usage

To add the template to a page, use the following code:

{{Portal bar|portal 1|portal 2|...}}

For a version with no border that can be seen in mobile view use border=no:

{{Portal bar|portal 1|portal 2|...|border=no}}

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

TemplateData documentation used by VisualEditor and other tools
See a monthly parameter usage report for this template in articles based on this 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

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