Template:ULCard: Difference between revisions

From Bulbapedia, the community-driven Pokémon encyclopedia.
Jump to navigationJump to search
(add caption and link for the image and a field for EX license)
(remove some unnecessary code)
Line 1: Line 1:
<noinclude>
<noinclude>
<div class="blacklinks" style="margin:auto; display: flex; flex-wrap: wrap; align-items: flex-start; padding: 3px; {{roundy|20px}}; border: 2px solid #{{black color}}; background: #{{white color}}; text-align:center; font-size: 80%; gap: 2px;"><!-- OPEN list container -->
<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 -->


</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|{{{1|Venusaur}}} ({{{2|Attacker}}})|link={{{link|{{{1|Venusaur}}} (UNITE)}}}]]</div>
<div class="roundy" style="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;">[[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}}}]] {{#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 06:38, 31 March 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 as Mewtwo (X)
  • 2: the role of the Pokémon (All-Rounder, Attacker, Defender, Speedster, or Supporter), 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 as Mewtwo (Unite License X)

ULCard creates list items for Pokémon UNITE licenses

Template parameters

This template prefers inline formatting of parameters.

ParameterDescriptionTypeStatus
Pokémon Name1

The Pokémon's name or the text that should be used for the Pokémon's link

Linerequired
Role2

The role of the Pokémon, to color the background

Suggested values
All-Rounder Attacker Defender Speedster Supporter
Linerequired
Filenamefname

The name of the Pokémon in its filename, if it differs from the Pokémon's basic name

Linesuggested
Page linklink

A custom link to the Pokémon's page if it is not <name> (Unite)

Page namesuggested
EXex

set to yes or 1 or any non-empty string if the Pokémon's license is an EX license.

Suggested values
yes 1 true
Linesuggested

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 -->