Difference between revisions of "Template:Portal/doc"
Jump to navigation
Jump to search
m (New page: {{documentation subpage}} <includeonly>{{high-use|1,500,000}}</includeonly> <!---PLEASE ADD METADATA TO THE <includeonly> SECTION AT THE BOTTOM OF THIS PAGE.---> This template is used to p...) |
m |
||
Line 1: | Line 1: | ||
{{documentation subpage}} | {{documentation subpage}} | ||
<includeonly>{{high-use|1,500,000}}</includeonly> | <includeonly>{{high-use|1,500,000}}</includeonly> | ||
− | + | ||
This template is used to produce a link in a box to a [[Portal:List of portals|portal]]. | This template is used to produce a link in a box to a [[Portal:List of portals|portal]]. | ||
Latest revision as of 11:50, 7 November 2008
This template is used to produce a link in a box to a portal.
Optional parameters[edit]
{{portal|name|image|size|boxsize|break=yes|left=yes|margin=}}
The units assumed for size
(the width of the image) and boxsize
(the width of the box containing the image and portal link) are pixels (px). By default, the box is surrounded by a margin of width 0.5em, but this can be customized using margin=top right bottom left
(e.g. margin=0.25em 0 0.25em 0.25em
) or removed using margin=0
(zero).
Location[edit]
Within articles, this template is meant to be placed at the bottom of the article in the "See also" section.
Examples[edit]
Code |
Result |
---|---|
{{portal}} |
|
{{portal|Science}} |
|
{{portal|Spaceflight|RocketSunIcon.svg}} |
|
{{portal|Spaceflight|RocketSunIcon.svg|size=50}} |
|
{{portal|Spaceflight|RocketSunIcon.svg|boxsize=50}} |
|
{{portal|Spaceflight|RocketSunIcon.svg|break=yes}} |
|
{{portal|Spaceflight|RocketSunIcon.svg|break=yes|left=yes}} |