Template:Mmge: Difference between revisions

From Darkan
Jump to navigation Jump to search
imported>Suppa chuppa
mNo edit summary
 
No edit summary
Line 10: Line 10:
             <!--else-->
             <!--else-->
             {{#expr:floor (((ln({{{profit}}})-ln100000)/ln2)+2)}}}}}}}}
             {{#expr:floor (((ln({{{profit}}})-ln100000)/ln2)+2)}}}}}}}}
       |{{#ifexpr:{{{profit}}}<0|<span style="font-weight:bold; font-size:25px; color:#ff0000">*****</span>|{{mmg stars|0}}}}}}
       |{{#ifexpr:{{{profit}}}<0|<span style="font-weight:bold; font-size:25px; color:#3ea6e6">*****</span>|{{mmg stars|0}}}}}}


|{{#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:#ff0000">*****</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|}}}|{{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>

Revision as of 23:43, 13 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.