Template:MSP/GO: Difference between revisions

no edit summary
No edit summary
No edit summary
Line 1: Line 1:
<span style="position:relative; width:{{{size|60}}}px; height:{{{size|60}}}px; display:inline-block">{{#ifeq: {{{lucky|no}}}|yes|<span style="position:absolute; left:0; top:0;">[[Image:GO Lucky background.png|{{{size|60}}}px|link=]]</span>}}<span style="position:relative; left:0; top:0;">[[Image:GO{{{1|0000}}}{{{form|}}}.png|{{{size|60}}}px|link={{{2|Missingno.}}} (Pokémon)#Pokémon GO|{{{2|Missingno.}}} {{#if: {{{4|}}}|({{{4|}}})}}]]</span><span style="text-align:left; vertical-align:top; position:absolute; left:0; top:0;">{{#ifeq: {{{shiny|no}}}|yes|[[File:ShinyGOStar.png|{{#iferror: {{#expr: floor({{{size|60}}}/3)}}|20}}px|link=Shiny Pokémon (GO)|Shiny]]}}</span><span style="text-align:left; vertical-align:bottom; position:absolute; left:0; bottom:0;">{{#if: {{{how|}}}{{{how-image|}}}|[[File:{{#switch:{{{how|}}}|trade=GO Traded icon.png|event=GO Event icon.png|evolve=GO Evolution icon.png|egg=GO Hatched icon.png|mega=GO Mega icon.png|{{{how-image|None.png}}}}}|{{#iferror: {{#expr: floor({{{size|60}}}/3)}}|20}}px|link={{#switch:{{{how|}}}|trade=Trade (GO){{!}}Trade|event=List of Pokémon with form differences (GO)#Event Pokémon{{!}}Event Pokémon|egg=List of Eggs in Pokémon GO{{!}}Egg|evolve=Evolution#Pokémon GO{{!}}Evolve|mega=Mega Evolution (GO){{!}}Mega Evolution|{{{how-link|}}}}}]]|{{#ifeq: {{{shadow|no}}}|yes|[[File:GO Shadow icon.png|{{#iferror: {{#expr: floor({{{size|60}}}/3)}}|20}}px|link=Shadow Pokémon (GO)|Shadow]]|{{#ifeq: {{{purified|no}}}|yes|[[File:GO Purified icon.png|{{#iferror: {{#expr: floor({{{size|60}}}/3}})|20}}px|link=Shadow Pokémon (GO)|Purified]]}}}}}}</span></span><noinclude>
<span style="position:relative; width:{{{size|60}}}px; height:{{{size|60}}}px; display:inline-block">{{#ifeq: {{{lucky|no}}}|yes|<span style="position:absolute; left:0; top:0;">[[Image:GO Lucky background.png|{{{size|60}}}px|link=]]</span>}}<span style="position:relative; left:0; top:0;">[[Image:GO{{{1|0000}}}{{{form|}}}.png|{{{size|60}}}px|link={{{2|Missingno.}}} (Pokémon)#Pokémon GO|{{{2|Missingno.}}} {{#if: {{{3|}}}|({{{3|}}})}}]]</span><span style="text-align:left; vertical-align:top; position:absolute; left:0; top:0;">{{#ifeq: {{{shiny|no}}}|yes|[[File:ShinyGOStar.png|{{#iferror: {{#expr: floor({{{size|60}}}/3)}}|20}}px|link=Shiny Pokémon (GO)|Shiny]]}}</span><span style="text-align:left; vertical-align:bottom; position:absolute; left:0; bottom:0;">{{#if: {{{how|}}}{{{how-image|}}}|[[File:{{#switch:{{{how|}}}|trade=GO Traded icon.png|event=GO Event icon.png|evolve=GO Evolution icon.png|egg=GO Hatched icon.png|mega=GO Mega icon.png|{{{how-image|None.png}}}}}|{{#iferror: {{#expr: floor({{{size|60}}}/3)}}|20}}px|link={{#switch:{{{how|}}}|trade=Trade (GO){{!}}Trade|event=List of Pokémon with form differences (GO)#Event Pokémon{{!}}Event Pokémon|egg=List of Eggs in Pokémon GO{{!}}Egg|evolve=Evolution#Pokémon GO{{!}}Evolve|mega=Mega Evolution (GO){{!}}Mega Evolution|{{{how-link|}}}}}]]|{{#ifeq: {{{shadow|no}}}|yes|[[File:GO Shadow icon.png|{{#iferror: {{#expr: floor({{{size|60}}}/3)}}|20}}px|link=Shadow Pokémon (GO)|Shadow]]|{{#ifeq: {{{purified|no}}}|yes|[[File:GO Purified icon.png|{{#iferror: {{#expr: floor({{{size|60}}}/3}})|20}}px|link=Shadow Pokémon (GO)|Purified]]}}}}}}</span></span><noinclude>
 
== Usage ==
This template is used to display a Pokémon image with additional options.
 
<pre>
{{MSP/GO|
1=Ndex Id (Template image uses [[File:GO{Ndex}{form}.png]]) |
2=Species name (links to [[{Species} (Pokémon)]]) |
3=(optional) Form name, to display on tooltip
size=(optional) Size of the image in pixels. Defaults to 60. |
form=(optional) Pokémon form Id, appended to Ndex. |
how=(optional) Display icon for acquisition method (e.g., `trade`, `event`, `evolve`) in the bottom-left. |
how-image=(optional) Filename override for `how` method. |
shadow=(optional) Set to `yes` to display a bottom-left shadow icon. |
purified=(optional) Set to `yes` to display a bottom-left purified icon. |
lucky=(optional) Set to `yes` to display a lucky background. }}
</pre>
 
 
'''Example usage:'''
 
<pre>
{{MSP/GO|0001|Bulbasaur|Shadow|form=_s|size=80|shiny=yes|shadow=yes}}
</pre>
 
'''Output:'''
 
{{MSP/GO|0001|Bulbasaur|Shadow|form=_s|size=80|shiny=yes|shadow=yes}}
 
 
[[Category:Link templates]]
[[Category:Link templates]]
</noinclude>
</noinclude>