Template:Bag2: Difference between revisions
From Bulbapedia, the community-driven Pokémon encyclopedia.
Jump to navigationJump to search
m (Protected "Template:Bag2": Link template ([edit=sysop] (indefinite) [move=sysop] (indefinite))) |
(add optional size field, and documentation) |
||
(2 intermediate revisions by one other user not shown) | |||
Line 1: | Line 1: | ||
[[File:Bag {{{1}}} Sprite.png|{{{1}}}]] [[{{{1}}}|{{{2|{{{1}}}}}}]]<noinclude>[[Category:Link templates]]</noinclude> | <includeonly>[[File:Bag {{{1}}} Sprite.png|{{{size|24px}}}|{{{1}}}]] [[{{{1}}}|{{{2|{{{1}}}}}}]]</includeonly><noinclude>{{documentation}} | ||
[[Category:Link templates]]</noinclude> |
Latest revision as of 20:43, 19 April 2024
Template documentation
View or edit this documentation. (About template documentation)
Note: portions of the template sample may not be visible without values provided.
This template generates a bag sprite and page link for an item.
Template fields
- field 1 (item name) - The name of the item. This will be used to display the file named
Bag (field 1) Sprite.png
and link to the page named(field 1)
. - field 2 (link display text) - Custom text to be displayed for the link.
- size (optional) - Sets a custom size for the sprite. The size defaults to 24px.
Examples
Standard use
{{Bag2|DNA Splicers}}
Custom link text
{{Bag2|Stick|Leek}}
Custom size
{{Bag2|Booster Energy|size=32px}}