Template:Game icons: Difference between revisions
From Pikmin Fanon
No edit summary |
(Testing...) |
||
Line 1: | Line 1: | ||
<includeonly><div id="game-icons" style="float: right; margin-top: -32px; margin-bottom: -100%;">{{#if:{{{pikmin1|}}}{{{p1|}}}|<span style="margin: 0 3px;"> | <includeonly><div id="game-icons" style="float: right; margin-top: -32px; margin-bottom: -100%;">{{#if:{{{pikmin1|}}}{{{p1|}}}|<span style="margin: 0 3px;">{{click|link=pikipedia:Pikmin (game)|image=Icon p1.png|width=24px|title=Pikmin 1}}[[Category:Pikmin 1 enemies]]</span>}}{{#if:{{{pikmin2|}}}{{{p2|}}}|<span style="margin: 0 3px;">[[File:Icon p2.png|24px]][[Category:Pikmin 2 enemies]]</span>}}{{#if:{{{pikmin3|}}}{{{p3|}}}|<span style="margin: 0 3px;">[[File:Icon p3.png|24px]][[Category:Pikmin 3 enemies]]</span>}}{{#if:{{{heypik|}}}{{{hp|}}}|<span style="margin: 0 3px;">[[File:Icon hp.png|24px]][[Category:Hey! Pikmin enemies]]</span>}}{{#if:{{{pikadv|}}}{{{pa|}}}|<span style="margin: 0 3px;">[[File:icon pa.png]][[Category:Pikmin Adventure enemies]]</span>}}</div></includeonly><noinclude> | ||
{{click|link=pikipedia:Pikmin (game)|image=Icon p1.png|width=24px|title=Pikmin 1}} | |||
{{click|link=pikipedia:Pikmin 2|image=Icon p2.png|width=24px|title=Pikmin 2}} | |||
{{click|link=pikipedia:Pikmin 3|image=Icon p3.png|width=24px|title=Pikmin 3}} | |||
{{click|link=pikipedia:Hey! Pikmin|image=Icon hp.png|width=24px|title=Hey! Pikmin}} | |||
{{click|link=pikipedia:Pikmin Adventure|image=Icon pa.png|width=24px|title=Pikmin Adventure}} | |||
==Info== | ==Info== |
Revision as of 20:30, 6 March 2020
Template:Click
Template:Click
Template:Click
Template:Click
Template:Click
Info
Shows game icons next to the page title. These are used to quickly highlight which games the subject applies to or are related to.
Pages with this template are also categorized under the corresponding "enemies by game" category.
Parameters
Parameter | Mandatory | Default | Detailed description | |
---|---|---|---|---|
p1 | pikmin1 | 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 | heypik | No | Same as above, but an H in a speech bubble for Hey! Pikmin. | |
pa | pikadv | No | Same as above, but a red A for Pikmin Adventure. |
Skeleton
{{game icons|p=<y>|p2=<y>|p3=<y>|heypik=<y>|pikadv=<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}} |
File:Icon p1 icon.png |
{{game icons|p=y|p3=y}} |
File:P1 icon.pngFile:P3 icon.png |