Template:ULCard: Difference between revisions
From Bulbapedia, the community-driven Pokémon encyclopedia.
Jump to navigationJump to search
(remove some unnecessary code) |
(update to role colors taken from website, lightened and darkened for background) |
||
Line 3: | Line 3: | ||
</noinclude><div style="flex: 1;"> | </noinclude><div style="flex: 1;"> | ||
<div class="roundy" style="padding: 5px; border: | <div class="roundy" style="padding: 5px; border: 3px solid {{#switch: {{{2|Attacker}}}|All-Rounder=#863E89; background: #DF97E2|Attacker=#9D4624; background: #F69F7E|Defender=#709A3B; background: #C9F394|Speedster=#1B6B94; background: #74C5ED|Supporter=#8F5F29; background: #E8B882|}}; flex-basis: 100px; min-width: 75px; height: 130px;">[[File:UNITE {{{fname|{{{1|Venusaur}}}}}} License Card.png|x130px|{{{1|Venusaur}}} ({{{2|Attacker}}})|link={{{link|{{{1|Venusaur}}} (UNITE)}}}]]</div> | ||
<div class="blacklinks">[[{{{link|{{{1|Venusaur}}} (UNITE)}}}|{{{1|Venusaur}}}]] {{#if:{{{ex|}}}|[[File:UNITE EX License Logo.png|x15px]]}}</div> | <div class="blacklinks">[[{{{link|{{{1|Venusaur}}} (UNITE)}}}|{{{1|Venusaur}}}]] {{#if:{{{ex|}}}|[[File:UNITE EX License Logo.png|x15px]]}}</div> | ||
</div><noinclude> | </div><noinclude> |
Revision as of 22:53, 12 June 2024
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 -->