Template:Portal bar/doc: Difference between revisions

From Zoophilia Wiki
Jump to navigationJump to search
meta>Moxy
Let's make clear what is need fir mobile view
meta>Jay D. Easy
is non-tranclusion on mobile such a pressing matter that it justifies a header warning?
Line 1: Line 1:
{{Documentation subpage}}
{{Documentation subpage}}
<!--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.}}


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. Please note, however, that this template {{strong|[[MOS:ORDER|does not belong]]}} in the "See also" section.
The primary purpose of this template is for when using {{tlx|portal}} would cause formatting problems. This template forms a horizontal bar instead of a vertical, sidebar-like template. Please note that this template {{strong|[[MOS:ORDER|does not belong]]}} in the "See also" section.


{{Lua|Module:Portal bar}}
{{Lua|Module:Portal bar}}


== Usage ==
== Usage ==
To add the template to a page, use the following code:
{{xref|See {{section link|Module:Portal|Image}} on how to add, update, or remove portal images.}}
 
<pre>
{{Portal bar|portal 1|portal 2|...}}
</pre>
 
For a version with no border that can be seen in mobile view use border=no:
 
<pre>
{{Portal bar|portal 1|portal 2|...|border=no}}
</pre>
 
==Image==
The portal image name is found using [[Module:Portal]]. Please see {{section link|Module:Portal|Image}} for instructions on how to add, update, or remove an image.
 
==Examples==
<pre>
{{Portal bar|Biology|Fungi|Plants|Science}}
</pre>
 
Produces:


=== Border ===
To add the template to a page:
: &rarr; <code><nowiki>{{Portal bar|Biology|Fungi|Plants|Science}}</nowiki></code>
{{Portal bar|Biology|Fungi|Plants|Science}}
{{Portal bar|Biology|Fungi|Plants|Science}}
{{clear}}
<pre>
{{Portal bar|Biology|Fungi|Plants|Science|border=no}}
</pre>
Produces:
{{Portal bar|Biology|Fungi|Plants|Science|border=no}}
{{clear}}


==See also==
=== No border ===
* [[Template:Subject bar]]
For a version with no border that can be seen in [[WP:MOBILE|mobile view]]:
{{Portal template list}}
: &rarr; <code><nowiki>{{Portal bar|Biology|Fungi|Plants|Science|border=n}}</nowiki></code>
{{Portal bar|Biology|Fungi|Plants|Science|border=n}}


== TemplateData ==
== TemplateData ==
{{Collapse top|[[Wikipedia:TemplateData|TemplateData]] documentation used by [[Wikipedia:VisualEditor|VisualEditor]] and other tools}}
{{Collapse top|[[WP:TemplateData|TemplateData]] documentation used by [[WP:VisualEditor|VisualEditor]] and other tools}}
{{TemplateData header|noheader=1}}
{{TemplateData header|noheader=1}}
<templatedata>
<templatedata>
Line 84: Line 56:
</templatedata>
</templatedata>
{{Collapse bottom}}
{{Collapse bottom}}
== See also ==
* {{tl|Subject bar}}


<includeonly>{{#ifeq:{{SUBPAGENAME}}|sandbox | |
<includeonly>{{#ifeq:{{SUBPAGENAME}}|sandbox | |
<!--Categories below this line, please; interwikis at Wikidata-->
[[Category:Exclude in print]]
[[Category:Internal link templates]]
[[Category:Internal link templates]]
[[Category:Wikipedia Portal navflags]]
[[Category:Wikipedia Portal navflags]]
[[Category:Exclude in print]]
}}</includeonly>
}}</includeonly>

Revision as of 21:28, 23 July 2019

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