Template:Mmge: Difference between revisions
Jawarrior1 (talk | contribs) No edit summary |
Jawarrior1 (talk | contribs) No edit summary |
||
(4 intermediate revisions by the same user not shown) | |||
Line 13: | Line 13: | ||
|{{#ifexpr:({{{amount}}}*(({{{sell}}})-({{{buy}}})))>0|{{mmg stars|{{#ifexpr:{{#expr:floor (((ln(({{{amount}}}*(({{{sell}}})-({{{buy}}}))))-ln100000)/ln2)+2)}}<0|0|{{#ifexpr:{{#expr:floor ((ln(({{{amount}}}*(({{{sell}}})-({{{buy}}}))))-ln100000)/ln2)}}>5|5|{{#expr:floor (((ln(({{{amount}}}*(({{{sell}}})-({{{buy}}}))))-ln100000)/ln2)+2)}}}}}}}}|<span style="font-weight:bold; font-size:25px; color:#3ea6e6">*****</span>}}}}<br /> | |{{#ifexpr:({{{amount}}}*(({{{sell}}})-({{{buy}}})))>0|{{mmg stars|{{#ifexpr:{{#expr:floor (((ln(({{{amount}}}*(({{{sell}}})-({{{buy}}}))))-ln100000)/ln2)+2)}}<0|0|{{#ifexpr:{{#expr:floor ((ln(({{{amount}}}*(({{{sell}}})-({{{buy}}}))))-ln100000)/ln2)}}>5|5|{{#expr:floor (((ln(({{{amount}}}*(({{{sell}}})-({{{buy}}}))))-ln100000)/ln2)+2)}}}}}}}}|<span style="font-weight:bold; font-size:25px; color:#3ea6e6">*****</span>}}}}<br /> | ||
{{#if:{{{profit|}}}|{{Coins|{{#expr:{{{profit}}} round {{#ifexpr:{{#expr:{{{profit}}} / 50000}} < 2|-3|-4}}}}}}|{{Coins|{{#expr:({{{amount}}}*(({{{sell}}})-({{{buy}}})))round -4}}}}}} coins per hour}}}}</includeonly><noinclude>{{/doc}}</noinclude> | {{#if:{{{profit|}}}|<span class="dumb223" style="color: #3ea6e6 !important;">{{Coins|{{#expr:{{{profit}}} round {{#ifexpr:{{#expr:{{{profit}}} / 50000}} < 2|-3|-4}}}}}}</span>|<span class="dumb223" style="color: #3ea6e6 !important;">{{Coins|{{#expr:({{{amount}}}*(({{{sell}}})-({{{buy}}})))round -4}}}}</span>}} coins per hour}}}}</includeonly><noinclude>{{/doc}}</noinclude> |
Latest revision as of 00:04, 14 February 2024
Mmge is the money making guide efficiency template to be used on money making guide subpages. The template defines a function for the efficiency of each method (rated in stars) so that it may be standardized across every page.
Usage
{{mmge|profit=Profit per hour}}
or
{{mmge|buy=Price of materials|sell=Selling price of products|amount=Amount made per hour}}
Example
{{mmge|profit=500000}}
gives:
*****
500,000 coins per hour
{{mmge|amount=1500|buy={{GEPrice|Raw rocktail|n}}|sell={{GEPrice|Rocktail|n}}}}
gives:
Expression error: Unexpected < operator.
Expression error: Unexpected < operator. Expression error: Unexpected < operator.Expression error: Unexpected < operator.Expression error: Unexpected < operator. coins per hour
It is preferable to use the {{GEPrice}}
template within the parameter as it will automatically adjust the profit per hour.