Difference between revisions of "Template:Choice"

From Stardew Valley Wiki
Jump to navigation Jump to search
(tweak style)
(use more readable colors)
Line 1: Line 1:
'''<span style="color:{{#iferror:{{#ifexpr:{{{2}}}>0|green|{{#ifexpr:{{{2}}}<0|red|black}}}}|black}};">{{{1}}}</span>''' <small>''({{#iferror:{{#ifexpr:{{{2}}}>0|+{{{2}}}|{{#ifexpr:{{{2}}}<0|{{{2}}}|No effect on}}}}|No effect on}} [[social|friendship]].)''</small><noinclude>
+
'''<span style="color:{{#iferror:{{#ifexpr:{{{2}}}>0|#060|{{#ifexpr:{{{2}}}<0|#600|#000}}}}|#000}};">{{{1}}}</span>''' <small>''({{#iferror:{{#ifexpr:{{{2}}}>0|+{{{2}}}|{{#ifexpr:{{{2}}}<0|{{{2}}}|No effect on}}}}|No effect on}} [[social|friendship]].)''</small><noinclude>
 
{{{{FULLPAGENAME}}/doc}}</noinclude>
 
{{{{FULLPAGENAME}}/doc}}</noinclude>

Revision as of 00:40, 19 September 2016

{{{1}}} (No effect on friendship.)

Description

This template formats a dialogue choice on a villager's page.

Use

* {{choice|A positive option|50}}
* {{choice|A neutral option|0}}
* {{choice|A negative option|-50}}
* {{choice|A negative option for a specific NPC|-50|Linus}}