Difference between revisions of "Template:Drops table header"
Jump to navigation
Jump to search
Line 1: | Line 1: | ||
{| {{STDT|sortable item}} | {| {{STDT|sortable item}} | ||
|- | |- | ||
! {{#if:{{{width|}}}|style="width:{{#iferror:{{#expr:{{{width}}}}}|250|{{{width}}}}}px;" {{!}} | }} Name !! Type !! Rarity !! Quantity {{#ifeq:{{#vardefineecho:item_drop_show_levels|{{{show-levels|{{#iferror:{{#ifexpr:{{#show:{{PAGENAME}}|?Has NPC level}}>0}}|n | ! {{#if:{{{width|}}}|style="width:{{#iferror:{{#expr:{{{width}}}}}|250|{{{width}}}}}px;" {{!}} | }} Name !! Type !! Rarity !! Quantity {{#ifeq:{{#vardefineecho:item_drop_show_levels|{{{show-levels|{{#iferror:{{#ifexpr:{{#show:{{PAGENAME}}|?Has NPC level}}>0}}|y|n}} }}}}}|y|!! Creature level<!-- | ||
-->{{#vardefine:dropstablelevel|{{{levels|{{#show:{{PAGENAME}}|?Has NPC level}} }}} }}|}} | -->{{#vardefine:dropstablelevel|{{{levels|{{#show:{{PAGENAME}}|?Has NPC level}} }}} }}|}} | ||
|-<noinclude> | |-<noinclude> |
Revision as of 23:31, 23 February 2020
Name | Type | Rarity | Quantity | Creature level |
---|---|---|---|---|
Description
To be used in conjunction with {{Drops table row}}.
Parameters
- levels
- Optional. Defines the default level range that is used by entries. Defaults to Property:Has NPC level.
- show-levels
- Optional. Adds a column header for Creature level. Default is hidden if there is only one level for the creature.
- width
- Optional. Limits the Name column to the parameter value in pixels. Defaults to 250px if no number is given.