Template:MastersIcon: Difference between revisions
From Bulbapedia, the community-driven Pokémon encyclopedia.
Jump to navigationJump to search
Storm Aurora (talk | contribs) (made the pokemonnum parameter optional using the n2num template) |
(trying out role-based color coding, per discord discussion) |
||
Line 1: | Line 1: | ||
<includeonly><!-- | <includeonly><!-- | ||
--><div style="display:inline-block;padding:4px; border:3px solid #{{{{{synctype|}}} color}}; text-align:center; {{ | --><div class="roundy" style="display:inline-block;padding:4px; border:3px solid #{{{{{synctype|}}} color}}; text-align:center;"><div class="roundy" style="{{#switch:{{{role|}}}|Physical Strike|Special Strike=background:#{{red color light}}|Support=background:#{{blue color light}}|Tech=background:#{{green color light}}|Sprint=background:#{{orange color light}}|Field=background:#{{violet color light}}}}">[[File:VS{{{filename|{{{trainer|}}} {{#if:{{{sygna|}}}|Sygna}} {{{alt|}}}}}} {{#if:{{{ex|}}}|EX}} Masters.png|{{{size|60px}}}|{{{trainer|}}} & {{{displaypokemon|{{{pokemon|}}}}}}|link={{{trainer|}}} (Masters)#{{{pokemon|}}}]][[File:Masters{{{pokemonnum|{{N2Num|{{{pokemon|Bulbasaur}}}}}}}}.png|{{{size|60px|}}}|{{{trainer|}}} & {{{displaypokemon|{{{pokemon|}}}}}}|link={{{trainer|}}} (Masters)#{{{pokemon|}}}]]</div>[[File:Masters {{{role|}}}.png|20px|link=]][[File:{{{synctype|}}}IC Masters.png|15px|link=]] [[{{{trainer|}}} (Masters)#{{{pokemon|}}}|{{{displaytrainer|{{#if:{{{sygna|}}}|Sygna Suit}} {{{trainer|}}}}}}<br>{{#if:{{{alt|}}}|({{{alt}}})<br>}}& {{{displaypokemon|{{{pokemon|}}}}}}]]{{#if:{{{notes|}}}|<br><span style="font-size:80%">''({{{notes|}}})''</span>|<br>}}{{#if:{{{alt|}}}||<br>}}</div> | ||
</includeonly><noinclude> | </includeonly><noinclude> | ||
{{documentation}} | {{documentation}} |
Revision as of 11:02, 5 August 2024
Template documentation
|
---|
Note: portions of the template sample may not be visible without values provided. |
View or edit this documentation. (About template documentation) |
{{MastersIcon}}
generates a flex block, that represents a sync pair from Pokémon Masters EX. Clicking the Trainer icon, Pokémon icon, or the text will go to the Trainer's Masters page, at that Pokémon's section.
- For Egg pairs, use
{{MastersEggIcon}}
instead.
- For non-Egg pairs involving Scottie and Bettie, as well as the 3 first partner Pokémon given by Professor Bellis, use
{{MastersIcon/SB}}
instead.
- To represent a sync pair within a table, use
{{MastersIcon/Table}}
instead.
Usage
{{MastersIcon |trainer= |displaytrainer= |sygna= |alt= |ex= |filename= |pokemon= |displaypokemon= |pokemonnum= |synctype= |role= |size= |notes= }}
Template fields
Trainer
- trainer - The Trainer's name. Do not include any signifiers of an alt.
- displaytrainer (optional) - Override the display of the trainer's name, if it does not match their file (tends to be the case with professors and The Masked Royal).
- sygna (optional) - Set to 1 if the Trainer is wearing a sygna suit. Leave blank otherwise.
- arc (optional) - Set to 1 if the Trainer is wearing an arc suit. Leave blank otherwise. Note that this will change the Pokémon's section link to "Pokémon name (Arc Suit)".
- alt (optional) - Signifier of an alt, if it's not just a sygna suit. Do not include any parentheses. (If the trainer is not an alt, leave blank.)
- In the case of "Sygna Suit Cynthia (Aura)" or something similar, set sygna to 1 and put "Aura" in alt.
- ex (optional) - Set to 1 to display the Trainer image in EX colors. Otherwise, leave blank.
- filename (optional) - Custom override to the file name of the Trainer icon.
- Normally, The template will attempt to find the filename based on the values of sygna, alt, and ex.
- If the correct file is not found or is named irregularly, provide the correct name in this field, without "VS" and without " Masters.png". (If the trainer is not an alt, leave blank.)
Pokémon
- pokemon - The name of the Pokémon. Must match how the Pokémon's section is named on the Trainer's Masters article.
- Tip: use anchor shortcuts when possible - Some Pokémon with complex section names will also have simplified anchors. For example, May_(Masters)#Marshtomp will still go to the section named "Mudkip → Marshtomp → Swampert". Therefore, putting "Marshtomp" in this field will still link to the correct section on May's page.
- displaypokemon (optional) - Custom override to the displayed name of the Pokémon.
- Normally, the template will display the name of the Pokémon's section.
- This field can also be used to indicate Mega Evolutions, or to use a shorter name than the full one.
- pokemonnum (optional) - Pokédex number of the Pokémon, to find its image file.
- Normally, the template will use the Pokémon's name to look up its Pokédex number.
- This field should be used if the Pokémon is an alternate form, including changes such as being Shiny, Mega Evolved, or female (if the Pokémon has gender differences).
Pair
- synctype - The type of the sync pair's sync move.
- role - Physical Strike, Special Strike, Tech, Support, Sprint, or Field.
- size (optional) - Desired size of the images. Defaults to 60px.
- notes (optional) - Includes some text as a note. Useful for skill pages. If not needed, leave blank.
Examples
Non-alt Trainer
{{MastersIcon|trainer=Piers|synctype=Dark|role=Support|pokemon=Obstagoon|pokemonnum=862}}
Trainer alts
{{MastersIcon|trainer=May|alt=Spring 2021|synctype=Normal|role=Physical Strike|pokemon=Lopunny|pokemonnum=428}} {{MastersIcon|trainer=May|alt=Anniversary 2022|synctype=Psychic|role=Tech|pokemon=Latias|pokemonnum=380}}
Custom trainer name
{{MastersIcon|trainer=Masked Royal|displaytrainer=The Masked Royal|synctype=Dark|role=Tech|pokemon=Incineroar|pokemonnum=727}} {{MastersIcon|trainer=Sycamore|displaytrainer=Professor Sycamore|synctype=Fairy|role=Support|pokemon=Xerneas|pokemonnum=716}} {{MastersIcon|trainer=Oak|displaytrainer=Professor Oak|synctype=Psychic|role=Tech|pokemon=Mew (Pre-Sync Move → Post-Sync Move)|displaypokemon=Mew|pokemonnum=151}}
Pokémon with evolutions
{{MastersIcon|trainer=May|synctype=Water|role=Tech|pokemon=Mudkip → Marshtomp → Swampert|pokemonnum=260}}
Section anchor linking
{{MastersIcon|trainer=May|synctype=Water|role=Tech|pokemon=Marshtomp|pokemonnum=259}}
Shiny Pokémon
{{MastersIcon|trainer=Diantha|sygna=1|synctype=Rock|role=Tech|pokemon=Diancie|pokemonnum=719_s}}
Pokémon form
{{MastersIcon|trainer=Diantha|alt=Special Costume|synctype=Fighting|role=Tech|pokemon=Keldeo (Resolute Form)|pokemonnum=647R}}
Override file name
{{MastersIcon|trainer=May|sygna=1|synctype=Fire|role=Tech|pokemon=Blaziken|pokemonnum=257}} {{MastersIcon|trainer=Iris|alt=Alt.|filename=Iris Champion|synctype=Dragon|role=Tech|pokemon=Hydreigon|pokemonnum=635}}
Custom Pokémon name
{{MastersIcon|trainer=Bugsy|synctype=Bug|role=Physical Strike|pokemon=Beedrill|displaypokemon=Mega Beedrill|pokemonnum=015M}} {{MastersIcon|trainer=Wally|synctype=Fighting|role=Physical Strike|pokemon=Gallade|displaypokemon=Mega Gallade|pokemonnum=475M}} {{MastersIcon|trainer=Diantha|alt=Special Costume|synctype=Fighting|role=Tech|pokemon=Keldeo (Resolute Form)|pokemonnum=647R}}
With notes
{{MastersIcon|trainer=Cynthia|synctype=Ground|role=Physical Strike|pokemon=Garchomp|displaypokemon=Mega Garchomp|pokemonnum=445M|notes=Slash is only on Mega}}
Trainer alt with notes
{{MastersIcon|trainer=Lisia|alt=New Year's 2023|filename=Lisia New Years 2023|synctype=Fairy|role=Physical Strike|pokemon=Galarian Rapidash|pokemonnum=0078G s|notes=Quick Attack}}
Arc suit
{{MastersIcon|trainer=Cynthia|arc=1|synctype=Ground|role=Multi|pokemon=Garchomp|pokemonnum=0445_f}}