Template:MoneyMakerVariantLine: Difference between revisions
Jump to navigation
Jump to search
Content added Content deleted
No edit summary |
No edit summary |
||
Line 2: | Line 2: | ||
<td>{{#show: {{{variant}}} |?Image#32px;x32px=}} [[{{{variant}}}]]</td> |
<td>{{#show: {{{variant}}} |?Image#32px;x32px=}} [[{{{variant}}}]]</td> |
||
<td>{{{requirements}}}</td> |
<td>{{{requirements}}}</td> |
||
{{#vardefine |
|||
<td>{{#if:{{{coins_per_hour|}}}|{{currency|{{{coins_per_hour}}}}}|{{Unknown}}}}</td> |
|||
<td> |
|||
{{Currency|{{#vardefineecho:coins_per_hour | {{#expr: {{{profit_per_item}}} * {{{items_per_hour}}} }} }}}} |
|||
</td> |
|||
</tr> |
</tr> |
||
{{#subobject:MONEY_MAKER_VARIANT|Variant_of={{PAGENAMEE}}|Variant={{{variant}}}|Requirements={{{requirements}}}|Coins per hour={{#if:{{{coins_per_hour|}}}|{{{coins_per_hour}}}|Unknown}}}}</includeonly><noinclude>{{/doc}}</noinclude> |
{{#subobject:MONEY_MAKER_VARIANT|Variant_of={{PAGENAMEE}}|Variant={{{variant}}}|Requirements={{{requirements}}}|Coins per hour={{#if:{{{coins_per_hour|}}}|{{{coins_per_hour}}}|Unknown}}}}</includeonly><noinclude>{{/doc}}</noinclude> |
Revision as of 04:24, 24 November 2024
Template documentation
This documentation is transcluded from Template:MoneyMakerVariantLine/doc. [edit] [history] [purge]
The MoneyMakerVariants templates are used to list variants for making money. Three templates are used to form the table:
{{MoneyMakerVariantsTableHead}}
- Contains table headers for the top of the table{{MoneyMakerVariantLine}}
- Template for the individual money making variants{{MoneyMakerVariantsTableBottom}}
- Contains table footers for the bottom of the table
Example
{{MoneyMakerVariantsTableHead}} {{MoneyMakerVariantLine |variant=Basic Vegetable Stew |requirements={{profession|chef|{{#show: Basic Vegetable Stew |?Profession Level A }}}} |profit_per_item=212 |items_per_hour=1 }} {{MoneyMakerVariantsTableBottom}}
gives:
{{#vardefine
"Unknown" is not a number.Method | Requirements | Coins / Hour |
---|---|---|
Basic Vegetable Stew | 8 |
212
|
Parameters
variant
The variant of item/skill node.
requirements
The requirements of that item/skill node.
profit_per_item (optional)
The profit obtained per item sold using optimal strategy. Required in absence of coins_per_hour
items_per_hour (optional)
The items obtained per hour using optimal strategy. Required in absence of coins_per_hour
coins_per_hour (optional)
The coins obtained per hour using optimal strategy.
Template
{{MoneyMakerVariantsTableHead}} {{MoneyMakerVariantLine |variant=Basic Vegetable Stew |requirements={{profession|chef|{{#show: Basic Vegetable Stew |?Profession Level A }}}} |profit_per_item=0 |items_per_hour=0 |coins_per_hour=0 }} {{MoneyMakerVariantsTableBottom}}