Difference between revisions of "Template:Stat Modifier/Row"

From RimWorld Wiki
Jump to navigation Jump to search
Line 1: Line 1:
 
<!-- This template serves to create rows for Drugs/Tags, but could possibly be used elsewhere to query stats with offsets or factors. If the input parameters result in no data, then this template returns nothing, conveniently only creating the row if it would contain data. -->
 
<!-- This template serves to create rows for Drugs/Tags, but could possibly be used elsewhere to query stats with offsets or factors. If the input parameters result in no data, then this template returns nothing, conveniently only creating the row if it would contain data. -->
{{#vardefine: name | {{{1|Gold}}} }}
+
<onlyinclude>
{{#vardefine: property | {{{2|Beauty}}} }}
+
  {{#vardefine: name | {{{1|Gold}}}
{{#vardefine: factor  | {{Q| {{#var:name}} | {{#var:property}} Factor}} }}
+
}}{{#vardefine: property | {{{2|Beauty}}}
{{#vardefine: offset  | {{Q| {{#var:name}} | {{#var:property}} Offset}} }}
+
}}{{#vardefine: factor  | {{Q| {{#var:name}} | {{#var:property}} Factor}}
 +
}}{{#vardefine: offset  | {{Q| {{#var:name}} | {{#var:property}} Offset}}
 +
}}
 +
</onlyinclude>
  
 
{| class="wikitable"
 
{| class="wikitable"
 
<onlyinclude>
 
<onlyinclude>
{{#var: factor}}{{#var: offset}}
 
 
{{#if: {{#var: factor}}{{#var: offset}}|
 
{{#if: {{#var: factor}}{{#var: offset}}|
 
{{!}}-
 
{{!}}-

Revision as of 05:38, 10 September 2016



Beauty ×4 +20