Template:GEPrice

From Darkan
Revision as of 20:56, 10 October 2012 by imported>Joeytje50 (reverted the previous edit because it broke, and since this is a high-use template, I changed back to the working version instead of fixing first. So, here it is, the fix :3. It works now.)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

[view] [edit] [purge] Template documentation

This documentation is transcluded from Template:GEPrice/doc.

Displays values entered into the Grand Exchange Market Watch pages that can be used to help perform calculations and display prices where the full table might be inappropriate.

Warning: This template cannot be used when programming calculators, as the values contain commas by default. Instead, one must use Template:GEP.<ref name="GEP">See also Template:,, which performs an identical function to Template:GEP, though the latter remains the preferred option.</ref>

Usage

"{{GEPrice|Bones}}" will yield the value of Bones as recorded on Exchange:Bones (Expression error: Unrecognized punctuation character "[".). Therefore, "{{GEPrice|Blue partyhat}}" displays "Expression error: Unrecognized punctuation character "["." (with commas)

As mentioned above, this template cannot be used in calculators. The expression parser function cannot process commas, as shown below.

"{{#expr:{{GEPrice|Blue partyhat}}}}" → "Expression error: Unexpected < operator."<ref>This example exists to show what happens when commas are allowed within expressions.</ref>

You can also multiply the amount of items within the template, by using {{GEPrice|Blue partyhat|5}} to show Expression error: Unrecognized punctuation character "["., the price of 5 blue partyhats, or {{GEPrice|Blue partyhat|n|5}} for the same price without the formatting. The template also supports the syntax {{GEPrice|Blue partyhat|yes|5}} with the second parameter defining that there should be formatting (this will show the same as the example where the second parameter defined the amount, as shown earlier).

See also

References

<references />