Difference between revisions of "Template:Indian Rupee/doc"

From blackwiki
Jump to navigation Jump to search
imported>Vanisaac
m (→‎See also: clean up per WP:CAT#T and WP:AWBREQ add template:Sandbox other)
imported>Bsherr
m (as found, replacing Template:Tld with Template:Tlc or adding/updating category placement comments, plus general and typo fixes)
 
Line 1: Line 1:
 
{{Documentation subpage}}
 
{{Documentation subpage}}
<!-- PLEASE ADD CATEGORIES AND INTERWIKIS AT THE BOTTOM OF THIS PAGE -->
+
<!-- Add categories where indicated at the bottom of this page and interwikis at Wikidata -->
  
 
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 [[Indian rupee]] article and can even calculate inflation. <em>See warnings below.</em>
 
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 [[Indian rupee]] article and can even calculate inflation. <em>See warnings below.</em>
Line 8: Line 8:
  
 
Example:
 
Example:
* {{tld|₹}} → {{₹}}
+
* {{tlc|₹}} → {{₹}}
* {{tld|₹|123.45}} → {{₹|123.45}}
+
* {{tlc|₹|123.45}} → {{₹|123.45}}
  
 
=== Link ===
 
=== Link ===
Line 15: Line 15:
  
 
Example:
 
Example:
* {{tld|₹|123.45|3=link=yes}} → {{₹|123.45|link=yes}}
+
* {{tlc|₹|123.45|3=link=yes}} → {{₹|123.45|link=yes}}
  
 
=== Inflation calculation ===
 
=== Inflation calculation ===
Line 27: Line 27:
  
 
Examples:
 
Examples:
* {{tld|₹|100|{{#expr:{{Inflation/IN/startyear}}-1}}}} → {{₹|100|{{#expr:{{Inflation/IN/startyear}}-1}}}}
+
* {{tlc|₹|100|{{#expr:{{Inflation/IN/startyear}}-1}}}} → {{₹|100|{{#expr:{{Inflation/IN/startyear}}-1}}}}
* {{tld|₹|100|{{Inflation/IN/startyear}}}} → {{₹|100|{{Inflation/IN/startyear}}}}
+
* {{tlc|₹|100|{{Inflation/IN/startyear}}}} → {{₹|100|{{Inflation/IN/startyear}}}}
* {{tld|₹|100|1990}} → {{₹|100|1990}}
+
* {{tlc|₹|100|1990}} → {{₹|100|1990}}
* {{tld|₹|100|1990|4=link=yes}} → {{₹|100|1990|link=yes}}
+
* {{tlc|₹|100|1990|4=link=yes}} → {{₹|100|1990|link=yes}}
* {{tld|₹|100|{{#expr:{{Inflation/year|IN}}-1}}}} → {{₹|100|{{#expr:{{Inflation/year|IN}}-1}}}}
+
* {{tlc|₹|100|{{#expr:{{Inflation/year|IN}}-1}}}} → {{₹|100|{{#expr:{{Inflation/year|IN}}-1}}}}
* {{tld|₹|100|{{Inflation/year|IN}}}} → {{₹|100|{{Inflation/year|IN}}}}
+
* {{tlc|₹|100|{{Inflation/year|IN}}}} → {{₹|100|{{Inflation/year|IN}}}}
* {{tld|₹|100|{{CURRENTYEAR}}}} → {{₹|100|{{CURRENTYEAR}}}}
+
* {{tlc|₹|100|{{CURRENTYEAR}}}} → {{₹|100|{{CURRENTYEAR}}}}
* {{tld|₹|100|{{#expr:{{CURRENTYEAR}}+1}}}} → {{₹|100|{{#expr:{{CURRENTYEAR}}+1}}}}
+
* {{tlc|₹|100|{{#expr:{{CURRENTYEAR}}+1}}}} → {{₹|100|{{#expr:{{CURRENTYEAR}}+1}}}}
  
 
Additional parameter {{para|about|yes}} will cause the template to calculate to the nearest rupee (instead of the nearest paisa), and prefix the calculated value with "about". The rounding can be fine-tuned further by using {{para|round|{{var|integer}}}}. These parameters may be combined.
 
Additional parameter {{para|about|yes}} will cause the template to calculate to the nearest rupee (instead of the nearest paisa), and prefix the calculated value with "about". The rounding can be fine-tuned further by using {{para|round|{{var|integer}}}}. These parameters may be combined.
  
 
Examples:
 
Examples:
* {{tld|₹|10|1990}} → {{₹|10|1990}}
+
* {{tlc|₹|10|1990}} → {{₹|10|1990}}
* {{tld|₹|10|1990|4=round=0}} → {{₹|10|1990|round=0}}
+
* {{tlc|₹|10|1990|4=round=0}} → {{₹|10|1990|round=0}}
* {{tld|₹|10|1990|4=about=yes}} → {{₹|10|1990|about=yes}}
+
* {{tlc|₹|10|1990|4=about=yes}} → {{₹|10|1990|about=yes}}
* {{tld|₹|1000|1990|4=round=2}} → {{₹|1000|1990|round=2}}
+
* {{tlc|₹|1000|1990|4=round=2}} → {{₹|1000|1990|round=2}}
* {{tld|₹|1000|1990|4=round=-2}} → {{₹|1000|1990|round=-2}}
+
* {{tlc|₹|1000|1990|4=round=-2}} → {{₹|1000|1990|round=-2}}
* {{tld|₹|1000|1990|4=round=-2|5=about=yes}} → {{₹|1000|1990|round=-2|about=yes}}
+
* {{tlc|₹|1000|1990|4=round=-2|5=about=yes}} → {{₹|1000|1990|round=-2|about=yes}}
  
 
== Redirects here ==
 
== Redirects here ==
Line 64: Line 64:
  
 
<includeonly>{{Sandbox other||
 
<includeonly>{{Sandbox other||
<!-- CATEGORIES AND INTERWIKIS HERE, THANKS -->
+
<!-- Categories below this line; interwikis at Wikidata -->
 
{{DEFAULTSORT:INR}}
 
{{DEFAULTSORT:INR}}
 
[[Category:Indian economy templates]]
 
[[Category:Indian economy templates]]

Latest revision as of 01:11, 10 August 2020

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 Indian rupee article and can even calculate inflation. See warnings below.

Usage

{{|value}}

Example:

Link

The parameter |link=yes may be used to link ₹ to the article Indian rupee. This is turned off by default, but may be appropriate for the first occurrence of the term in an article.

Example:

Inflation calculation

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 1953 ≤ year < 2019), the equivalent value represented in 2019 rupees will be calculated in parentheses. However, this function should only be used in appropriate situations.

  • {{|value|year}}
  • {{|value|year|round=round|about=yes}}

Examples:

Additional parameter |about=yes will cause the template to calculate to the nearest rupee (instead of the nearest paisa), and prefix the calculated value with "about". The rounding can be fine-tuned further by using |round=integer. These parameters may be combined.

Examples:

Redirects here

See also