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

From RimWorld Wiki
Jump to navigation Jump to search
(First attempt to fix the layout issue at Social Drugs caused by not every item having all the stat modifiers...)
(second attempt. Also fixing the property define i had used for testing.)
Line 1: Line 1:
 
<noinclude><!-- 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. --></noinclude><onlyinclude>{{#vardefine: name    | {{{1|Gold}}}
 
<noinclude><!-- 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. --></noinclude><onlyinclude>{{#vardefine: name    | {{{1|Gold}}}
}}          {{#vardefine: property | {{{2|Hunger}}}
+
}}          {{#vardefine: property | {{{2|Beauty}}}
 
}}          {{#vardefine: factor  | {{Q| {{#var:name}} | {{#var:property}} Factor}}
 
}}          {{#vardefine: factor  | {{Q| {{#var:name}} | {{#var:property}} Factor}}
 
}}          {{#vardefine: offset  | {{Q| {{#var:name}} | {{#var:property}} Offset}}
 
}}          {{#vardefine: offset  | {{Q| {{#var:name}} | {{#var:property}} Offset}}
}}</onlyinclude>{| class="wikitable"
+
}}
 +
</onlyinclude>
 +
{| class="wikitable"
 
<onlyinclude>
 
<onlyinclude>
 
{{#if:    {{#var: factor}}{{#var: offset}}|
 
{{#if:    {{#var: factor}}{{#var: offset}}|
 
{{!}}-
 
{{!}}-
 
{{Tag/HR}} {{#var: property}}
 
{{Tag/HR}} {{#var: property}}
{{!}}      {{Format/Equation Table | {{#var:name}} | {{#var: property}}  }} |}}</onlyinclude>
+
{{!}}      {{Format/Equation Table | {{#var:name}} | {{#var: property}}  }} | style="display:none" }}
 +
</onlyinclude>
 
|}
 
|}

Revision as of 00:45, 12 May 2019


Beauty ×4 +20