Template:Portal bar/doc: Difference between revisions
meta>Emmette Hernandez Coleman No edit summary |
meta>Emmette Hernandez Coleman mNo edit summary |
||
Line 3: | Line 3: | ||
The primary purpose of this template is for when using {{tl|Portal}} would cause formating problems. | The primary purpose of this template is for when using {{tl|Portal}} would cause formating problems. | ||
For [http://en.wikipedia.org/w/index.php?title=Kurdistan&oldid=523742112#See_also example] sometimes images and infoboxes can push a regular <nowiki>{{portal}}</nowiki> outside of the See also section. This template [http://en.wikipedia.org/w/index.php?title=Kurdistan&oldid=525548023#See_also doesn't have] that | For [http://en.wikipedia.org/w/index.php?title=Kurdistan&oldid=523742112#See_also example] sometimes images and infoboxes can push a regular <nowiki>{{portal}}</nowiki> outside of the See also section. This template [http://en.wikipedia.org/w/index.php?title=Kurdistan&oldid=525548023#See_also doesn't have] that problem. [[User:Emmette Hernandez Coleman|Emmette Hernandez Coleman]] ([[User talk:Emmette Hernandez Coleman|talk]]) 16:34, 29 November 2012 (UTC) | ||
Another example: This template is well suited for articles that have more portals than related articles in the "See also" section, which would cause a regular <nowiki>{{portal}}</nowiki> sprawl into the next section, although a regular <nowiki>{{portal}}</nowiki> with {{tl|clear}} would sometimes work better depending on how much whitespace {{portal}} with {{clear}} would cause. | Another example: This template is well suited for articles that have more portals than related articles in the "See also" section, which would cause a regular <nowiki>{{portal}}</nowiki> sprawl into the next section, although a regular <nowiki>{{portal}}</nowiki> with {{tl|clear}} would sometimes work better depending on how much whitespace <nowiki>{{portal}} with {{clear}}</nowiki> would cause. | ||
=== Usage === | === Usage === |
Revision as of 16:34, 29 November 2012
This is a documentation subpage for Template:Portal bar. It may contain usage information, categories and other content that is not part of the original template page. |
The primary purpose of this template is for when using {{Portal}} would cause formating problems.
For example sometimes images and infoboxes can push a regular {{portal}} outside of the See also section. This template doesn't have that problem. Emmette Hernandez Coleman (talk) 16:34, 29 November 2012 (UTC)
Another example: 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 whitespace {{portal}} with {{clear}} would cause.
Usage
This template will take up to eighteen portal links. To add the template to a page, simply use the following code:
{{Portal bar|portal 1|portal 2|...|portal 18}}
Location
Within articles, this template is meant to be placed at the bottom of the article in the See also section.
Image
The portal image defaults to one that is specified in Template:Portal/Images/PortalName for the portal, or a generic image. There is a list of all such images. Have in mind that the "PortalName" variable should only have an upper case letter at the first word, the second and later words should be written in lower case, regardless of how is the name of the portal actually written. For example, Portal:Buenos Aires is written with two capital letters, but the subpage to host the image is Template:Portal/Images/Buenos aires, with only one capital letter.
Example
{{Portal bar|Biology|Fungi|Plants|Science}}
This yields:
See also