Editing Template:Ask Table Formatter/doc

Jump to navigation Jump to search

Warning: You are not logged in. Your IP address will be publicly visible if you make any edits. If you log in or create an account, your edits will be attributed to your username, along with other benefits.

The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then save the changes below to finish undoing the edit.

Latest revision Your text
Line 3: Line 3:
 
== Parameters ==
 
== Parameters ==
 
This template does not use traditional template parameters, instead it is fed up to 10 parameters to display by the #ask itself. Further, up to three ratios can be defined to be displayed as the final columns in the table be defining the following wiki variables
 
This template does not use traditional template parameters, instead it is fed up to 10 parameters to display by the #ask itself. Further, up to three ratios can be defined to be displayed as the final columns in the table be defining the following wiki variables
# Ratio 1 = formatterNumeratorVariable1 / formatterDenominatorVariable1 * formatterFactorVariable1
+
# Ratio 1 = formatterNumeratorVariable1/formatterDenominatorVariable1
# Ratio 2 = formatterNumeratorVariable2 / formatterDenominatorVariable2 * formatterFactorVariable2
+
# Ratio 2 = formatterNumeratorVariable2/formatterDenominatorVariable2
# Ratio 3 = formatterNumeratorVariable3 / formatterDenominatorVariable3 * formatterFactorVariable3
+
# Ratio 3 = formatterNumeratorVariable3/formatterDenominatorVariable3
 
Keep in mind the whitespace created when defining these variables on new lines.
 
Keep in mind the whitespace created when defining these variables on new lines.
  
Line 11: Line 11:
  
 
== Examples ==
 
== Examples ==
=== Example 1 - Basic ===
+
===Example 1 - Basic ===
 
<pre>
 
<pre>
 
<div><li style="display: inline-table;">
 
<div><li style="display: inline-table;">
Line 18: Line 18:
 
|-
 
|-
 
{{#ask: [[Category:Insectoid]]  
 
{{#ask: [[Category:Insectoid]]  
| ?Meat Yield
+
| ?Meat Yield
| format = template
+
| format = template
| template = Ask Table Formatter
+
| template = Ask Table Formatter
| link = none
+
| link = none}}
}}
+
|}
</li></div>
+
</li><div>
 
</pre>
 
</pre>
 
Produces:
 
Produces:
Line 31: Line 31:
 
|-
 
|-
 
{{#ask: [[Category:Insectoid]]  
 
{{#ask: [[Category:Insectoid]]  
| ?Meat Yield
+
| ?Meat Yield
| format = template
+
| format = template
| template = Ask Table Formatter
+
| template = Ask Table Formatter
| link = none
+
| link = none}}
}}
 
 
|}
 
|}
</li></div>
+
</li><div>
  
=== Example 2 - Ratios ===
+
===Example 2 - Ratios ===
 
<pre>
 
<pre>
<div><li style="display: inline-table;">{{#vardefine:formatterNumeratorVariable1|Daily Milk Average}}{{#vardefine:formatterDenominatorVariable1|Real Hunger Rate}}{{#vardefine:formatterNumeratorVariable2|Daily Milk Average}}{{#vardefine:formatterDenominatorVariable2|Real Hunger Rate}}{{#vardefine:formatterFactorVariable2|0.05}}
+
<div><li style="display: inline-table;">{{#vardefine:formatterNumeratorVariable1|Daily Milk Average}}{{#vardefine:formatterDenominatorVariable1|Real Hunger Rate}}
 
{| {{STDT| sortable c_08 text-center}}
 
{| {{STDT| sortable c_08 text-center}}
! Animal !! Milk Amount !! Milking<br/>Interval !! Milk/Day<br/>(Average) !! Milk / food consumed<br/>per day !! Nutrition / food consumed<br/>per day
+
! Animal !! Milk Amount !! Milking Interval !! Daily Milk Average !! Daily Milk/Nutrition
 
|-
 
|-
 
{{#ask: [[Concept:Production Animals]] [[Milk Amount::+]] [[Milk Name::Milk]]
 
{{#ask: [[Concept:Production Animals]] [[Milk Amount::+]] [[Milk Name::Milk]]
Line 53: Line 52:
 
| link = none}}
 
| link = none}}
 
|}
 
|}
</li></div>
+
</li><div>
 
</pre>
 
</pre>
 
Produces:
 
Produces:
  
<div><li style="display: inline-table;">{{#vardefine:formatterNumeratorVariable1|Daily Milk Average}}{{#vardefine:formatterDenominatorVariable1|Real Hunger Rate}}{{#vardefine:formatterNumeratorVariable2|Daily Milk Average}}{{#vardefine:formatterDenominatorVariable2|Real Hunger Rate}}{{#vardefine:formatterFactorVariable2|0.05}}
+
<div><li style="display: inline-table;">{{#vardefine:formatterNumeratorVariable1|Daily Milk Average}}{{#vardefine:formatterDenominatorVariable1|Real Hunger Rate}}
 
{| {{STDT| sortable c_08 text-center}}
 
{| {{STDT| sortable c_08 text-center}}
! Animal !! Milk Amount !! Milking<br/>Interval !! Milk/Day<br/>(Average) !! Milk / food consumed<br/>per day !! Nutrition / food consumed<br/>per day
+
! Animal !! Milk Amount !! Milking Interval !! Daily Milk Average !! Daily Milk/Nutrition
 
|-
 
|-
 
{{#ask: [[Concept:Production Animals]] [[Milk Amount::+]] [[Milk Name::Milk]]
 
{{#ask: [[Concept:Production Animals]] [[Milk Amount::+]] [[Milk Name::Milk]]
Line 69: Line 68:
 
| link = none}}
 
| link = none}}
 
|}
 
|}
</li></div>
+
</li><div>
 +
 
  
 
<noinclude>[[Category:Template documentation]]</noinclude>
 
<noinclude>[[Category:Template documentation]]</noinclude>
<includeonly>[[Category:Customized table templates|#Ask Table Formatter]]</includeonly>
+
<includeonly>[[Category:Customized table templates]]</includeonly>

Please note that all contributions to RimWorld Wiki are considered to be released under the CC BY-SA 3.0 (see RimWorld Wiki:Copyrights for details). If you do not want your writing to be edited mercilessly and redistributed at will, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource. Do not submit copyrighted work without permission!

Cancel Editing help (opens in new window)