Ad placeholder

Template:DropTable: Difference between revisions

Jump to navigation Jump to search
Fix template names
(add categories)
(Fix template names)
Line 5: Line 5:
== Usage ==
== Usage ==


=== {{[[DropTableStart]]}} ===
=== {{[[Drop table start]]}} ===


This template starts a table.
This template starts a table.


<pre>{{DropTableStart|caption=An optional caption to head the table.|skip_chance=If non-empty will hide the Chance column.}}</pre>
<pre>{{Drop table start|caption=An optional caption to head the table.|skip_chance=If non-empty will hide the Chance column.}}</pre>


=== {{[[DropTableRow]]}} ===
=== {{[[Drop table row]]}} ===


The meat and potatoes of a drop table, each invocation of this template adds an item row to the drop table. If an icon or icon_override is specified, that icon is used. Otherwise, the icon is automatically fetched and included, if one exists.
The meat and potatoes of a drop table, each invocation of this template adds an item row to the drop table. If an icon or icon_override is specified, that icon is used. Otherwise, the icon is automatically fetched and included, if one exists.


<pre>{{DropTableRow
<pre>{{Drop table row
|item=The page name of the item. No square brackets required.
|item=The page name of the item. No square brackets required.
|quantity=How many of the item is dropped. It can be a range (e.g. 3 - 5) or a set of possibilities (1;3;5).
|quantity=How many of the item is dropped. It can be a range (e.g. 3 - 5) or a set of possibilities (1;3;5).
Line 29: Line 29:


Empty ready-to-copy template.
Empty ready-to-copy template.
<pre>{{DropTableRow|icon=|item=|quantity=|rarity=}}</pre>
<pre>{{Drop table row|icon=|item=|quantity=|rarity=}}</pre>


=== {{[[Template:DropTableLevel]]}} ===
=== {{[[Template:Drop table level]]}} ===
Denote a leveled section of a drop table. Lower and upper are optional.
Denote a leveled section of a drop table. Lower and upper are optional.


<pre>{{DropTableLevel|lower=|upper=}}</pre>
<pre>{{Drop table level|lower=|upper=}}</pre>


=== {{[[Template:DropTableDivider]]}} ===
=== {{[[Template:Drop table divider]]}} ===
Creates a whole-table row with text in it.
Creates a whole-table row with text in it.


<pre>{{DropTableDivider|}}</pre>
<pre>{{Drop table divider|}}</pre>


=== {{[[Template:DropTableGold]]}} ===
=== {{[[Template:Drop table gold]]}} ===
Creates a row that displays an amount or range of gold. The icon is automatically set to the lower number provided.
Creates a row that displays an amount or range of gold. The icon is automatically set to the lower number provided.


<pre>{{DropTableGold|lower=|upper=}}</pre>
<pre>{{Drop table gold|lower=|upper=}}</pre>


=== {{[[Template:TraderGoldRow]]}} ===
=== {{[[Template:Trader gold row]]}} ===
Creates a row that displays the amount of gold a trader of a given level and wealth would have.
Creates a row that displays the amount of gold a trader of a given level and wealth would have.


Line 56: Line 56:
<pre>{{Droptable nothing|chance=}}</pre>
<pre>{{Droptable nothing|chance=}}</pre>


=== {{[[DropTableEnd]]}} ===
=== {{[[Drop table end]]}} ===
No parameters. It ends the table.
No parameters. It ends the table.


Line 64: Line 64:
=== Miscellaneous Test Table ===
=== Miscellaneous Test Table ===
====Describe how many times you roll on this table.====
====Describe how many times you roll on this table.====
{{DropTableStart}}
{{Drop table start}}
{{DropTableRow|item=Potion of Healing|quantity=1;3;5|rarity=18/25}}
{{Drop table row|item=Potion of Healing|quantity=1;3;5|rarity=18/25}}
{{DropTableRow|item=Potion of Superior Healing|quantity=1|rarity=1/25}}
{{Drop table row|item=Potion of Superior Healing|quantity=1|rarity=1/25}}
{{DropTableRow|item=Potion of Superior Healing|quantity=2|rarity=1/25}}
{{Drop table row|item=Potion of Superior Healing|quantity=2|rarity=1/25}}
{{DropTableRow|item=Potion of Superior Healing|alias=Definitely Not a Healing Potion|quantity=2|rarity=1/25}}
{{Drop table row|item=Potion of Superior Healing|alias=Definitely Not a Healing Potion|quantity=2|rarity=1/25}}
{{Droptable nothing|chance=4/25}}
{{Droptable nothing|chance=4/25}}
{{DropTableEnd}}
{{Drop table end}}


====Levelled tables can use [[Template:DropTableLevel]].====
====Levelled tables can use [[Template:DropTableLevel]].====
{{DropTableStart}}
{{Drop table start}}
{{DropTableLevel|upper=3}}
{{DropTableLevel|upper=3}}
{{DropTableGold|lower=5|upper=93}}
{{Drop table gold|lower=5|upper=93}}
{{DropTableLevel|lower=4|upper=9}}
{{DropTableLevel|lower=4|upper=9}}
{{DropTableGold|lower=5|upper=93|rarity=1/2}}
{{Drop table gold|lower=5|upper=93|rarity=1/2}}
{{DropTableGold|lower=20|upper=159|rarity=1/2}}
{{Drop table gold|lower=20|upper=159|rarity=1/2}}
{{DropTableLevel|lower=10}}
{{DropTableLevel|lower=10}}
{{DropTableGold|lower=5|upper=93|rarity=1/3}}
{{Drop table gold|lower=5|upper=93|rarity=1/3}}
{{DropTableGold|lower=20|upper=159|rarity=1/3}}
{{Drop table gold|lower=20|upper=159|rarity=1/3}}
{{DropTableGold|lower=100|upper=250|rarity=1/3}}
{{Drop table gold|lower=100|upper=250|rarity=1/3}}
{{DropTableEnd}}
{{Drop table end}}


====Items you always get should have a Rarity of Always.====
====Items you always get should have a Rarity of Always.====
{{DropTableStart}}
{{Drop table start}}
{{DropTableRow|item=Padded Armour +1|quantity=1|rarity=Always}}
{{Drop table row|item=Padded Armour +1|quantity=1|rarity=Always}}
{{DropTableRow|item=Titanstring Bow|quantity=1|rarity=Always}}
{{Drop table row|item=Titanstring Bow|quantity=1|rarity=Always}}
{{DropTableEnd}}
{{Drop table end}}


====No Chance column====
====No Chance column====
{{DropTableStart|skip_chance=true}}
{{Drop table start|skip_chance=true}}
{{DropTableRow|item=Elixir of Necrotic Resistance|quantity=1|skip_chance=true}}
{{Drop table row|item=Elixir of Necrotic Resistance|quantity=1|skip_chance=true}}
{{DropTableDivider|If you are a spooky scary skeleton, shivering in the night:}}
{{Drop table divider|If you are a spooky scary skeleton, shivering in the night:}}
{{DropTableRow|item=Elixir of Necrotic Resistance|quantity=2|skip_chance=true}}
{{Drop table row|item=Elixir of Necrotic Resistance|quantity=2|skip_chance=true}}
{{DropTableEnd}}
{{Drop table end}}


(with only skip chance on table start)
(with only skip chance on table start)
{{DropTableStart|skip_chance=true}}
{{Drop table start|skip_chance=true}}
{{DropTableRow|item=Elixir of Necrotic Resistance|quantity=1}}
{{Drop table row|item=Elixir of Necrotic Resistance|quantity=1}}
{{DropTableDivider|If you are a spooky scary skeleton, shivering in the night:}}
{{Drop table divider|If you are a spooky scary skeleton, shivering in the night:}}
{{DropTableRow|item=Elixir of Necrotic Resistance|quantity=2}}
{{Drop table row|item=Elixir of Necrotic Resistance|quantity=2}}
{{DropTableEnd}}
{{Drop table end}}


<noinclude>[[Category:Templates]]</noinclude>[[Category:Drop table templates]]
<noinclude>[[Category:Templates]]</noinclude>[[Category:Drop table templates]]

Navigation menu