Difference between revisions of "Template:BRL"
Jump to navigation
Jump to search
imported>Hack (tweak wikilink) |
imported>Djr13 (copy logic from Template:US$ as of revision 710153226, which has several improvements) |
||
| Line 1: | Line 1: | ||
| − | <span style="white-space: nowrap" | + | <span style="white-space: nowrap">{{#ifeq:{{{link|no}}}|yes |
| − | + | |[[Brazilian real|R$]] | |
| − | |R$}}{{ | + | |R$ |
| − | + | }}{{formatnum:{{{1|}}}}}</span><!-- | |
| − | + | -->{{#ifeq:{{{year|{{{2|0}}}}}}|0||{{#ifexpr:{{Inflation/BR/startyear}}<={{{year|{{{2|0}}}}}} and {{{year|{{{2|0}}}}}}<{{Inflation-year|BR}} | |
| − | + | | ({{#if:{{{about|}}} | |
| − | + | |equivalent to about ${{formatnum:{{Inflation|BR|{{formatnum:{{{1|}}}|R}}|{{{year|{{{2}}}}}}|r={{{round|0}}}}}}} | |
| − | + | |equivalent to ${{formatnum:{{Inflation|BR|{{formatnum:{{{1|}}}|R}}|{{{year|{{{2}}}}}}|r={{{round|{{#ifexpr:{{Inflation|BR|{{formatnum:{{{1|}}}|R}}|{{{year|{{{2}}}}}}}}>1000|0|2}}}}}}}}} | |
| − | + | }} in {{Inflation-year|BR}}) | |
| − | + | }}}}<noinclude> | |
| − | + | {{documentation}}<!-- Add categories and interwikis to the /doc subpage, not here! --> | |
| − | }} | + | </noinclude> |
Latest revision as of 22:50, 17 March 2016
R$
Usage
{{R$|value}}
Example:
{{R$}}→ Template:R${{R$|123.45}}→ Template:R$
Link
The parameter |link=yes may be used to link R$ to the article Brazilian real. This is turned off by default, but may be appropriate for the first occurrence of the term in an article.
Example:
{{R$|123.45|link=yes}}→ Template:R$
Inflation calculation
Template:ToDo: This template can also calculate inflation, but only if reliably sourced inflation data is first added to Template:Inflation.
Redirects here
See also
| The above documentation is transcluded from Template:BRL/doc. (edit | history) Editors can experiment in this template's sandbox (create | mirror) and testcases (create) pages. Please add categories to the /doc subpage. Subpages of this template. |