Template:DropsLine: Difference between revisions

Don't error if {{{name}}} is empty or not given, which is done as a placeholder on new pages
No edit summary
(Don't error if {{{name}}} is empty or not given, which is done as a placeholder on new pages)
 
(20 intermediate revisions by 5 users not shown)
Line 3:
<td>{{#if:{{{displayname|}}}|[[{{{name}}}|{{{displayname}}}]]|[[{{{name}}}]]}}</td>
<td>{{#if:{{{quantity|}}}|{{{quantity}}}|Unknown}}</td>
{{#switch:{{lc:{{{rarityfrequency|}}}}}
|always = <td data-sort-value="1" class="table-bg-blue"><span>Always</span></td>
|common = <td data-sort-value="16" class="table-bg-green"><span>Common</span></td>
Line 11:
|#default = <td data-sort-value="65536" class="table-bg-grey"><span>Unknown</span></td>
}}
<td>{{#ifvardefine:value|{{#vardefineifeq:quantity|{{Currency{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:{{{rarityfrequency|}}}|{{{rarityfrequency}}}|Unknown}}}}</includeonly><noinclude>{{/doc}}</noinclude>
121

edits