Template:Game icons: Difference between revisions

From Pikipedia, the Pikmin wiki
Jump to navigation Jump to search
No edit summary
(Added Hey! Pikmin.)
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;">{{icon|Pikmin (game)||x24px}}[[Category:Pikmin 1]]</span>}}{{#if:{{{pikmin2|}}}{{{p2|}}}|<span style="margin: 0 3px;">{{icon|Pikmin 2||x24px}}[[Category:Pikmin 2]]</span>}}{{#if:{{{pikmin3|}}}{{{p3|}}}|<span style="margin: 0 3px;">{{icon|Pikmin 3||x24px}}[[Category:Pikmin 3]]</span>}}{{#if:{{{pikminadventure|}}}{{{pa|}}}|<span style="margin: 0 3px;">[[File:Pikmin Adventure icon.png|link=Pikmin Adventure]][[Category:Pikmin Adventure]]</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;">{{icon|Pikmin (game)||x24px}}[[Category:Pikmin 1]]</span>}}{{#if:{{{pikmin2|}}}{{{p2|}}}|<span style="margin: 0 3px;">{{icon|Pikmin 2||x24px}}[[Category:Pikmin 2]]</span>}}{{#if:{{{pikmin3|}}}{{{p3|}}}|<span style="margin: 0 3px;">{{icon|Pikmin 3||x24px}}[[Category:Pikmin 3]]</span>}}{{#if:{{{heypikmin|}}}{{{hp|}}}|<span style="margin: 0 3px;">{{icon|Hey! Pikmin||x24px}}[[Category:Hey! Pikmin]]</span>}}{{#if:{{{pikminadventure|}}}{{{pa|}}}|<span style="margin: 0 3px;">[[File:Pikmin Adventure icon.png|link=Pikmin Adventure]][[Category:Pikmin Adventure]]</span>}}</div></includeonly><noinclude>


==Info==
==Info==
Line 11: Line 11:
|-
|-
! p || pikmin
! p || pikmin
| No ||  || If this has a value, like "y", a white P will appear, symbolizing ''[[Pikmin (game)|Pikmin]]''.
| No ||  || If this has a value, like "y", a white P will appear, symbolizing {{p1}}.
|-
|-
! p2 || pikmin2
! p2 || pikmin2
| No ||  || Same as above, but a violet 2 for ''[[Pikmin 2]]''.
| No ||  || Same as above, but a violet 2 for {{p2}}.
|-
|-
! p3 || pikmin3
! p3 || pikmin3
| No ||  || Same as above, but an orange 3 for ''[[Pikmin 3]]''.
| No ||  || Same as above, but an orange 3 for {{p3}}.
|-
! hp || heypikmin
| No ||  || Same as above, but an H in a speech bubble for {{hp}}.
|-
|-
! pa || pikminadventure
! pa || pikminadventure
| No ||  || Same as above, but a red A for ''[[Pikmin Adventure]]''.
| No ||  || Same as above, but a red A for {{pa}}.
|}
|}


==Skeleton==
==Skeleton==
<pre>
<pre>
{{game icons|p=<y>|p2=<y>|p3=<y>|pa=<y>}}
{{game icons|p=<y>|p2=<y>|p3=<y>|hp=<y>|pa=<y>}}
</pre>
</pre>



Revision as of 16:48, April 13, 2017


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.

Pages with this template are also categorized under the corresponding game category.

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.
hp heypikmin No Same as above, but an H in a speech bubble for Hey! Pikmin.
pa pikminadventure No Same as above, but a red A for Pikmin Adventure.

Skeleton

{{game icons|p=<y>|p2=<y>|p3=<y>|hp=<y>|pa=<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|pikminadventure=y}}
Pikmin (game)Pikmin 2Pikmin 3Pikmin Adventure
{{game icons|p=y|p3=y}}
Pikmin (game)Pikmin 3