Template:MastersTrainerIcon/Header: Difference between revisions
From Bulbapedia, the community-driven Pokémon encyclopedia.
Jump to navigationJump to search
m (Wowy moved page User:Boblers/MastersTrainerIcon/Header to Template:MastersTrainerIcon/Header without leaving a redirect) |
(splitting off documentation) Tag: Replaced |
||
Line 1: | Line 1: | ||
<includeonly><div style="display: grid; grid-template-columns: repeat(auto-fill, 220px); "></includeonly><noinclude> | <includeonly><div style="display: grid; grid-template-columns: repeat(auto-fill, 220px); "></includeonly><noinclude> | ||
{{Documentation|Template:MastersTrainerIcon/doc}} | |||
[[Category:Table templates]] | |||
{{ | |||
</noinclude> | </noinclude> |
Latest revision as of 06:56, 10 January 2024
Template documentation
|
---|
Note: portions of the template sample may not be visible without values provided. |
View or edit this documentation. (About template documentation) |
{{MastersTrainerIcon}}
generates an image and link, that represents a Trainer from Pokémon Masters EX. Clicking the Trainer icon or the text will go to the Trainer's Masters page, optionally at a section for a specific Pokémon.
This is intended to be used within tables where the Pokémon is not really important, such as on the theme skill article.
The cell containing the trainer icons must use {{MastersTrainerIcon/Header}}
before the set of icons, and {{MastersTrainerIcon/Footer}}
after the set of icons.
To display both the Trainer and the Pokémon in a flex block, use {{MastersIcon}}
instead.
Usage
{{MastersTrainerIcon/Header}} {{MastersTrainerIcon |trainer= |sygna= |alt= |pokemon= |filename= |size= }} {{MastersTrainerIcon/Footer}}
Template Fields
- trainer - The Trainer's name. Do not include any signifiers of an alt.
- 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.
- pokemon (optional) - The name of the Pokémon. Must match how the Pokémon's section is named on the Trainer's Masters article. (If this is left blank, there won't be a section link.)
- filename (optional) - The template will attempt to find the filename in the format "VSTrainer Alt Masters.png". If the correct file is not named like this, provide the correct name in this field, without "VS" and without " Masters.png". (If the trainer is not an alt, leave blank.)
- size (optional) - Desired size of the image. Defaults to 30px.
Additional notes
- Width - The table containing Template:MastersTrainerIcon items must have width:100%, or else the grid will not work.
- Header/Footer - The cell containing the trainer icons must use
{{MastersTrainerIcon/Header}}
before the set of icons, and{{MastersTrainerIcon/Footer}}
after the set of icons.
Examples
Non-Alt Trainers
{{MastersTrainerIcon|trainer=Blue}} {{MastersTrainerIcon|trainer=Agatha}}
Alt Trainers
{{MastersTrainerIcon|trainer=May|alt=Anniversary 2022|pokemon=Latias}} {{MastersTrainerIcon|trainer=Elesa|alt=Classic|pokemon=Emolga}}
Sygna Suit
{{MastersTrainerIcon|trainer=Diantha|sygna=1|pokemon=Diancie}} {{MastersTrainerIcon|trainer=May|sygna=1|pokemon=Blaziken}}
Special Sygna Suit
{{MastersTrainerIcon|trainer=Cynthia|sygna=1|alt=Renegade|pokemon=Giratina (Altered Forme)}} {{MastersTrainerIcon|trainer=Cynthia|sygna=1|alt=Aura|pokemon=Lucario}} {{MastersTrainerIcon|trainer=Red|sygna=1|alt=Thunderbolt|pokemon=Pikachu}}
Arc suit
{{MastersTrainerIcon|trainer=Cynthia|arc=1|pokemon=Garchomp}} {{MastersTrainerIcon|trainer=Lance|arc=1|pokemon=Dragonite}} {{MastersTrainerIcon|trainer=Steven|arc=1|pokemon=Metagross}}
Override file name
{{MastersTrainerIcon|trainer=Lt. Surge|filename=Lt Surge}} {{MastersTrainerIcon|trainer=Iris|alt=Alt.|filename=Iris Champion|pokemon=Hydreigon}}
In a table
{| class="roundy" style="margin:auto; background:#{{orange color}}; border:3px solid #{{gold color}}; width:100%;" |- style="background-color:#{{gold color light}}" ! style="{{roundytl|5px}}" width=150px | Theme Skill ! style="{{roundytr|5px}}" | Characters |-style="background:#fff" | [[File:Theme skill icon region.png|20px|link=]] Kanto | {{MastersTrainerIcon/Header}} {{MastersTrainerIcon|trainer=Brock}} {{MastersTrainerIcon|trainer=Brock|sygna=1|pokemon=Tyranitar}} {{MastersTrainerIcon|trainer=Misty}} {{MastersTrainerIcon|trainer=Misty|alt=Swimsuit|pokemon=Psyduck}} {{MastersTrainerIcon|trainer=Misty|sygna=1|pokemon=Vaporeon}} {{MastersTrainerIcon|trainer=Lt. Surge|filename=Lt Surge}} {{MastersTrainerIcon|trainer=Erika}} {{MastersTrainerIcon|trainer=Erika|alt=Holiday 2020|pokemon=Comfey}} {{MastersTrainerIcon|trainer=Erika|sygna=1|pokemon=Leafeon}} {{MastersTrainerIcon|trainer=Blaine}} {{MastersTrainerIcon|trainer=Lorelei}} {{MastersTrainerIcon|trainer=Bruno}} {{MastersTrainerIcon|trainer=Agatha}} {{MastersTrainerIcon|trainer=Janine}} {{MastersTrainerIcon|trainer=Koga}} {{MastersTrainerIcon|trainer=Blue}} {{MastersTrainerIcon|trainer=Blue|sygna=1|pokemon=Blastoise}}, {{MastersTrainerIcon|trainer=Blue|alt=Classic|pokemon=Aerodactyl}} {{MastersTrainerIcon|trainer=Giovanni}} {{MastersTrainerIcon|trainer=Giovanni|alt=Classic|pokemon=Persian}} {{MastersTrainerIcon|trainer=Leaf}} {{MastersTrainerIcon|trainer=Leaf|sygna=1|pokemon=Venusaur}} {{MastersTrainerIcon|trainer=Lance}} {{MastersTrainerIcon|trainer=Lance|alt=New Year's 2021|filename=Lance New Year 2021|pokemon=Gyarados}} {{MastersTrainerIcon|trainer=Professor Oak|filename=Oak}} {{MastersTrainerIcon|trainer=Red|sygna=1}} {{MastersTrainerIcon|trainer=Red|pokemon=Snorlax}} {{MastersTrainerIcon|trainer=Red|sygna=1|alt=Thunderbolt|pokemon=Pikachu}} {{MastersTrainerIcon|trainer=Sabrina}} {{MastersTrainerIcon|trainer=Sabrina|alt=New Year's 2022|filename=Sabrina New Year 2022|pokemon=Chingling}} {{MastersTrainerIcon|trainer=Jessie}} {{MastersTrainerIcon|trainer=James}} {{MastersTrainerIcon|trainer=Ash}} {{MastersTrainerIcon/Footer}} |}
Theme Skill | Characters |
---|---|
Kanto |
|