Template talk:DungeonItem: Difference between revisions
From Bulbapedia, the community-driven Pokémon encyclopedia.
Jump to navigationJump to search
mNo edit summary |
m (I don't really care how you spell colour/color, but I'm just standardising/standardizing it on this page.) |
||
Line 1: | Line 1: | ||
==How to use== | ==How to use== | ||
===Coding=== | ===Coding=== | ||
First call the header, which uses two parameters: ''1'' (background | First call the header, which uses two parameters: ''1'' (background color) and ''text'' (text color) | ||
<pre>{{DungeonItem/h|<background color, uses | <pre>{{DungeonItem/h|<background color, uses color templates>|text=<only if needed; put hex code for text color>}}</pre> | ||
For each entry there are five parameters: ''1'' ( | For each entry there are five parameters: ''1'' (item name), ''2'' (article location, optional: leave out if the same as 1), ''3'' (floors), ''4'' (bundle size, for stacks of items) and ''sprite'' (image location if not at MDBag <1> sprite.png, use "None" if no image.) | ||
<pre>If an item with image and own article: | <pre>If an item with image and own article: | ||
{{DungeonItem|<item name>|3=<floors; put like so: 1F-10F>}} | {{DungeonItem|<item name>|3=<floors; put like so: 1F-10F>}} | ||
Line 17: | Line 17: | ||
{{DungeonItem|<item name>|<main article>|<floors; put like so: 1F-10F>|sprite=None}}</pre> | {{DungeonItem|<item name>|<main article>|<floors; put like so: 1F-10F>|sprite=None}}</pre> | ||
At the end of the table, place the table closing code: | |||
<pre>|}</pre> | |||
===Example=== | ===Example=== |
Revision as of 21:31, 21 December 2012
How to use
Coding
First call the header, which uses two parameters: 1 (background color) and text (text color)
{{DungeonItem/h|<background color, uses color templates>|text=<only if needed; put hex code for text color>}}
For each entry there are five parameters: 1 (item name), 2 (article location, optional: leave out if the same as 1), 3 (floors), 4 (bundle size, for stacks of items) and sprite (image location if not at MDBag <1> sprite.png, use "None" if no image.)
If an item with image and own article: {{DungeonItem|<item name>|3=<floors; put like so: 1F-10F>}} If an item with no image but an article: {{DungeonItem|<item name>|sprite=None|3=<floors; put like so: 1F-10F>}} If an item with no individual article and no individual picture: {{DungeonItem|<item name>|<main article>|<floors; put like so: 1F-10F>|sprite=<image location>}} If an item with no individual article and no image: {{DungeonItem|<item name>|<main article>|<floors; put like so: 1F-10F>|sprite=None}}
At the end of the table, place the table closing code:
|}
Example
Bumpy Mountain
Item | Floors | |
---|---|---|
34-49 Poké | 1F-5F | |
Oran Berry | ??F | |
Aspear Berry | ??F | |
Chesto Berry | ??F | |
Escape Orb | ??F | |
Blast Seed | ??F | |
Shiny Box | ??F | |
Heavy Box | ??F |
Stone Cave
Item | Floors | |
---|---|---|
30-57 Poké | B1F-B5F | |
Oran Berry | ??F | |
Aspear Berry | ??F | |
Chesto Berry | ??F | |
File:MDBag Pecha Berry IV Sprite.png | Pecha Berry | ??F |
Escape Orb | ??F | |
Health Orb | ??F | |
Everyone's Strength Orb | ??F | |
Rollcall Orb | ??F | |
Shiny Box | ??F | |
Sinister Box | ??F | |
Zinc Band | ??F | |
Heal Seed | ??F | |
File:MDBag Health Drink Sprite.png | Max Elixir | ??F |