Template:Game icons: Difference between revisions

From Pikipedia, the Pikmin wiki
Jump to navigation Jump to search
m (oops)
(New documentation style.)
Line 1: Line 1:
<includeonly><div id="game-icons" style="float: right; margin-top: -41px; margin-bottom: -100%;">{{#if:{{{pikmin|}}}{{{p|}}}|<span style="margin: 0 3px;">[[File:Pikmin icon.png|link=Pikmin (game)]][[Category:Pikmin 1]]</span>}}{{#if:{{{pikmin2|}}}{{{p2|}}}|<span style="margin: 0 3px;">[[File:Pikmin 2 icon.png|link=Pikmin 2]][[Category:Pikmin 2]]</span>}}{{#if:{{{pikmin3|}}}{{{p3|}}}|<span style="margin: 0 3px;">[[File:Pikmin 3 icon.png|link=Pikmin 3]][[Category:Pikmin 3]]</span>}}</div></includeonly><noinclude>
<includeonly><div id="game-icons" style="float: right; margin-top: -41px; margin-bottom: -100%;">{{#if:{{{pikmin|}}}{{{p|}}}|<span style="margin: 0 3px;">[[File:Pikmin icon.png|link=Pikmin (game)]][[Category:Pikmin 1]]</span>}}{{#if:{{{pikmin2|}}}{{{p2|}}}|<span style="margin: 0 3px;">[[File:Pikmin 2 icon.png|link=Pikmin 2]][[Category:Pikmin 2]]</span>}}{{#if:{{{pikmin3|}}}{{{p3|}}}|<span style="margin: 0 3px;">[[File:Pikmin 3 icon.png|link=Pikmin 3]][[Category:Pikmin 3]]</span>}}</div></includeonly><noinclude>


<span style="margin: 0 3px;">[[File:Pikmin icon.png|link=Pikmin (game)]]</span><span style="margin: 0 3px;">[[File:Pikmin 2 icon.png|link=Pikmin 2]]</span><span style="margin: 0 3px;">[[File:Pikmin 3 icon.png|link=Pikmin 3]]</span>


==Usage==
Shows game icons next to the page title.  Call with ''pikmin'', ''pikmin2'' and ''pikmin3'' arguments (or shorthand ''p'', ''p2'' and ''p3'') for every icon to include, eg.


<nowiki>{{game icons|pikmin2=y|pikmin3=y}}</nowiki>
==Info==
Shows game icons next to the page title. These are used to quickly highlight which games the subject applies to or are related with.
 
==Parameters==
{| class = "wikitable"
! colspan = "2" | Parameter || Mandatory || Default || Detailed description
|-
! p || pikmin
| No ||  || If this has a value, like "y", a white P will appear, symbolizing ''[[Pikmin (game)|Pikmin]]''.
|-
! p2 || pikmin2
| No ||  || Same as above, but a violet 2 for ''[[Pikmin 2]]''.
|-
! p3 || pikmin3
| No ||  || Same as above, but an orange 3 for ''[[Pikmin 3]]''.
|}
 
==Template==
<pre>
{{game icons|p=<y>|p2=<y>|p3=<y>}}
</pre>
 
==Examples==
Note that in an article, these are not inline, but appear on the top-right corner of the page.
{| class = "wikitable"
! Code || Result
|-
| <pre>{{game icons|pikmin=y|pikmin2=y|pikmin3=y}}</pre>
| <span style="margin: 0 3px;">[[File:Pikmin icon.png|link=Pikmin (game)]]</span><span style="margin: 0 3px;">[[File:Pikmin 2 icon.png|link=Pikmin 2]]</span><span style="margin: 0 3px;">[[File:Pikmin 3 icon.png|link=Pikmin 3]]</span>
|-
| <pre>{{game icons|p=y|p3=y}}</pre>
| <span style="margin: 0 3px;">[[File:Pikmin icon.png|link=Pikmin (game)]]</span><span style="margin: 0 3px;">[[File:Pikmin 3 icon.png|link=Pikmin 3]]</span>
|}


[[Category:Templates]]</noinclude>
[[Category:Templates]]</noinclude>

Revision as of 04:37, October 17, 2014



Info

Shows game icons next to the page title. These are used to quickly highlight which games the subject applies to or are related with.

Parameters

Parameter Mandatory Default Detailed description
p pikmin No If this has a value, like "y", a white P will appear, symbolizing Pikmin.
p2 pikmin2 No Same as above, but a violet 2 for Pikmin 2.
p3 pikmin3 No Same as above, but an orange 3 for Pikmin 3.

Template

{{game icons|p=<y>|p2=<y>|p3=<y>}}

Examples

Note that in an article, these are not inline, but appear on the top-right corner of the page.

Code Result
{{game icons|pikmin=y|pikmin2=y|pikmin3=y}}
File:Pikmin icon.pngPikmin 2Pikmin 3
{{game icons|p=y|p3=y}}
File:Pikmin icon.pngPikmin 3