Template:Row/Meds: Difference between revisions
Jump to navigation
Jump to search
(removed old switch, moved it to a special function. (to reduce copying of code).) |
(added code for trader price.) |
||
Line 6: | Line 6: | ||
--><td style="border: 1px solid #aaa; padding: 0.2em 0.5em; | --><td style="border: 1px solid #aaa; padding: 0.2em 0.5em; | ||
{{#ifeq: {{{PRC|{{{2|}}}}}} | 0|color:lightgray}}"> <nowiki>$</nowiki> {{formatnum:{{#expr:{{{PRC|{{{2|}}}}}} * 0.01 }} }} | {{#ifeq: {{{PRC|{{{2|}}}}}} | 0|color:lightgray}}"> <nowiki>$</nowiki> {{formatnum:{{#expr:{{{PRC|{{{2|}}}}}} * 0.01 }} }}<!-- | ||
The next line prints the 'price_postapoc' price if set. Which is used for trading. | |||
-->{{#if:{{{trade_price|}}}| (<nowiki>$</nowiki> {{formatnum:{{#expr:{{{trade_price}}} * 0.01 }} }}) }}</td><!-- | |||
--><td style="border: 1px solid #aaa; border-right-color: #333; padding: 0.2em 0.5em; text-align:left; font-size: 0.9em; line-height:100%"> {{lc:{{{MATERIAL|{{{5|}}}}}}}} </td><!-- | --><td style="border: 1px solid #aaa; border-right-color: #333; padding: 0.2em 0.5em; text-align:left; font-size: 0.9em; line-height:100%"> {{lc:{{{MATERIAL|{{{5|}}}}}}}} </td><!-- |