Template:ShopLine: Difference between revisions
Jump to navigation
Jump to search
Content added Content deleted
No edit summary |
(add support for a "quantity" parameter on each line, must be enabled by setting quantity=true in the ShopTableHead) |
||
Line 22: | Line 22: | ||
|=<td style="text-align:right;" data-sort-value="">{{Unknown}}</td> |
|=<td style="text-align:right;" data-sort-value="">{{Unknown}}</td> |
||
|#default=<td style="text-align:right;">{{Profession|{{#var:profession c}}|{{{level c}}}}}</td>}}|}}<!-- |
|#default=<td style="text-align:right;">{{Profession|{{#var:profession c}}|{{{level c}}}}}</td>}}|}}<!-- |
||
-->{{#if:{{#var:quantity}}|{{#switch:{{{quantity|}}} |
|||
|N/A=<td class="table-na" style="text-align:right;" data-sort-value="">N/A</td> |
|||
|=<td style="text-align:right;" data-sort-value="">{{Unknown}}</td> |
|||
|#default=<td style="text-align:right;">{{{quantity}}}</td>}}|}}<!-- |
|||
--></tr>{{#subobject:{{{name}}}_{{#if:{{{sell|}}}|{{{sell}}}|Unknown}}_{{#if:{{{buy|}}}|{{{buy}}}|Unknown}}|Sold by={{FULLPAGENAME}}|Sold item={{{name}}}|Shop buy price={{#if:{{{buy|}}}|{{{buy}}}|}}|Shop sell price={{#if:{{{sell|}}}|{{{sell}}}|}}}}</includeonly><noinclude>{{/doc}}</noinclude> |
--></tr>{{#subobject:{{{name}}}_{{#if:{{{sell|}}}|{{{sell}}}|Unknown}}_{{#if:{{{buy|}}}|{{{buy}}}|Unknown}}|Sold by={{FULLPAGENAME}}|Sold item={{{name}}}|Shop buy price={{#if:{{{buy|}}}|{{{buy}}}|}}|Shop sell price={{#if:{{{sell|}}}|{{{sell}}}|}}}}</includeonly><noinclude>{{/doc}}</noinclude> |