Template:Philippine peso/doc
This is a documentation subpage for Template:Philippine peso. It contains usage information, categories and other content that is not part of the original template page. |
Relevant discussion at | → Template talk:Currency#Suggestions for a standard set of options for each template |
This is a multifunction template. At its simplest, it adds the currency mark "₱", as recommended by MOS:CURRENCY for many situations. The template can also link to the Philippine peso article and can even calculate inflation. See warnings below.
Usage
{{₱|value}}
Example:
- REDIRECT Template:Template link code → ₱
- REDIRECT Template:Template link code → ₱123.45
Link
The parameter |link=yes
may be used to link ₱ to the article Philippine peso. This is turned off by default, but may be appropriate for the first occurrence of the term in an article.
Example:
- REDIRECT Template:Template link code → ₱123.45
Inflation calculation
Do not assume that using this template will mean that a calculated value is "current", "as of 2024", "as of 2023" or even necessarily "recent". Do not use {{CURRENTYEAR}} to refer to calculated value, instead {{Inflation/year|PH}} may be used. See also MOS:REALTIME. |
The template supports inflation calculation, by way of {{Inflation}}
. If the second parameter is used, to specify a year, and this year is within a certain range of available inflation data (specifically, if Template:Inflation/PH/startyear ≤ year
< 2019), the equivalent value represented in 2019 pesos will be calculated in parentheses. However, this function should only be used in appropriate situations.
Examples:
- REDIRECT Template:Template link code → ₱100Expression error: Unrecognized punctuation character "[".
- REDIRECT Template:Template link code → ₱100Expression error: Unrecognized punctuation character "[".
- REDIRECT Template:Template link code → ₱100Expression error: Unrecognized punctuation character "[".
- REDIRECT Template:Template link code → ₱100Expression error: Unrecognized punctuation character "[".
- REDIRECT Template:Template link code → ₱100Expression error: Unrecognized punctuation character "[".
- REDIRECT Template:Template link code → ₱100Expression error: Unrecognized punctuation character "[".
- REDIRECT Template:Template link code → ₱100Expression error: Unrecognized punctuation character "[".
- REDIRECT Template:Template link code → ₱100Expression error: Unrecognized punctuation character "[".
Additional parameter |about=yes
will cause the template to calculate to the nearest peso (instead of the nearest centavo), and prefix the calculated value with "about". The rounding can be fine-tuned further by using |round=integer
. These parameters may be combined.
Examples:
- REDIRECT Template:Template link code → ₱10Expression error: Unrecognized punctuation character "[".
- REDIRECT Template:Template link code → ₱10Expression error: Unrecognized punctuation character "[".
- REDIRECT Template:Template link code → ₱10Expression error: Unrecognized punctuation character "[".
- REDIRECT Template:Template link code → ₱1,000Expression error: Unrecognized punctuation character "[".
- REDIRECT Template:Template link code → ₱1,000Expression error: Unrecognized punctuation character "[".
- REDIRECT Template:Template link code → ₱1,000Expression error: Unrecognized punctuation character "[".
Redirects here
See also
- Wikipedia:Manual of Style (dates and numbers)#Currencies
- Template:Currency
- Wikipedia:Wikiproject Philippines
- Template:AUD
- Template:BDT
- Template:CAD
- Template:CNY
- Template:JPY
- Template:US$