Template:Row/Meds: Difference between revisions

From The Cataclysm: Dark Days Ahead Wiki
Jump to navigation Jump to search
(Removed rarity, moved up all arguments one place.)
(added code for trader price.)
 
(4 intermediate revisions by the same user not shown)
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}}"> {{{PRC|{{{2|}}}}}} </td><!--
{{#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|}}}| &nbsp; (<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><!--
Line 22: Line 24:
{{#ifexpr: {{{FUN|{{{10|}}}}}} > 0 |darkgreen|{{#ifexpr: {{{FUN|{{{10|}}}}}} < 0 |darkred|lightgray}}}}"> {{{FUN|{{{10|}}}}}} </td><!--
{{#ifexpr: {{{FUN|{{{10|}}}}}} > 0 |darkgreen|{{#ifexpr: {{{FUN|{{{10|}}}}}} < 0 |darkred|lightgray}}}}"> {{{FUN|{{{10|}}}}}} </td><!--


--><td style="border: 1px solid #aaa; padding: 0.2em 0.5em; text-align:left; font-size: 0.9em; line-height:100%"> {{#switch:{{{use_func|{{{11|}}}}}}
--><td style="border: 1px solid #aaa; padding: 0.2em 0.5em; text-align:left; font-size: 0.9em; line-height:100%"> {{Usefunctiontotext|{{{use_func|{{{11|}}}}}}}}</td>
  |none    =
  |inhaler = [[Asthma|inhaler]]
  |flumed  = [[Low immunity diseases|flumed]]
  |flusleep= [[Low immunity diseases|flusleep]]
  |pkill_1 = [[Minor Painkiller|pkill_1]]
  |pkill_2 = [[Moderate Painkiller|pkill_2]]
  |pkill_3 = [[Heavy Painkiller|pkill_3]]
  |pkill_4 = [[Heavy Painkiller|pkill_4]]
  |pkill_l = [[Slow-Release Painkiller|pkill_l]]
  |cig    = [[Nicotine|cig]]
  |weed    = [[Intoxicant: Other|weed]]
  |coke    = [[Intoxicant: Other|coke]]
  |meth    = [[Methamphetamine (disease)|meth]]
  |iodine  = [[Iodine Tablets (disease)|iodine]]
  |xanax  = [[Xanax (disease)|xanax]]
  |prozac  = [[Prozac (disease)|prozac]]
 
  |#default={{{use_func|{{{11|}}}}}}
}} </td>
</tr></includeonly><noinclude>[[Category:Templates|{{PAGENAME}}]]</noinclude>
</tr></includeonly><noinclude>[[Category:Templates|{{PAGENAME}}]]</noinclude>

Latest revision as of 20:26, 14 December 2017