Template:ItemAvailability: Difference between revisions

From The Pokemon Insurgence Wiki
(Use IItem template, slightly alter padding (meant to be like Bulbapedia's equivalent, design can be altered again afterwards))
(Adding documentation)
Line 1: Line 1:
<noinclude>{|</noinclude>
<includeonly>
|- style="background:#FFFFFF; vertical-align:top; padding:4px;"
|- style="background:#FFFFFF; vertical-align:top; padding:4px;"
| style="background:#FFFFFF; white-space:nowrap; font-weight:normal;" align=left | [[File:{{{1|Potion}}}.png|24px|link=]] [[{{{1|{{IItem|Potion}}}}}|{{{display|{{{1|Potion}}}}}}]]
| style="background:#FFFFFF; white-space:nowrap; font-weight:normal;" align=left | [[File:{{{1|Potion}}}.png|24px|link=]] [[{{{1|{{IItem|Potion}}}}}|{{{display|{{{1|Potion}}}}}}]]
| {{{2|&mdash;}}}
| {{{2|&mdash;}}}
| {{{3|&mdash;}}}<noinclude>
| {{{3|&mdash;}}}</includeonly><noinclude>
|} [[Category:Table templates]]</noinclude>
The following is documentation for using the [[Template:ItemAvailability/head]], [[Template:ItemAvailability]], and [[Template:ItemAvailability/foot]] templates to display all methods for obtaining items throughout the game.<br><br>
[[Template:ItemAvailability/head]] is used to start the table. It has two parameters:
* 1: Color scheme corresponding to bag pocket color; can be Item, Medicine, Poké Ball, TMs and HMs, Berries, Mega Stones, Clothes, or Key Items
* width: percentage width of overall table, if this parameter is not specified, the table will autosize, if specified with no value, default value is 100%
<br>
[[Template:ItemAvailability]] is used to add entries to the table. It has four parameters:
* 1: Item name
* 2: List of finite methods for obtaining the item
* 3: List of repeatable methods for obtaining the item
* display: Used if display name is different from link/sprite file name
<br>
[[Template:ItemAvailability/foot]] is used to end the table. It has one parameter:
* 1: Color scheme corresponding to bag pocket color; should be the same as the value in ItemAvailability/head
<br>
Example usage:
{{ItemAvailability/head|Item}}
{{ItemAvailability|Potion|[[Telnor Town]]|[[Helios Department Store]]|display={{BLink|Potion}}}}
{{ItemAvailability/foot|Item}}
 
[[Category:Table templates]]
</noinclude>

Revision as of 05:27, 23 May 2021

The following is documentation for using the Template:ItemAvailability/head, Template:ItemAvailability, and Template:ItemAvailability/foot templates to display all methods for obtaining items throughout the game.

Template:ItemAvailability/head is used to start the table. It has two parameters:

  • 1: Color scheme corresponding to bag pocket color; can be Item, Medicine, Poké Ball, TMs and HMs, Berries, Mega Stones, Clothes, or Key Items
  • width: percentage width of overall table, if this parameter is not specified, the table will autosize, if specified with no value, default value is 100%


Template:ItemAvailability is used to add entries to the table. It has four parameters:

  • 1: Item name
  • 2: List of finite methods for obtaining the item
  • 3: List of repeatable methods for obtaining the item
  • display: Used if display name is different from link/sprite file name


Template:ItemAvailability/foot is used to end the table. It has one parameter:

  • 1: Color scheme corresponding to bag pocket color; should be the same as the value in ItemAvailability/head


Example usage:

style="background: #Template:Item color light; border-top-left-radius: 5px; -moz-border-radius-topleft: 5px; -webkit-border-top-left-radius: 5px; -khtml-border-top-left-radius: 5px; -icab-border-top-left-radius: 5px; -o-border-top-left-radius: 5px;" | Item style="background: #Template:Item color light;" width=50%;| Finite methods style="background: #Template:Item color light; border-top-right-radius: 5px; -moz-border-radius-topright: 5px; -webkit-border-top-right-radius: 5px; -khtml-border-top-right-radius: 5px; -icab-border-top-right-radius: 5px; -o-border-top-right-radius: 5px;" width=50%;| Repeatable methods
Potion.png [[Potion|Potion]] Telnor Town Helios Department Store
colspan="4" style="background: #Template:Item color light; border-bottom-left-radius: 5px; -moz-border-radius-bottomleft: 5px; -webkit-border-bottom-left-radius: 5px; -khtml-border-bottom-left-radius: 5px; -icab-border-bottom-left-radius: 5px; -o-border-bottom-left-radius: 5px; border-bottom-right-radius: 5px; -moz-border-radius-bottomright: 5px; -webkit-border-bottom-right-radius: 5px; -khtml-border-bottom-right-radius: 5px; -icab-border-bottom-right-radius: 5px; -o-border-bottom-right-radius: 5px;" |