Template:ULCard: Difference between revisions
From Bulbapedia, the community-driven Pokémon encyclopedia.
Jump to navigationJump to search
Tiddlywinks (talk | contribs) m (Tiddlywinks moved page User:Tiddlywinks/ULCard to Template:ULCard without leaving a redirect: mainspace) |
(add caption and link for the image and a field for EX license) |
||
Line 3: | Line 3: | ||
</noinclude><div style="flex: 1;"> | </noinclude><div style="flex: 1;"> | ||
<div style="{{roundy|10px}}; padding: 5px; border: 2px solid {{#switch: {{{2|Attacker}}}|All-Rounder=#501E55; background: #DF97E2|Attacker=#B72B12; background: #F69F7E|Defender=#458918; background: #C9F394|Speedster=#0C529E; background: #74C5ED|Supporter=#D04C02; background: #FEDE8E|}}; flex-basis: 100px; min-width: 75px; height: 130px; display: flex; align-items: center; justify-content: center">[[File:UNITE {{{fname|{{{1|Venusaur}}}}}} License Card.png|x130px]]</div> | <div style="{{roundy|10px}}; padding: 5px; border: 2px solid {{#switch: {{{2|Attacker}}}|All-Rounder=#501E55; background: #DF97E2|Attacker=#B72B12; background: #F69F7E|Defender=#458918; background: #C9F394|Speedster=#0C529E; background: #74C5ED|Supporter=#D04C02; background: #FEDE8E|}}; flex-basis: 100px; min-width: 75px; height: 130px; display: flex; align-items: center; justify-content: center">[[File:UNITE {{{fname|{{{1|Venusaur}}}}}} License Card.png|x130px|{{{1|Venusaur}}} ({{{2|Attacker}}})|link={{{link|{{{1|Venusaur}}} (UNITE)}}}]]</div> | ||
<div>[[{{{link|{{{1|Venusaur}}} (UNITE)}}}|{{{1|Venusaur}}}]]</div> | <div>[[{{{link|{{{1|Venusaur}}} (UNITE)}}}|{{{1|Venusaur}}}]] {{#if:{{{ex|}}}|[[File:UNITE EX License Logo.png|x15px]]}}</div> | ||
</div><noinclude> | </div><noinclude> | ||
</div><!-- CLOSE list container --> | </div><!-- CLOSE list container --> | ||
{{documentation}} | {{documentation}} |
Revision as of 19:07, 22 December 2023
Template documentation
|
---|
Note: portions of the template sample may not be visible without values provided. |
View or edit this documentation. (About template documentation) |
The template {{ULCard}}
creates list items for the condensed list of Pokémon at Pokémon UNITE#Pokémon.
Parameters
- Unnamed
- 1: the Pokémon's name (such as
Venusaur
), or the text that should be used for the Pokémon's link (such asMewtwo (X)
- 2: the role of the Pokémon (
All-Rounder
,Attacker
,Defender
,Speedster
, orSupporter
), to color the background
- Named
- fname (optional): the name of the Pokémon in its filename, if it differs from the Pokémon's basic name
- link (optional): a custom link to the Pokémon's page if it is not
<name> (Unite)
, such asMewtwo (Unite License X)
ULCard creates list items for Pokémon UNITE licenses
Parameter | Description | Type | Status | |
---|---|---|---|---|
Pokémon Name | 1 | The Pokémon's name or the text that should be used for the Pokémon's link | Line | required |
Role | 2 | The role of the Pokémon, to color the background
| Line | required |
Filename | fname | The name of the Pokémon in its filename, if it differs from the Pokémon's basic name | Line | suggested |
Page link | link | A custom link to the Pokémon's page if it is not <name> (Unite) | Page name | suggested |
EX | ex | set to yes or 1 or any non-empty string if the Pokémon's license is an EX license.
| Line | suggested |
Examples
A basic Pokémon (Venusaur), an EX Pokémon (Zacian), and the three current non-standard Pokémon: Mr. Mime, Mewtwo (X), and Mewtwo (Y).
<div class="roundy" style="margin:auto; display: flex; flex-flow: row wrap; align-items: flex-start; padding: 3px; border: 2px solid #{{black color}}; background: #{{white color}}; text-align:center; font-size: 80%; gap: 2px;"><!-- OPEN list container --> {{ULCard|Venusaur|Attacker}} {{ULCard|Mr. Mime|Supporter|fname=Mr Mime}} {{ULCard|Mewtwo (X)|All-Rounder|fname=Mega Mewtwo X|link=Mewtwo (Unite License X)|ex=1}} {{ULCard|Mewtwo (Y)|Attacker|fname=Mega Mewtwo Y|link=Mewtwo (Unite License Y)|ex=1}} {{ULCard|Zacian|All-Rounder|ex=yes}} </div><!-- CLOSE list container -->