Template:Portal/doc: Difference between revisions

From Zoophilia Wiki
Jump to navigationJump to search
meta>Sardanaphalus
formatting, +Examples
meta>Sardanaphalus
m parentheses
Line 6: Line 6:
===Optional parameters===
===Optional parameters===
  <nowiki>{{</nowiki>'''portal'''|name|image|size|boxsize|break=yes|left=yes}}
  <nowiki>{{</nowiki>'''portal'''|name|image|size|boxsize|break=yes|left=yes}}
The units assumed for <code>size</code> and <code>boxsize</code> are pixels (px).
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).


==Location==
==Location==

Revision as of 04:45, 28 February 2008

Use

This template is used to link an article to its related portal.

Optional parameters

{{portal|name|image|size|boxsize|break=yes|left=yes}}

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).

Location

Within articles, this template is meant to be placed at the bottom of the article in the "See also" section.

Examples

Code
Result
{{portal}}
{{portal|Science}}
{{portal|Science|Placeholder.png}}
{{portal|Science|Placeholder.png|40}}
{{portal|Science|Placeholder.png|40|80}}
{{portal|Science|Placeholder.png|break=yes}}
{{portal|Science|Placeholder.png|break=yes|left=yes}}