User:Mendel/Templates/cost

From GuildWiki
Jump to: navigation, search

Gold

Usage[edit | edit source]

{{cost|gold}} gives the cost in Platinum and Gold, but Platinum is omitted for gold < 1000.

{{cost|plat|gold}} gives the cost in Platinum and Gold.

{{cost|plat| }} gives the cost in Platinum.

Examples[edit | edit source]

code new old
{{cost|0}} 0 Gold 0 Gold
{{cost|123}} 123 Gold 123 Gold
{{cost|12345}} 12 Platinum 345 Gold 12 Platinum 345 Gold
{{cost|12|345}} 12 Platinum 345 Gold 12 Platinum 345 Gold
{{cost|0|345}} 0 Platinum 345 Gold 0 Platinum 345 Gold
{{cost|12| }} 12 Platinum 12 Gold
{{cost|12|0}} 12 Platinum 0 Gold 12 Platinum
{{cost| |345}} Platinum 345 Gold 0 Platinum 345 Gold
{{cost}} Gold 0 Gold
{{cost|}} Gold Expression error: Unexpected mod operator. Expression error: Unexpected mod operator.
{{cost| | }} Platinum Expression error: Unexpected mod operator. Expression error: Unexpected mod operator.
{{cost| 12345 }} 12 Platinum 345 Gold 12 Platinum 345 Gold
{{cost| 12 | 345 }} 12 Platinum 345 Gold 12 Platinum 345 Gold
{{cost| |12345}}

More than 1000 Gold need to be written as {{cost|12345}} or split as {{cost|plat|gold}}.

12 Platinum 345 Gold
{{cost|12|12345}}

More than 1000 Gold need to be written as {{cost|12345}} or split as {{cost|plat|gold}}.

24 Platinum 345 Gold
{{cost|abcde}} Expression error: Unrecognized word "abcde". Expression error: Unrecognized word "abcde". Expression error: Unrecognized word "abcde".
{{cost|ab|cde}} Expression error: Unrecognized word "cde". Expression error: Unrecognized word "ab". Platinum Expression error: Unrecognized word "cde".
{{cost|two|fivehundred}} Expression error: Unrecognized word "fivehundred". Expression error: Unrecognized word "two". Platinum Expression error: Unrecognized word "fivehundred".