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 | + | # Ratio 1 = formatterNumeratorVariable1/formatterDenominatorVariable1 |
− | # Ratio 2 = formatterNumeratorVariable2 / formatterDenominatorVariable2 | + | # Ratio 2 = formatterNumeratorVariable2/formatterDenominatorVariable2 |
− | # Ratio 3 = formatterNumeratorVariable3 / formatterDenominatorVariable3 | + | # 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 | |
− | + | | format = template | |
− | + | | template = Ask Table Formatter | |
− | + | | link = none}} | |
− | + | |} | |
− | </li>< | + | </li><div> |
</pre> | </pre> | ||
Produces: | Produces: | ||
Line 31: | Line 31: | ||
|- | |- | ||
{{#ask: [[Category:Insectoid]] | {{#ask: [[Category:Insectoid]] | ||
− | + | | ?Meat Yield | |
− | + | | format = template | |
− | + | | template = Ask Table Formatter | |
− | + | | link = none}} | |
− | }} | ||
|} | |} | ||
− | </li>< | + | </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 | + | <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 | + | ! 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>< | + | </li><div> |
</pre> | </pre> | ||
Produces: | Produces: | ||
− | <div><li style="display: inline-table;">{{#vardefine:formatterNumeratorVariable1|Daily Milk Average}}{{#vardefine:formatterDenominatorVariable1|Real Hunger Rate | + | <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 | + | ! 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>< | + | </li><div> |
+ | |||
<noinclude>[[Category:Template documentation]]</noinclude> | <noinclude>[[Category:Template documentation]]</noinclude> | ||
− | <includeonly>[[Category:Customized table templates | + | <includeonly>[[Category:Customized table templates]]</includeonly> |