Template:ShopLine: Difference between revisions

183 bytes added ,  Wednesday at 21:54
Currency -> Currency cell
mNo edit summary
(Currency -> Currency cell)
Line 1:
{{ShopTableHead}}<onlyinclude><tr><!--
<includeonly><tr>
--><td>{{#if:{{{image|}}}|[[File:{{{image}}}|30px|link={{{name}}}]]|[[File:{{{name}}}.png|30px]]}}</td><!--
--><td>{{#if:{{{displayname|}}}|[[{{{name}}}|{{{displayname}}}]]|[[{{{name}}}]]}}</td><!--
-->{{#switch:{{{buy|}}}
<td {{#ifeq:{{{buy|}}}|N/A|class="table-na" style="text-align:center"}}>{{#if:{{{buy|}}}|{{#ifeq:{{{buy|}}}|N/A|N/A|{{Currency|{{{buy}}}}}}}|{{Unknown}}}}</td>
|N/A=<td colspan="10" class="table-na" data-sort-value="">N/A</td>
<td {{#ifeq:{{{sell|}}}|N/A|class="table-na" style="text-align:center"}}>{{#if:{{{sell|}}}|{{#ifeq:{{{sell|}}}|N/A|N/A|{{Currency|{{{sell}}}}}}}|{{Unknown}}}}</td>
|=<td colspan="10" data-sort-value="">{{Unknown}}</td>
{{#varexists:profession|<td>{{#if:{{{level|}}}|{{Profession|{{#var:profession}}|{{{level}}}|1}}|{{Unknown}}}}</td>|}}
|{{Currency cell|{{{buy}}}|html=yes}}}}<!--
</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>
-->{{#switch:{{{sell|}}}
|N/A=<td colspan="10" class="table-na" data-sort-value="">N/A</td>
|=<td colspan="10" data-sort-value="">{{Unknown}}</td>
|{{Currency cell|{{{sell}}}|html=yes}}}}<!--
-->{{#varexists:profession|<td>{{#if:{{{level|}}}|{{Profession|{{#var:profession}}|{{{level}}}|1}}|{{Unknown}}}}</td>|}}<!--
--></tr><includeonly>{{#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></onlyinclude><noinclude>{{ShopTableBottom}}{{/doc}}</noinclude>
165

edits