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

From RimWorld Wiki
Jump to navigation Jump to search
(Revised - previous version not working.)
(Marked as obsolete)
 
(21 intermediate revisions by 2 users not shown)
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. -->
+
<noinclude>{{Obsolete|reason = I'm proud to announce that the changeover from ''Define'' to ''Infobox main'' is complete! This template is no longer used by any page. Template retained to keep page histories legible.}}</noinclude><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: name | {{{1|Gold}}} }}
+
}}<!--    -->{{#vardefine: property | {{{2|Beauty}}}
{{#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}} }}
+
}}<span style="display:none">Stat Mod Row for {{#var: property}} from {{#var: name}}</span>
 
+
</onlyinclude><noinclude>
{| class="wikitable"
+
{| class="wikitable" </noinclude><onlyinclude>{{#if:     {{#var: factor}}{{#var: offset}}|
<onlyinclude>
 
{{#if: {{#var: factor}}{{#var: offset}}|
 
 
{{!}}-
 
{{!}}-
 
{{Tag/HR}} {{#var: property}}
 
{{Tag/HR}} {{#var: property}}
{{!}}
+
{{!}}     {{Format/Equation Table | {{#var:name}} | {{#var: property}}   }} | }}<span style="display:none">end of Stat Mod Row for {{#var: property}} from {{#var: name}}</span>
{{!}} {{Stat Entry/Factor| {{#var:factor}} }}
+
</onlyinclude><noinclude>
{{!}}
+
|}</noinclude>
{{!}} {{Stat Entry/Offset| {{#var:offset}} }}
 
|}}</onlyinclude>
 
|}
 

Latest revision as of 15:15, 20 April 2022

Stat Mod Row for Beauty from Gold

Beauty ×4 +20end of Stat Mod Row for Beauty from Gold