Template:Mmge: Difference between revisions

From Darkan
Jump to navigation Jump to search
No edit summary
No edit summary
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|}}}|<span id="dumb123" style="color: #3ea6e6 !important;">{{Coins|{{#expr:{{{profit}}} round {{#ifexpr:{{#expr:{{{profit}}} / 50000}} < 2|-3|-4}}}}}}</span>|<span id="dumb223" style="color: #3ea6e6 !important;">{{Coins|{{#expr:({{{amount}}}*(({{{sell}}})-({{{buy}}})))round -4}}}}</span>}} coins per hour}}}}</includeonly><noinclude>{{/doc}}</noinclude>
{{#if:{{{profit|}}}|<span class="dumb123" 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>

Revision as of 00:03, 14 February 2024

[view] [edit] [purge] Template documentation

This documentation is transcluded from Template:Mmge/doc.

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:
4*****
  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.