User:Celestial/TemplateSandbox: Difference between revisions

no edit summary
(Created page with "{{#vardefine:BuyValue|{{#if:{{{Material|}}}|{{formatnum:{{#ask:[[{{{Material}}}]]|?Value=|mainlabel=-}}|R}}|0}}}} {{#vardefine:SellValue|{{#if:{{{Product|}}}|{{formatnum:{{#ask:[[{{{Product}}}]]|?Value=|mainlabel=-}}|R}}|0}}}} {{!}}- {{!}} {{{Level}}} {{!}} {{Plinkt|{{{Product}}}}} {{!}} {{Plinkt|{{{Material}}}}} {{!}} {{{ExperienceFirstTime}}} {{!}} {{{Experience}}} {{!}} {{{ExperienceSecondary}}} {{!}} {{#expr:{{{Experience}}} + ({{{ExperienceSecondary}}} * 2)}} {{!}}...")
 
No edit summary
 
(16 intermediate revisions by the same user not shown)
Line 5:
{{!}} {{{Level}}}
{{!}} {{Plinkt|{{{Product}}}}}
{{!}} {{Plinkt|[[{{{Material}}}}}]]
{{!}} {{{ExperienceFirstTime}}}
{{!}} {{{Experience}}}
{{!}} {{{ExperienceSecondary}}}
{{!}} {{#vardefineecho:TotalExperience|{{#expr:{{{Experience}}} + ({{{ExperienceSecondary}}} * 2)}}}}
{{!}} {{Currency|{{#var:BuyValue{MatCost}}}}}
{{!}} {{Currency|{{#expr:{{#var:BuyValue{MatCost}}} / 2}}}}
{{!}} {{Currency|{{#var:SellValue}}}}
{{!}} {{Currency|{{#expr:{{#var:BuyValue{MatCost}}} / 2 - {{#var:SellValue}}}}}}
{{!}} {{Currency|{{#vardefineecho:TotalProfit|{{#expr:{{#var:SellValue}} * 2 - {{#var:BuyValue{MatCost}}}}}}} / 2}}
{{!}} {{Currency|{{Round|{{#expr:({{#var:SellValueTotalProfit}} -/ {{#var:BuyValueTotalExperience}} / 2) / {{{Experience}}|2} + ({{{ExperienceSecondary}}} * 2)}}
<noinclude>
<templatedata>
Line 24:
"type": "number"
},
"ItemProduct": {
"description": "Name of the recipe item",
"type": "string"
},
"CategoryMaterial": {
"description": "VariantMaterial ofneeded theto foodmake item",
"aliases": [
"Variant"
],
"description": "Variant of the food item",
"type": "string"
},
"CostMatCost": {
"description": "Cost of producing the recipematerial when bought from store",
"type": "number"
]},
"ExperienceFirstTime": {
"description": "Experience gained per item for the first time",
"type": "number"
},
"Experience": {
"aliases": [
"XP"
],
"description": "Experience gained per item",
"type": "number"
},
"ExperienceFirstTimeExperienceSecondary": {
"description": "Experience gained per item for theon firstsecondary timeprocessing",
"type": "number"
},
"Ingredients": {},
"ExperiencePerHour": {},
"ProfitPerHour": {}
}
}
31

edits