Template:Effectiveness/doc

From Darkan
Jump to navigation Jump to search
Documentation This is a documentation subpage for Template:Effectiveness.
It contains usage information, categories, and other content that is not part of the original template page.

Description

This template is designed for use in the Money making Guides. With an input of the cost of items bought and items sold, and the amount processed in an hour, it outputs a star rating for this with a calculated profit value, rounded to the nearest 1,000. The star rating corresponds to the following table, agreeded up in Forum:Money Method Metric:

Profit range Number of stars
Profit ≥ 500,000 5 *****
250,000 ≤ Profit < 500,000 4 *****
150,000 ≤ Profit < 250,000 3 *****
100,000 ≤ Profit < 150,000 2 *****
50,000 ≤ Profit < 100,000 1 *****
0 ≤ Profit < 50,000 0 *****
0 > Profit 5, red *****

Usage

{{Effectiveness
|buy    = value of items bought, no commas, brackets not required
|sell   = value of items sold, no commas, brackets not required
|amount = amount of items processed per hour, no commas
|output = optional - what is output; "value" results in the value only, "stars" reulsts in stars only. If both are wanted it can be left out.
}}

Examples

Note: not all examples are stricly realistic, could do with better ones.

Method Code used Output
Fishing for crayfish.
{{Effectiveness
|buy=0
|sell={{GEPrice|Raw crayfish|n}}
|amount=594}}
*****
Expression error: Unexpected < operator.
Buying 64 battlestaves from Zaff and selling them.
{{Effectiveness
|buy=7000
|sell={{GEPrice|Battlestaff|n}}
|amount=64}}
*****
Expression error: Unexpected < operator.
Fletching yew longbows from logs and bow strings, 5000 per hour.
{{Effectiveness
|buy={{GEPrice|Yew logs|n}}+{{GEPrice|Bow string|n}}
|sell={{GEPrice|Yew longbow|n}}
|amount=5000}}
*****
Expression error: Unexpected < operator.
Collecting 2000 snape grass per hour and selling .
{{Effectiveness
|buy=0
|sell={{GEPrice|Snape grass|n}}
|amount=2000}}
*****
Expression error: Unexpected < operator.
Buying uncut diamonds and selling cut ones, 500 per hour.
{{Effectiveness
|buy={{GEPrice|Uncut diamond|n}}
|sell={{GEPrice|Diamond|n}}
|amount=500}}
*****
Expression error: Unexpected < operator.
Mining 1,000 iron ore per hour, stars only.
{{Effectiveness
|buy=0
|sell={{GEPrice|Iron ore|n}}
|amount=1000
|output=stars}}
*****
Mining 1,000 iron ore per hour, value only.
{{Effectiveness
|buy=0
|sell={{GEPrice|Iron ore|n}}
|amount=1000
|output=value}}
Expression error: Unexpected < operator.

Notes

  • If using Template:GEPrice, the |n parameter must be used (i.e. {{GEPrice|item|n}}) for items worth 1,000 coins or more (as this removes the comma). If worth less than 1,000, |n should still be included incase the item does reach 1,000 coins or more in the future.
  • The output parameter can be left out completely if both the stars and the value are wanted.
  • This is designed for use in a table, but can be used alone.
  • Please see here for discussing changes to the table.