Template:Portal/doc
This page will only parse completely when it is included in another page.
[template]documentation subpage[/template]
This template is used to produce a link in a box to a [wiki="Portal:List of portals"]portal[/wiki].
[h="3"]Optional parameters[/h]
{{[b]portal[/b]|name|image|size|boxsize|break=yes|left=yes|marg in=}}
The units assumed for <code>size</code> (the width of the image) and <code>boxsize</code> (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 <code>margin=[i]top[/i] [i]right[/i] [i]bottom[/i] [i]left[/i]</code> (e.g. <code style="font-size:95%;">margin=0.25em 0 0.25em 0.25em</code>) or removed using <code>margin=0</code> (zero).
[h="3"]Location[/h]
Within articles, this template is meant to be placed at the bottom of the article in the "See also" section.
[h="3"]Examples[/h]
[table] style="background:transparent;"
|- style="font-size:120%;"
! Code<hr/> !! Result<hr/>
|-
| <small><div class="bbcode_container"> <div class="bbcode_description">Code:</div> <pre class="bbcode_code" style="height:36px;">{{portal}}</pre></div></small>
| [template]portal[/template]
|-
| <small><div class="bbcode_container"> <div class="bbcode_description">Code:</div> <pre class="bbcode_code" style="height:36px;">{{portal|Science}}</pre></div></small>
| [template]portal|Science[/template]
|-
| <small><div class="bbcode_container"> <div class="bbcode_description">Code:</div> <pre class="bbcode_code" style="height:36px;">{{portal|Spaceflight|RocketSu nIcon.svg}}</pre></div></small>
| [template]portal|Spaceflight|RocketSunIcon.svg[/template]
|-
| <small><div class="bbcode_container"> <div class="bbcode_description">Code:</div> <pre class="bbcode_code" style="height:36px;">{{portal|Spaceflight|RocketSu nIcon.svg|size=50}}</pre></div></small>
| [template]portal|Spaceflight|RocketSunIcon.svg|siz e=50[/template]
|-
| <small><div class="bbcode_container"> <div class="bbcode_description">Code:</div> <pre class="bbcode_code" style="height:36px;">{{portal|Spaceflight|RocketSu nIcon.svg|boxsize=50}}</pre></div></small>
| [template]portal|Spaceflight|RocketSunIcon.svg|box size=50[/template]
|-
| <small><div class="bbcode_container"> <div class="bbcode_description">Code:</div> <pre class="bbcode_code" style="height:36px;">{{portal|Spaceflight|RocketSu nIcon.svg|break=yes}}</pre></div></small>
| [template]portal|Spaceflight|RocketSunIcon.svg|bre ak=yes[/template]
|-
| <small><div class="bbcode_container"> <div class="bbcode_description">Code:</div> <pre class="bbcode_code" style="height:36px;">{{portal|Spaceflight|RocketSu nIcon.svg|break=yes|left=yes 5;}</pre></div></small>
| [template]portal|Spaceflight|RocketSunIcon.svg|bre ak=yes|left=yes[/template]
[/table]
This template is used to produce a link in a box to a [wiki="Portal:List of portals"]portal[/wiki].
[h="3"]Optional parameters[/h]
{{[b]portal[/b]|name|image|size|boxsize|break=yes|left=yes|marg in=}}
The units assumed for <code>size</code> (the width of the image) and <code>boxsize</code> (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 <code>margin=[i]top[/i] [i]right[/i] [i]bottom[/i] [i]left[/i]</code> (e.g. <code style="font-size:95%;">margin=0.25em 0 0.25em 0.25em</code>) or removed using <code>margin=0</code> (zero).
[h="3"]Location[/h]
Within articles, this template is meant to be placed at the bottom of the article in the "See also" section.
[h="3"]Examples[/h]
[table] style="background:transparent;"
|- style="font-size:120%;"
! Code<hr/> !! Result<hr/>
|-
| <small><div class="bbcode_container"> <div class="bbcode_description">Code:</div> <pre class="bbcode_code" style="height:36px;">{{portal}}</pre></div></small>
| [template]portal[/template]
|-
| <small><div class="bbcode_container"> <div class="bbcode_description">Code:</div> <pre class="bbcode_code" style="height:36px;">{{portal|Science}}</pre></div></small>
| [template]portal|Science[/template]
|-
| <small><div class="bbcode_container"> <div class="bbcode_description">Code:</div> <pre class="bbcode_code" style="height:36px;">{{portal|Spaceflight|RocketSu nIcon.svg}}</pre></div></small>
| [template]portal|Spaceflight|RocketSunIcon.svg[/template]
|-
| <small><div class="bbcode_container"> <div class="bbcode_description">Code:</div> <pre class="bbcode_code" style="height:36px;">{{portal|Spaceflight|RocketSu nIcon.svg|size=50}}</pre></div></small>
| [template]portal|Spaceflight|RocketSunIcon.svg|siz e=50[/template]
|-
| <small><div class="bbcode_container"> <div class="bbcode_description">Code:</div> <pre class="bbcode_code" style="height:36px;">{{portal|Spaceflight|RocketSu nIcon.svg|boxsize=50}}</pre></div></small>
| [template]portal|Spaceflight|RocketSunIcon.svg|box size=50[/template]
|-
| <small><div class="bbcode_container"> <div class="bbcode_description">Code:</div> <pre class="bbcode_code" style="height:36px;">{{portal|Spaceflight|RocketSu nIcon.svg|break=yes}}</pre></div></small>
| [template]portal|Spaceflight|RocketSunIcon.svg|bre ak=yes[/template]
|-
| <small><div class="bbcode_container"> <div class="bbcode_description">Code:</div> <pre class="bbcode_code" style="height:36px;">{{portal|Spaceflight|RocketSu nIcon.svg|break=yes|left=yes 5;}</pre></div></small>
| [template]portal|Spaceflight|RocketSunIcon.svg|bre ak=yes|left=yes[/template]
[/table]
Contributors: | ,
Created by Last edited by , 10-23-2011 at 02:14 PM 0 Comments, 968 Views |
, 11-23-2008 at 08:39 PM
Tags for this Page
Similar Pages
-
Portal/Instructions
By Arjan in forum MainComments: 0Last Post: 11-23-2008, 08:37 PM -
Box portal skeleton
By Arjan in forum TemplateComments: 0Last Post: 11-23-2008, 07:08 PM -
What is a featured portal?
By Arjan in forum MainComments: 0Last Post: 11-22-2008, 04:30 PM -
Shadow Portal
By Sorontar in forum MainComments: 0Last Post: 08-12-2008, 12:04 AM -
Community Portal/Help
By Arjan in forum MainComments: 0Last Post: 11-28-2006, 09:16 PM
Bookmarks