Template:Game icons: Difference between revisions

From Pikipedia, the Pikmin wiki
Jump to navigation Jump to search
(let's try this)
mNo edit summary
 
(29 intermediate revisions by 7 users not shown)
Line 1: Line 1:
<includeonly><div style="position: relative; z-index: 10; float: right; top: -44px;">{{#if:{{{pikmin|}}}|<span style="margin: 0 3px;">[[File:Pikmin icon.png|link=Pikmin (game)]]</span>}}{{#if:{{{pikmin2|}}}|<span style="margin: 0 3px;">[[File:Pikmin 2 icon.png|link=Pikmin 2]]</span>}}{{#if:{{{pikmin3|}}}|<span style="margin: 0 3px;">[[File:Pikmin 3 icon.png|link=Pikmin 3]]</span>}}</div></includeonly>
<includeonly><div>{{#if:{{{pikmin|}}}{{{p|}}}|<indicator name="1-p">{{icon|Pikmin (game)||x24px}}</indicator>{{#if:{{NAMESPACE}}||[[Category:Pikmin 1]]}}}}{{#if:{{{pikmin2|}}}{{{p2|}}}|<indicator name="2-p2">{{icon|Pikmin 2||x24px}}</indicator>{{#if:{{NAMESPACE}}||[[Category:Pikmin 2]]}}}}{{#if:{{{pikmin3|}}}{{{p3|}}}|<indicator name="3-p3">{{icon|Pikmin 3||x24px}}</indicator>{{#if:{{NAMESPACE}}||[[Category:Pikmin 3]]}}}}{{#if:{{{pikmin4|}}}{{{p4|}}}|<indicator name="4-p4">{{icon|Pikmin 4||x24px}}</indicator>{{#if:{{NAMESPACE}}||[[Category:Pikmin 4]]}}}}{{#if:{{{heypikmin|}}}{{{hp|}}}|<indicator name="5-hp">{{icon|Hey! Pikmin||x24px}}</indicator>{{#if:{{NAMESPACE}}||[[Category:Hey! Pikmin]]}}}}{{#if:{{{pikminbloom|}}}{{{pb|}}}|<indicator name="6-pb">{{icon|Pikmin Bloom||x24px}}</indicator>{{#if:{{NAMESPACE}}||[[Category:Pikmin Bloom]]}}}}{{#if:{{{pikminadventure|}}}{{{pa|}}}|<indicator name="7-pa">[[File:Pikmin Adventure icon.png|x24px|link=Pikmin Adventure]]</indicator>{{#if:{{NAMESPACE}}||[[Category:Pikmin Adventure]]}}}}</div></includeonly><noinclude>
 
==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.
 
Articles with this template are also categorized under the corresponding [[:Category:Games|game category]].
 
==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 {{p1}}.
|-
! p2 || pikmin2
| No ||  || Same as above, but a violet 2 for {{p2}}.
|-
! p3 || pikmin3
| No ||  || Same as above, but an orange 3 for {{p3}} and {{p3d}}.
|-
! p4 || pikmin4
| No ||  || Same as above, but a yellow 4 for {{p4}}.
|-
! hp || heypikmin
| No ||  || Same as above, but an H in a speech bubble for {{hp}}.
|-
! pb || pikminbloom
| No ||  || Same as above, but the app icon of {{pb}} for that game.
|-
! pa || pikminadventure
| No ||  || Same as above, but a red A for {{pa}}.
|}
 
==Skeleton==
<pre>
{{game icons|p=<y>|p2=<y>|p3=<y>|p4=<y>|hp=<y>|pb=<y>|pa=<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|pikminadventure=y}}</pre>
| <span style="margin: 0 3px;">{{icon|Pikmin (game)||x24px}}</span><span style="margin: 0 3px;">{{icon|Pikmin 2||x24px}}</span><span style="margin: 0 3px;">{{icon|Pikmin 3||x24px}}</span><span style="margin: 0 3px;">{{icon|Pikmin Adventure||x24px}}</span>
|-
| <pre>{{game icons|p=y|p3=y}}</pre>
| <span style="margin: 0 3px;">{{icon|Pikmin (game)||x24px}}</span><span style="margin: 0 3px;">{{icon|Pikmin 3||x24px}}</span>
|}
 
[[Category:Templates]]</noinclude>

Latest revision as of 17:22, November 15, 2024


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.

Articles 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 and Pikmin 3 Deluxe.
p4 pikmin4 No Same as above, but a yellow 4 for Pikmin 4.
hp heypikmin No Same as above, but an H in a speech bubble for Hey! Pikmin.
pb pikminbloom No Same as above, but the app icon of Pikmin Bloom for that game.
pa pikminadventure No Same as above, but a red A for Pikmin Adventure.

Skeleton

{{game icons|p=<y>|p2=<y>|p3=<y>|p4=<y>|hp=<y>|pb=<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