Template:MastersIcon/Table: Difference between revisions
From Bulbapedia, the community-driven Pokémon encyclopedia.
Jump to navigationJump to search
Storm Aurora (talk | contribs) (auto add pokemon number if it hasn't been specified) |
(arc suit support) |
||
Line 1: | Line 1: | ||
<includeonly><div style="text-align: center;">[[File:VS{{{filename|{{{trainer|Sycamore}}} {{#if:{{{sygna|}}}|Sygna}} {{{alt|}}}}}} {{#if:{{{ex|}}}|EX}} Masters.png|{{{size|32px}}}|link=]][[File:MastersIcon{{{pokemonnum|{{N2Num|{{{pokemon|Bulbasaur}}}}}}}}.png|{{{size|32px}}}|link=]]<br>[[{{{trainer|Professor Sycamore}}} (Masters)#{{{pokemon|Bulbasaur}}}|{{{displaytrainer|{{#if:{{{sygna|}}}|Sygna Suit<nowiki> </nowiki>}}{{{trainer|}}} {{#if:{{{alt|}}}|({{{alt}}})}}}}} & {{{displaypokemon|{{{pokemon|}}}}}}]]</div></includeonly><noinclude> | <includeonly><div style="text-align: center;">[[File:VS{{{filename|{{{trainer|Sycamore}}} {{#if:{{{sygna|}}}|Sygna}}{{#if:{{{arc|}}}|Arc}} {{{alt|}}}}}} {{#if:{{{ex|}}}|EX}} Masters.png|{{{size|32px}}}|link=]][[File:MastersIcon{{{pokemonnum|{{N2Num|{{{pokemon|Bulbasaur}}}}}}}}.png|{{{size|32px}}}|link=]]<br>[[{{{trainer|Professor Sycamore}}} (Masters)#{{{pokemon|Bulbasaur}}} {{#if:{{{arc|}}}|(Arc Suit)}}|{{{displaytrainer|{{#if:{{{sygna|}}}|Sygna Suit<nowiki> </nowiki>}}{{#if:{{{arc|}}}|Arc Suit<nowiki> </nowiki>}}{{{trainer|}}} {{#if:{{{alt|}}}|({{{alt}}})}}}}} & {{{displaypokemon|{{{pokemon|}}}}}}]]</div></includeonly><noinclude> | ||
{{documentation}} | {{documentation}} | ||
[[Category:Link templates]] | [[Category:Link templates]] | ||
</noinclude> | </noinclude> |
Latest revision as of 02:16, 27 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/Table}}
is similar to {{MastersIcon}}
, but instead generates icons + links for use in a table, such as on Sync grid, 6★ EX, or Expedition skill.
- For non-Egg pairs involving Scottie and Bettie, as well as the 3 first partner Pokémon given by Professor Bellis, use
{{MastersIcon/Table/SB}}
instead.
Usage
{{MastersIcon/Table |trainer= |displaytrainer= |sygna= |alt= |ex= |filename= |pokemon= |displaypokemon= |pokemonnum= |size= }}
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.
- 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 - Pokédex number of the Pokémon, to find its image file. If its file indicates a form, state that - for example 719_s for Shiny Diancie
Pair
- size (optional) - Desired size of the images. Defaults to 32px.
Examples
Non-alt trainer
{| class="roundy sortable" style="margin:auto; background:#{{orange color}}; border:3px solid #{{gold color}}; ! style="background-color:#{{gold color light}}; {{roundytl|5px}}"| Sync pair ! style="background-color:#{{gold color light}}; {{roundytr|5px}}"| misc data 1 |- style="background:#fff" | {{MastersIcon/Table|trainer=Piers|pokemon=Obstagoon|pokemonnum=0862}} | data etc |}
Sync pair | misc data 1 |
---|---|
data etc |
Custom trainer name
{| class="roundy sortable" style="margin:auto; background:#{{orange color}}; border:3px solid #{{gold color}}; ! style="background-color:#{{gold color light}}; {{roundytl|5px}}"| Sync pair ! style="background-color:#{{gold color light}}; {{roundytr|5px}}"| misc data 1 |- style="background:#fff" | {{MastersIcon/Table|trainer=Masked Royal|displaytrainer=The Masked Royal|pokemon=Incineroar|pokemonnum=0727}} |- style="background:#fff" | {{MastersIcon/Table|trainer=Sycamore|displaytrainer=Professor Sycamore|pokemon=Xerneas|pokemonnum=0716}} |- style="background:#fff" | {{MastersIcon/Table|trainer=Oak|displaytrainer=Professor Oak|pokemon=Mew (Pre-Sync Move → Post-Sync Move)|displaypokemon=Mew|pokemonnum=0151}} |}
Sync pair | misc data 1 |
---|---|
data etc | |
data etc | |
data etc |
Alt trainer with a custom Pokémon name
{| class="roundy sortable" style="margin:auto; background:#{{orange color}}; border:3px solid #{{gold color}}; ! style="background-color:#{{gold color light}}; {{roundytl|5px}}"| Sync pair ! style="background-color:#{{gold color light}}; {{roundytr|5px}}"| misc data 1 |- style="background:#fff" | {{MastersIcon/Table|trainer=Diantha|alt=Special Costume|pokemon=Keldeo (Resolute Form)|displaypokemon=Keldeo|pokemonnum=0647R}} | data etc |}
Sync pair | misc data 1 |
---|---|
data etc |
Pairs in different cells
{| class="roundy sortable" style="margin:auto; background:#{{orange color}}; border:3px solid #{{gold color}}; ! style="background-color:#{{gold color light}}; {{roundytl|5px}}"| Sync pair ! style="background-color:#{{gold color light}}; {{roundytr|5px}}"| misc data 1 |- style="background:#fff" |{{MastersIcon/Table|trainer=Diantha|alt=Special Costume|pokemon=Keldeo (Resolute Form)|displaypokemon=Keldeo|pokemonnum=0647R}} | Diantha data etc |- style="background:#fff" | {{MastersIcon/Table|trainer=May|pokemon=Mudkip → Marshtomp → Swampert|pokemonnum=0260}} | May data etc |}
Sync pair | misc data 1 |
---|---|
Diantha data etc | |
May data etc |
Arc suit
{| class="roundy sortable" style="margin:auto; background:#{{orange color}}; border:3px solid #{{gold color}}; ! style="background-color:#{{gold color light}}; {{roundytl|5px}}"| Sync pair ! style="background-color:#{{gold color light}}; {{roundytr|5px}}"| misc data 1 |- style="background:#fff" |{{MastersIcon/Table|trainer=Cynthia|arc=1|pokemon=Garchomp|pokemonnum=0445_f}} |}
Sync pair | misc data 1 |
---|---|
data etc |