6,366
editsAd placeholder
Template:DropTable: Difference between revisions
Jump to navigation
Jump to search
Add skip_chance example
m (→A showcase of the DropTable templates: use icon version of gold) |
(Add skip_chance example) |
||
Line 9: | Line 9: | ||
This template starts a table. | This template starts a table. | ||
<pre>{{DropTableStart|caption=An optional caption to head the table.}}</pre> | <pre>{{DropTableStart|caption=An optional caption to head the table.|skip_chance=If non-empty will hide the Chance column.}}</pre> | ||
=== {{[[DropTableRow]]}} === | === {{[[DropTableRow]]}} === | ||
Line 22: | Line 22: | ||
|rarity=The weight of the item in the drop table, specified as a fraction. Write "Always" for guaranteed drops. | |rarity=The weight of the item in the drop table, specified as a fraction. Write "Always" for guaranteed drops. | ||
|note=(optional) A note to add on the item link. It will be inserted as-is, so use the <ref> tag. | |note=(optional) A note to add on the item link. It will be inserted as-is, so use the <ref> tag. | ||
|skip_chance=If non-empty will hide the Chance column. | |||
}}</pre> | }}</pre> | ||
Line 41: | Line 42: | ||
=== Miscellaneous Test Table === | === Miscellaneous Test Table === | ||
====Describe how many times you roll on this table.==== | |||
{{DropTableStart}} | {{DropTableStart}} | ||
{{DropTableRow|item=Potion of Healing|quantity=1;3;5|rarity=19/25}} | {{DropTableRow|item=Potion of Healing|quantity=1;3;5|rarity=19/25}} | ||
Line 48: | Line 49: | ||
{{DropTableEnd}} | {{DropTableEnd}} | ||
====Levelled tables can use [[Template:DropTableDivider]].==== | |||
{{DropTableStart}} | {{DropTableStart}} | ||
{{DropTableDivider|Level 1 - 3}} | {{DropTableDivider|Level 1 - 3}} | ||
Line 61: | Line 62: | ||
{{DropTableEnd}} | {{DropTableEnd}} | ||
====Items you always get should have a Rarity of Always.==== | |||
{{DropTableStart}} | {{DropTableStart}} | ||
{{DropTableRow|icon=Skull A Icon.webp|item=Skull|quantity=1|rarity=Always}} | {{DropTableRow|icon=Skull A Icon.webp|item=Skull|quantity=1|rarity=Always}} | ||
{{DropTableRow|icon=Skull B Icon.webp|item=Skull|quantity=1|rarity=Always}} | {{DropTableRow|icon=Skull B Icon.webp|item=Skull|quantity=1|rarity=Always}} | ||
{{DropTableEnd}} | |||
====No Chance column==== | |||
{{DropTableStart|skip_chance=true}} | |||
{{DropTableRow|item=Elixir of Necrotic Resistance|quantity=1|skip_chance=true}} | |||
{{DropTableDivider|If you are a spooky scary skeleton, shivering in the night:}} | |||
{{DropTableRow|item=Elixir of Necrotic Resistance|quantity=2|skip_chance=true}} | |||
{{DropTableEnd}} | {{DropTableEnd}} |