Template:Portal/doc: Difference between revisions

From Zoophilia Wiki
Jump to navigationJump to search
meta>Ashishbhatnagar72
No edit summary
meta>Sardanaphalus
formatting, +Examples
Line 4: Line 4:
This template is used to link an article to its related [[Portal:List of portals|portal]].
This template is used to link an article to its related [[Portal:List of portals|portal]].


; Optional parameters
===Optional parameters===
  <nowiki>{{Portal|name|image|size|boxsize|break=yes|left=yes}}</nowiki>
  <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).


==Location==
==Location==
This template is meant to be placed at the bottom of the article in the "See also" section.
Within articles, this template is meant to be placed at the bottom of the article in the "See also" section.
 
==Examples==
{| style="background:transparent;"
|- style="font-size:120%;"
! Code<hr/> !! Result<hr/>
|-
| <pre>{{portal}}</pre>
| {{portal}}
|-
| <pre>{{portal|Science}}</pre>
| {{portal|Science}}
|-
| <pre>{{portal|Science|Placeholder.png}}</pre>
| {{portal|Science|Placeholder.png}}
|-
| <pre>{{portal|Science|Placeholder.png|40}}</pre>
| {{portal|Science|Placeholder.png|40}}
|-
| <pre>{{portal|Science|Placeholder.png|40|80}}</pre>
| {{portal|Science|Placeholder.png|40|80}}
|-
| <pre>{{portal|Science|Placeholder.png|break=yes}}</pre>
| {{portal|Science|Placeholder.png|break=yes}}
|-
| <pre>{{portal|Science|Placeholder.png|break=yes|left=yes}}</pre>
| {{portal|Science|Placeholder.png|break=yes|left=yes}}
|}





Revision as of 04:42, 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 and boxsize 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}}