Template talk:DungeonItem: Difference between revisions

m
I don't really care how you spell colour/color, but I'm just standardising/standardizing it on this page.
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 colour) and ''text'' (text colour)
First call the header, which uses two parameters: ''1'' (background color) and ''text'' (text color)
<pre>{{DungeonItem/h|<background color, uses colour templates>|text=<only if needed; put hex code for text color>}}</pre>
<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'' (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.)
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===