Template:Row/Food: Difference between revisions

From The Cataclysm: Dark Days Ahead Wiki
Jump to navigation Jump to search
(added more use_functions.)
(added code for trader price.)
 
(One intermediate revision 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}}"> <nowiki>$</nowiki> {{formatnum:{{#expr:{{{PRC|{{{2|}}}}}} * 0.01 }} }} </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; text-align:left; font-size: 0.9em; line-height:100%; background-color: {{#ifeq: {{{MAT1|{{{4|}}}}}}|FLESH|#fee|{{#ifeq: {{{MAT1|{{{4|}}}}}}|VEGGY|#efe|#eee}}}}"> {{lc:{{{MAT1|{{{4|}}}}}}}} </td><!--
--><td style="border: 1px solid #aaa; padding: 0.2em 0.5em; text-align:left; font-size: 0.9em; line-height:100%; background-color: {{#ifeq: {{{MAT1|{{{4|}}}}}}|FLESH|#fee|{{#ifeq: {{{MAT1|{{{4|}}}}}}|VEGGY|#efe|#eee}}}}"> {{lc:{{{MAT1|{{{4|}}}}}}}} </td><!--
Line 37: Line 39:
{{#ifexpr: {{{FUN|{{{15|}}}}}} > 0 |darkgreen|{{#ifexpr: {{{FUN|{{{15|}}}}}} < 0 |darkred|lightgray}}}}"> {{{FUN|{{{15|}}}}}} </td><!--
{{#ifexpr: {{{FUN|{{{15|}}}}}} > 0 |darkgreen|{{#ifexpr: {{{FUN|{{{15|}}}}}} < 0 |darkred|lightgray}}}}"> {{{FUN|{{{15|}}}}}} </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|{{{16|}}}}}}
--><td style="border: 1px solid #aaa; padding: 0.2em 0.5em; text-align:left; font-size: 0.9em; line-height:100%"> {{Usefunctiontotext|{{{use_func|{{{16|}}}}}}}}</td><!--
  |none    =
  |sewage  = [[Mutations|sewage]]
  |SEWAGE  = [[Mutations|sewage]]
  |alcohol  = [[Alcohol (disease) |alcohol]]
  |ALCOHOL  = [[Alcohol (disease) |alcohol]]
  |ALCOHOL_WEAK = [[Alcohol (disease) |Weak alcohol]]
  |ALCOHOL_STRONG = [[Alcohol (disease) |Strong alcohol]]
  |mutagen_3= [[Mutations|mutagen_3]]
  |MUTAGEN_3= [[Mutations|mutagen_3]]
  |purifier = [[Mutations|purifier]]
  |PURIFIER = [[Mutations|purifier]]
  |poison  = [[Poison|poison]] 
  |POISON  = [[Poison|poison]] 
  |hallu  = [[Hallucinating|hallu]]
  |FUN_HALLU  = [[Hallucinating|hallu]]
  |mutagen = [[Mutations|mutagen]]
  |MUTAGEN = [[Mutations|mutagen]]
  |MYCUS = [[Marloss]]
  |MARLOSS = [[Marloss]]
  |MARLOSS_GEL = [[Marloss]]
  |MARLOSS_SEED = [[Marloss]]
  |SEED    = [[Seeds]]
  |ROYAL_JELLY  = [[Royal jelly]]
  |CAFF    = [[Hidden_stats#Stim|Caff]]
  |ATOMIC_CAFF  = [[Hidden_stats#Stim|Atomic Caff]]
  |ANTIPARASITIC = [[Antiparasitic Drug|Antiparasitic]]
  |FLUMED = [[Low immunity diseases|Flu Medication]]
 
  |#default={{{use_func|{{{16|}}}}}}
}} </td><!--


--><td style="border: 1px solid #aaa; border-right-color: #333; padding: 0.2em 0.5em; color:
--><td style="border: 1px solid #aaa; border-right-color: #333; padding: 0.2em 0.5em; color:

Latest revision as of 20:26, 14 December 2017