Template:Portal/doc: Difference between revisions

From Zoophilia Wiki
Jump to navigationJump to search
meta>Funandtrvl
sync w/tmp
meta>Plastikspork
Line 4: Line 4:
This template is used to produce a link in a box to a [[Portal:List of portals|portal]] or portals.
This template is used to produce a link in a box to a [[Portal:List of portals|portal]] or portals.


===Parameters===
This template can be used to add multiple portal links to the "See also" section of an article.
: <code>'''<nowiki>{{</nowiki>Portal|<var>Name1</var>|<var>Name2</var>|<var>...</var>|<var>Name16</var>|left=<var>yes</var>|margin=<var>Margin</var>|boxsize=<var>Boxsize</var>|size=<var>Size</var>|break=<var>yes</var>}}'''</code>


; <code><var>Name</var></code> : The name of the portal; up to sixteen portal names may be used. If multiple portal names are used, then the other parameters will be ignored.
==Usage==
{{Portal |Louisiana |Missouri |Arkansas |Texas |Minnesota |Kansas |Nebraska |Colorado |North Dakota |Montana |Wyoming |Saskatchewan |Alberta |Oklahoma |New Mexico |History}}
This template can hold up to eighteen portal links. The example to the right is from the article [[Louisiana Purchase]].


====Optional====
<pre style="overflow:auto">
The following additional parameters are available. They are all optional, the default values are chosen to give a good look and feel across the encyclopedia and should not be overridden without good reason.
{{Portal |Portal 1 |Portal 2 |... |Portal 18 }}
</pre>


; {{Para|left|<var>yes</var>}} : To align the portal box to the left. By default, the box is aligned to the right.


; {{Para|margin|<var>Margin</var>}} : The margin around the box. By default, the box is surrounded by a margin of width 0.5em, but this can be customized using {{para|margin|<var>top right bottom left</var>}} (''e.g.'', {{para|margin|0.25em 0 0.25em 0.25em}}) or removed using {{para|margin|0}} (zero).
==Location==
 
; {{Para|boxsize|<var>Boxsize</var>}} : The width of the box, as an integer. This is in units of pixels. The default is to use a box wide enough to hold the text, if possible.
 
; {{Para|size|<var>Size</var>}} : The width of the icon, as an integer. This is in units of pixels.  The default is 28 times the [[image aspect ratio]], which produces an image 28 pixels high.
 
; {{Para|break|<var>yes</var>}} : If set to "yes", adds a line break before the word "portal".
 
===Images===
The portal image defaults to one that is specified in Template:Portal/Images/PortalName for the portal, or a generic image. There is a [[Template:Portal/Images|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.
 
===Location===
Within articles, 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===
==Example==
{| style="background:transparent;"
{| style="background:transparent;"
|- style="font-size:120%;"
|- style="font-size:120%;"
Line 35: Line 25:
| <small><pre>{{Portal|Science}}</pre></small>
| <small><pre>{{Portal|Science}}</pre></small>
| {{Portal|Science}}
| {{Portal|Science}}
|-
| <small><pre>{{Portal|Science|size=15|break=yes}}</pre></small>
| {{Portal|Science|size=15|break=yes}}
|-
| <small><pre>{{Portal|Science|boxsize=50}}</pre></small>
| {{Portal|Science|boxsize=50}}
|}
|}


===See also===
==See also==
*[[Template:Pbox]]
* [[Template:Pbox]]
<!-- *[[Template:Portal]] -->
* [[Template:Portal bar]]
*[[Template:Portal bar]]
* [[Template:Portal-inline]]
*[[Template:Portal box]]
* [[Template:Ports]]
*[[Template:Portal-inline]]
 
*[[Template:Ports]]
<includeonly>
<includeonly>
[[Category:Internal link templates]]
[[Category:Internal link templates]]
[[Category:Wikipedia Portal navflags]]
[[Category:Wikipedia Portal navflags]]
[[Category:Exclude in print]]
[[Category:Exclude in print]]
<!--Interwikis-->
<!--Interwikis-->
[[ar:قالب:بوابة]]
[[ar:قالب:بوابة]]

Revision as of 20:34, 14 January 2012

This template is used to produce a link in a box to a portal or portals.

This template can be used to add multiple portal links to the "See also" section of an article.

Usage

This template can hold up to eighteen portal links. The example to the right is from the article Louisiana Purchase.

{{Portal |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.

Example

Code
Result
{{Portal|Science}}

See also