Template:Row/Meds: Difference between revisions

From The Cataclysm: Dark Days Ahead Wiki
Jump to navigation Jump to search
No edit summary
(added code for trader price.)
 
(10 intermediate revisions by 3 users not shown)
Line 1: Line 1:
<includeonly><tr id="{{anchorencode:{{{NAME|{{{1}}}}}}}}" style="text-align:right"><!--
<includeonly><tr id="{{anchorencode:{{{NAME|{{{1}}}}}}}}" style="text-align:right"><!--


--><td style="border: 1px dashed white; padding: 0.1em 0.2em 0.1em 0; text-align:right">{{igs|!|{{{COLOR|{{{4|}}}}}}|s=border:1px black solid}}</td><!--
--><td style="border: 1px dashed white; padding: 0.1em 0.2em 0.1em 0; text-align:right">{{igs|!|{{{COLOR|{{{3|}}}}}}|s=border:1px black solid}}</td><!--


--><td style="border: 1px solid #aaa; border-left-color: white; padding: 0.2em 0.5em 0.2em 0.2em; text-align:left"> {{{NAME|{{{1}}}}}}{{#ifeq:{{{CHG|{{{10|}}}}}}|1||&nbsp;({{{CHG|{{{10|}}}}}})}} </td><!--
--><td style="border: 1px solid #aaa; border-left-color: white; padding: 0.2em 0.5em 0.2em 0.2em; text-align:left"> [[{{{NAME|{{{1}}}}}}]]{{#ifeq:{{{CHG|{{{9|}}}}}}|1||&nbsp;({{{CHG|{{{9|}}}}}})}} </td><!--


--><td style="border: 1px solid #aaa; padding: 0.2em 0.5em;
--><td style="border: 1px solid #aaa; padding: 0.2em 0.5em;
{{#ifeq: {{{RAR|{{{2|}}}}}} |0|color:lightgray}}"> {{{RAR|{{{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; padding: 0.2em 0.5em;
--><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><!--
{{#ifeq: {{{PRC|{{{3|}}}}}} |0|color:lightgray}}"> {{{PRC|{{{3|}}}}}} </td><!--
 
--><td style="border: 1px solid #aaa; padding: 0.2em 0.5em; text-align:left; font-size: 0.9em; line-height:100%"> {{#switch:{{lc:{{{TOOL|{{{5|}}}}}}}}
  |itm_null =
  |itm_lighter = lighter
  |itm_syringe = syringe
 
  |#default={{{TOOL|{{{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|{{{6|}}}}}}}} </td><!--


--><td style="border: 1px solid #aaa; border-left-color: #333; padding: 0.2em 0.5em; white-space:nowrap; color:
--><td style="border: 1px solid #aaa; border-left-color: #333; padding: 0.2em 0.5em; white-space:nowrap; color:
{{#ifexpr: {{{STM|{{{7|}}}}}} > 0 |darkgreen|{{#ifexpr: {{{STM|{{{7|}}}}}} < 0 |darkred|lightgray}}}}"> {{{STM|{{{7|}}}}}} </td><!--
{{#ifexpr: {{{STM|{{{6|}}}}}} > 0 |darkgreen|{{#ifexpr: {{{STM|{{{6|}}}}}} < 0 |darkred|lightgray}}}}"> {{{STM|{{{6|}}}}}} </td><!--


--><td style="border: 1px solid #aaa; padding: 0.2em 0.5em; white-space:nowrap; color:
--><td style="border: 1px solid #aaa; padding: 0.2em 0.5em; white-space:nowrap; color:
{{#ifexpr: {{{HTH|{{{8|}}}}}} > 0 |darkgreen|{{#ifexpr: {{{HTH|{{{8|}}}}}} < 0 |darkred|lightgray}}}}"> {{{HTH|{{{8|}}}}}} </td><!--
{{#ifexpr: {{{HTH|{{{7|}}}}}} > 0 |darkgreen|{{#ifexpr: {{{HTH|{{{7|}}}}}} < 0 |darkred|lightgray}}}}"> {{{HTH|{{{7|}}}}}} </td><!--


--><td style="border: 1px solid #aaa; padding: 0.2em 0.5em; color:
--><td style="border: 1px solid #aaa; padding: 0.2em 0.5em; color:
{{#ifeq: {{{ADD|{{{9|}}}}}} |0|lightgray|darkred}}"> {{{ADD|{{{9|}}}}}} </td><!--
{{#ifeq: {{{ADD|{{{8|}}}}}} |0|lightgray|darkred}}"> {{{ADD|{{{8|}}}}}} </td><!--


--><td style="border: 1px solid #aaa; padding: 0.2em 0.5em; white-space:nowrap; color:
--><td style="border: 1px solid #aaa; padding: 0.2em 0.5em; white-space:nowrap; color:
{{#ifexpr: {{{FUN|{{{11|}}}}}} > 0 |darkgreen|{{#ifexpr: {{{FUN|{{{11|}}}}}} < 0 |darkred|lightgray}}}}"> {{{FUN|{{{11|}}}}}} </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|{{{12|}}}}}}
  |none    =
  |inhaler = [[Diseases#Asthma|inhaler]]
  |flumed  = [[Diseases#Low immunity diseases|flumed]]
  |flusleep= [[Diseases#Low immunity diseases|flusleep]]
  |pkill_1 = [[Diseases#Minor Painkiller|pkill_1]]
  |pkill_2 = [[Diseases#Moderate Painkiller|pkill_2]]
  |pkill_3 = [[Diseases#Heavy Painkiller|pkill_3]]
  |pkill_4 = [[Diseases#Heavy Painkiller|pkill_4]]
  |pkill_l = [[Diseases#Slow-Release Painkiller|pkill_l]]
  |cig    = [[Diseases#Nicotine|cig]]
  |weed    = [[Diseases#Intoxicant: Other|weed]]
  |coke    = [[Diseases#Intoxicant: Other|coke]]
  |meth    = [[Diseases#Methamphetamine|meth]]
  |iodine  = [[Diseases#Iodine tablets|iodine]]
  |xanax  = [[Diseases#Xanax|xanax]]
  |prozac  = [[Diseases#Prozac|prozac]]
 
  |#default={{{use_func|{{{12|}}}}}}
}} </td><!--
 
--><td style="border: 1px solid #aaa; padding: 0.2em 0.5em; text-align:left; font-size: 0.9em; line-height:100%"> {{ADDtoname|{{{addiction type|{{{13|}}}}}}}}</td><!--


--><td style="border: 1px solid #aaa; border-right-color: white; padding: 0.2em 0.5em; text-align:left"> {{{14|}}} </td>
--><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>
</tr></includeonly><noinclude>[[Category:Templates|{{PAGENAME}}]]</noinclude>
</tr></includeonly><noinclude>[[Category:Templates|{{PAGENAME}}]]</noinclude>

Latest revision as of 20:26, 14 December 2017