Template:Bag2/doc: Difference between revisions
From Bulbapedia, the community-driven Pokémon encyclopedia.
Jump to navigationJump to search
(Created page with "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 <code>Bag (field 1) Sprite.png</code> and link to the page named <code>(field 1)</code>. * '''field 2''' (link display text) - Custom text to be displayed for the link. * '''size''' - Sets a custom size for the sprite. ==Examples== ===Standard use=== <pre> {{Bag2|DNA Splicers}} </pre> {{Bag2...") |
(→Template fields: default size) |
||
Line 4: | Line 4: | ||
* '''field 1''' (item name) - The name of the item. This will be used to display the file named <code>Bag (field 1) Sprite.png</code> and link to the page named <code>(field 1)</code>. | * '''field 1''' (item name) - The name of the item. This will be used to display the file named <code>Bag (field 1) Sprite.png</code> and link to the page named <code>(field 1)</code>. | ||
* '''field 2''' (link display text) - Custom text to be displayed for the link. | * '''field 2''' (link display text) - Custom text to be displayed for the link. | ||
* '''size''' - Sets a custom size for the sprite. | * '''size''' (optional) - Sets a custom size for the sprite. The size defaults to 24px. | ||
==Examples== | ==Examples== |
Latest revision as of 20:43, 19 April 2024
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}}