Template:DropsLine: Difference between revisions
Jump to navigation
Jump to search
Content added Content deleted
No edit summary |
(Don't error if {{{name}}} is empty or not given, which is done as a placeholder on new pages) |
||
Line 11: | Line 11: | ||
|#default = <td data-sort-value="65536" class="table-bg-grey"><span>Unknown</span></td> |
|#default = <td data-sort-value="65536" class="table-bg-grey"><span>Unknown</span></td> |
||
}} |
}} |
||
<td>{{#vardefine:value|{{#ifeq:{{{name}}}|Coins|1|{{#ask:[[{{{name}}}]]|?Value=|mainlabel=-}}}}}}{{#if:{{#var:value}}|{{#if:{{{quantity|}}}|{{#ifeq:{{#rpos:{{{quantity}}}|-}}|-1|{{Currency| |
<td>{{#vardefine:value|{{#ifeq:{{{name}}}|Coins|1|{{#ask:[[{{#if:{{{name|}}}|{{{name}}}|Project:No page}}]]|?Value=|mainlabel=-}}}}}}{{#if:{{#var:value}}|{{#if:{{{quantity|}}}|{{#ifeq:{{#rpos:{{{quantity}}}|-}}|-1|{{Currency|{{#var:value}}*{{{quantity}}}}}|{{Currency|{{#var:value}}*{{#explode:{{{quantity}}}|-|0}}}} – {{Currency|{{#var:value}}*{{#explode:{{{quantity}}}|-|1}}}}}}|{{Currency|{{#var:value}}}}}}|Unknown}}</td> |
||
</tr>{{#subobject:DROP_{{{name}}}_{{#if:{{{rarity|}}}|{{{rarity}}}|Unknown}}|Dropped from={{FULLPAGENAME}}|Dropped item={{{name}}}|Dropped quantity={{#if:{{{quantity|}}}|{{{quantity}}}|Unknown}}|Rarity={{#if:{{{frequency|}}}|{{{frequency}}}|Unknown}}}}</includeonly><noinclude>{{/doc}}</noinclude> |
</tr>{{#subobject:DROP_{{{name}}}_{{#if:{{{rarity|}}}|{{{rarity}}}|Unknown}}|Dropped from={{FULLPAGENAME}}|Dropped item={{{name}}}|Dropped quantity={{#if:{{{quantity|}}}|{{{quantity}}}|Unknown}}|Rarity={{#if:{{{frequency|}}}|{{{frequency}}}|Unknown}}}}</includeonly><noinclude>{{/doc}}</noinclude> |