Template:Portal bar
The primary purpose of this template is for when using Template:Tlx would cause formatting problems. This template forms a horizontal bar instead of a vertical, sidebar-like template. Please note that this template Template:Strong in the "See also" section.
Usage
Border
To add the template to a page:
- →
{{Portal bar|Biology|Fungi|Plants|Science}}
No border
For a version with no border that can be seen in mobile view:
- →
{{Portal bar|Biology|Fungi|Plants|Science|border=n}}
Error tracking
If the template is used incorrectly, the page will be added to a tracking category.
The tracking categories are not applied if any of the following is true:
- Tracking is specially disabled for that usage. This is done by setting the optional parameter Template:Para to any the following values:
no
,n
,false
- the template is used on a page in any of these namespaces: Talk, User, User talk, Wikipedia talk, File talk, Template talk, Category talk, Portal talk, Draft, Draft talk, Module talk
- The title page on which the template is used includes any of the following case-insensitive strings: "/archive", "/doc", "/test"
- Category:Portal templates without a parameter — (population 0)
- Category:Portal templates with redlinked portals — (population 0)
- Category:Portal templates with all redlinked portals — (population 1)
TemplateData
Template:Collapse top Template:TemplateData header <templatedata> { "params": { "1": { "required": true, "type": "string/line", "description": "The first portal, without surrounding text. For example, use \"Science\" to display the science portal." }, "2": { "type": "string/line", "description": "The second portal." }, "3": { "type": "string/line", "description": "The third portal." }, "4": { "type": "string/line", "description": "The fourth portal" }, "5": { "type": "string/line", "description": "The fifth portal." }, "border": { "type": "string/line", "description": "Set this to \"no\" if you do not want to display a border around the portals. You can also use \"n\", \"false\", or \"0\"." } }, "description": "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." } </templatedata> Template:Collapse bottom
See also
{{Subject bar}}
The above documentation is transcluded from Template:Portal bar/doc. (edit | history) Editors can experiment in this template's sandbox (create | mirror) and testcases (create) pages. Please add categories to the /doc subpage. Subpages of this template. |