Difference between revisions of "Template:Drops table header"
Jump to navigation
Jump to search
(creation) |
m |
||
Line 2: | Line 2: | ||
|- | |- | ||
! {{#if:{{{width|}}}|style="width:{{#iferror:{{#expr:{{{width}}}}}|250|{{{width}}}}}px;" {{!}} | }} Name !! Type !! Rarity !! Quantity {{#ifeq:{{{show-levels|{{#iferror:{{#ifexpr:{{#show:{{PAGENAME}}|?Has NPC level}}>0}}|y|n}} }}}|y|!! Creature level<!-- | ! {{#if:{{{width|}}}|style="width:{{#iferror:{{#expr:{{{width}}}}}|250|{{{width}}}}}px;" {{!}} | }} Name !! Type !! Rarity !! Quantity {{#ifeq:{{{show-levels|{{#iferror:{{#ifexpr:{{#show:{{PAGENAME}}|?Has NPC level}}>0}}|y|n}} }}}|y|!! Creature level<!-- | ||
-->{{#vardefine:dropstablelevel|{{{levels|{{#show:{{PAGENAME}}|?Has NPC level}} }}} }}|}}</includeonly><noinclude> | -->{{#vardefine:dropstablelevel|{{{levels|{{#show:{{PAGENAME}}|?Has NPC level}} }}} }}|}} | ||
|-</includeonly><noinclude> | |||
== Description == | == Description == | ||
To be used in conjunction with {{tl|Drops table row}}. | To be used in conjunction with {{tl|Drops table row}}. |
Revision as of 16:16, 18 October 2018
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.