Template:Pokeli: Difference between revisions
From Bulbapedia, the community-driven Pokémon encyclopedia.
Jump to navigationJump to search
No edit summary |
Oneofthosedf (talk | contribs) No edit summary |
||
Line 1: | Line 1: | ||
<div style="display: grid; grid-template-columns: 80px auto; align-items: center; background-color: rgba(255, 255, 255, 0.35); border: 1px solid black; border-radius: 5px;"> | <div style="display: grid; grid-template-columns: 80px auto; align-items: center; background-color: rgba(255, 255, 255, 0.35); padding: 1px; border: 1px solid black; border-radius: 5px;"> | ||
<div>{{{{{msp|ArtP}}}|{{{1|0001}}}|{{{2|Bulbasaur}}}|form={{{3|}}}|size={{{size|70px}}}}}</div> | <div>{{{{{msp|ArtP}}}|{{{1|0001}}}|{{{2|Bulbasaur}}}|form={{{3|}}}|size={{{size|70px}}}}}</div> | ||
<div><div>{{pcolor|{{{2|Bulbasaur}}}|000}}{{{note|}}}</div><div style="font-size: smaller;">{{{4|}}}</div></div> | <div><div>{{pcolor|{{{2|Bulbasaur}}}|000}}{{{note|}}}</div><div style="font-size: smaller;">{{{4|}}}</div></div> |
Latest revision as of 20:43, 24 April 2024
Template documentation
|
---|
Note: portions of the template sample may not be visible without values provided. |
View or edit this documentation. (About template documentation) |
This template creates a Pokémon list item: a simple representation of a Pokémon, showing only its image and name. It is fundamentally intended for a generic (responsive) list, such as {{ResponsiveList/h}}
(but there's nothing preventing it from being used in other contexts).
Parameters
- Unnamed
- 1: the Pokémon's National Pokédex number (e.g.,
0006
) - 2: the Pokémon's name (e.g.,
Charizard
) - 3 (optional): for a Pokémon form: the form designator that appears after the Pokémon's name in the filename (e.g.,
-Mega X
for a:File:0006Charizard-Mega X.png) - 4 (optional): for a Pokémon form: the name of the form (e.g.,
Mega Charizard X
)
- Named
- msp (optional): the sprite template to use to display the Pokémon's image (defaults to
ArtP
); primarily meant to allow you to display a form that ArtP cannot- Refer to Template:MSP#Subtemplates for possible options, but
MSP/HOME
is probably one of the best options
- Refer to Template:MSP#Subtemplates for possible options, but
- note (optional): adds text next to the Pokémon's name. Can be used in conjunction with templates such as
Sup/4
or<ref>
notations. - size (optional): the size of the sprite (defaults to
70px
). The default matches ArtP's default, but other MSP sprites may not naturally be that large, so depending on the case, you may want to set it explicitly to a smaller size.- Note: increasing size beyond 80px could result in undesired behavior at certain window sizes
Examples
This example shows how to use most of the template's parameters in different cases.
{{ResponsiveList/h|fire}} {{Pokeli|0004|Charmander}} {{Pokeli|0006|Charizard|-Mega X|Mega Charizard X}} {{Pokeli|0801|Magearna|O|Original Color|msp=MSP/HOME}} {{ResponsiveList/f}}