Template:Game icons: Difference between revisions
From Pikmin Fanon
(Let's see...) |
No edit summary |
||
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 enemies]]</span>}}{{#if:{{{pikmin2|}}}{{{p2|}}}|<span style="margin: 0 3px;">{{icon|Pikmin 2||x24px}}[[Category:Pikmin 2 enemies]]</span>}}{{#if:{{{pikmin3|}}}{{{p3|}}}|<span style="margin: 0 3px;">{{icon|Pikmin 3||x24px}}[[Category:Pikmin 3 enemies]]</span>}}{{#if:{{{heypikmin|}}}{{{hp|}}}|<span style="margin: 0 3px;">{{icon| | <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 enemies]]</span>}}{{#if:{{{pikmin2|}}}{{{p2|}}}|<span style="margin: 0 3px;">{{icon|Pikmin 2||x24px}}[[Category:Pikmin 2 enemies]]</span>}}{{#if:{{{pikmin3|}}}{{{p3|}}}|<span style="margin: 0 3px;">{{icon|Pikmin 3||x24px}}[[Category:Pikmin 3 enemies]]</span>}}{{#if:{{{heypikmin|}}}{{{hp|}}}|<span style="margin: 0 3px;">{{icon|icon hp||x24px}}[[Category:Hey! Pikmin enemies]]</span>}}{{#if:{{{pikminadventure|}}}{{{pac|}}}|<span style="margin: 0 3px;">[[File:icon pa.png|link=Pikmin Adventure]][[Category:Pikmin Adventure enemies]]</span>}}</div></includeonly><noinclude> | ||
==Info== | ==Info== | ||
Shows game icons next to the page title. These are used to quickly highlight which games the subject applies to or are related | 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 [[:Category:Enemies by game|"enemies by game" category]]. | Pages with this template are also categorized under the corresponding [[:Category:Enemies by game|"enemies by game" category]]. | ||
Line 22: | Line 22: | ||
| No || || Same as above, but an H in a speech bubble for {{hp}}. | | No || || Same as above, but an H in a speech bubble for {{hp}}. | ||
|- | |- | ||
! | ! pac || pikminadventure | ||
| No || || Same as above, but a red A for {{pac}}. | | No || || Same as above, but a red A for {{pac}}. | ||
|} | |} | ||
Line 37: | Line 37: | ||
|- | |- | ||
| <pre>{{game icons|pikmin=y|pikmin2=y|pikmin3=y|pikminadventure=y}}</pre> | | <pre>{{game icons|pikmin=y|pikmin2=y|pikmin3=y|pikminadventure=y}}</pre> | ||
| <span style="margin: 0 3px;">{{icon| | | <span style="margin: 0 3px;">{{icon|icon p1||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> | | <pre>{{game icons|p=y|p3=y}}</pre> |
Revision as of 04:33, 25 February 2020
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 | |
---|---|---|---|---|
p | pikmin | No | If this has a value, like "y", a white P will appear, symbolizing Pikmin 1. | |
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. | |
pac | pikminadventure | No | Same as above, but a red A for Template:Pac. |
Skeleton
{{game icons|p=<y>|p2=<y>|p3=<y>|hp=<y>|pac=<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:Pikmin (game) icon.png |