Difference between revisions of "Template:INRConvert/sandbox"

From blackwiki
Jump to navigation Jump to search
imported>Joshua Issac
m (again.)
imported>Joshua Issac
(Fixed conversion when multiplier argument is supplied.)
Line 12: Line 12:
 
     |k={{formatnum:{{#expr:{{{1}}}*1E3}}}}</span> <!--
 
     |k={{formatnum:{{#expr:{{{1}}}*1E3}}}}</span> <!--
 
       -->({{#switch: {{{fmt|}}}
 
       -->({{#switch: {{{fmt|}}}
       | historical = {{INRConvert/HistoricalRate/Formatted|{{{1}}}|{{{to}}}|{{{year}}}}}
+
       | historical = {{INRConvert/HistoricalRate/Formatted|{{#expr:{{{1}}}*1E3}}|{{{to}}}|{{{year}}}}}
 
       | #default = {{INRConvert/sandbox/{{#ifexpr:{{{year|0}}}>={{Inflation/IN/startyear}} and {{{year|0}}}<{{inflation/year|IN}}|inflation|{{{to|USD}}}}}{{{fmt|}}}<!--
 
       | #default = {{INRConvert/sandbox/{{#ifexpr:{{{year|0}}}>={{Inflation/IN/startyear}} and {{{year|0}}}<{{inflation/year|IN}}|inflation|{{{to|USD}}}}}{{{fmt|}}}<!--
 
         -->|{{{1}}}|3|{{{3|}}}|{{{to|USD}}}|year={{{year}}}<!--
 
         -->|{{{1}}}|3|{{{3|}}}|{{{to|USD}}}|year={{{year}}}<!--
Line 18: Line 18:
 
     |m={{formatnum:{{{1}}}}} million</span> <!--
 
     |m={{formatnum:{{{1}}}}} million</span> <!--
 
       -->({{#switch: {{{fmt|}}}
 
       -->({{#switch: {{{fmt|}}}
       | historical = {{INRConvert/HistoricalRate/Formatted|{{{1}}}|{{{to}}}|{{{year}}}}}
+
       | historical = {{INRConvert/HistoricalRate/Formatted|{{#expr:{{{1}}}*1E6}}|{{{to}}}|{{{year}}}}}
 
       | #default = {{INRConvert/sandbox/{{#ifexpr:{{{year|0}}}>={{Inflation/IN/startyear}} and {{{year|0}}}<{{inflation/year|IN}}|inflation|{{{to|USD}}}}}{{{fmt|}}}<!--
 
       | #default = {{INRConvert/sandbox/{{#ifexpr:{{{year|0}}}>={{Inflation/IN/startyear}} and {{{year|0}}}<{{inflation/year|IN}}|inflation|{{{to|USD}}}}}{{{fmt|}}}<!--
 
         -->|{{{1}}}|6|{{{3|}}}|{{{to|USD}}}|year={{{year}}}<!--
 
         -->|{{{1}}}|6|{{{3|}}}|{{{to|USD}}}|year={{{year}}}<!--
Line 24: Line 24:
 
     |b={{formatnum:{{{1}}}}} {{#switch:{{{lk}}}|on|b=[[1,000,000,000|billion]]|billion}}</span> <!--
 
     |b={{formatnum:{{{1}}}}} {{#switch:{{{lk}}}|on|b=[[1,000,000,000|billion]]|billion}}</span> <!--
 
       -->({{#switch: {{{fmt|}}}
 
       -->({{#switch: {{{fmt|}}}
       | historical = {{INRConvert/HistoricalRate/Formatted|{{{1}}}|{{{to}}}|{{{year}}}}}
+
       | historical = {{INRConvert/HistoricalRate/Formatted|{{#expr:{{{1}}}*1E9}}|{{{to}}}|{{{year}}}}}
 
       | #default = {{INRConvert/sandbox/{{#ifexpr:{{{year|0}}}>={{Inflation/IN/startyear}} and {{{year|0}}}<{{inflation/year|IN}}|inflation|{{{to|USD}}}}}{{{fmt|}}}<!--
 
       | #default = {{INRConvert/sandbox/{{#ifexpr:{{{year|0}}}>={{Inflation/IN/startyear}} and {{{year|0}}}<{{inflation/year|IN}}|inflation|{{{to|USD}}}}}{{{fmt|}}}<!--
 
         -->|{{{1}}}|9|{{{3|}}}|{{{to|USD}}}|year={{{year}}}<!--
 
         -->|{{{1}}}|9|{{{3|}}}|{{{to|USD}}}|year={{{year}}}<!--
Line 30: Line 30:
 
     |t={{formatnum:{{{1}}}}} {{#switch:{{{lk}}}|on|t=[[1,000,000,000,000|trillion]]|trillion}}</span> <!--
 
     |t={{formatnum:{{{1}}}}} {{#switch:{{{lk}}}|on|t=[[1,000,000,000,000|trillion]]|trillion}}</span> <!--
 
       -->({{#switch: {{{fmt|}}}
 
       -->({{#switch: {{{fmt|}}}
       | historical = {{INRConvert/HistoricalRate/Formatted|{{{1}}}|{{{to}}}|{{{year}}}}}
+
       | historical = {{INRConvert/HistoricalRate/Formatted|{{#expr:{{{1}}}*1E12}}|{{{to}}}|{{{year}}}}}
 
       | #default = {{INRConvert/sandbox/{{#ifexpr:{{{year|0}}}>={{Inflation/IN/startyear}} and {{{year|0}}}<{{inflation/year|IN}}|inflation|{{{to|USD}}}}}{{{fmt|}}}<!--
 
       | #default = {{INRConvert/sandbox/{{#ifexpr:{{{year|0}}}>={{Inflation/IN/startyear}} and {{{year|0}}}<{{inflation/year|IN}}|inflation|{{{to|USD}}}}}{{{fmt|}}}<!--
 
         -->|{{{1}}}|12|{{{3|}}}|{{{to|USD}}}|year={{{year}}}<!--
 
         -->|{{{1}}}|12|{{{3|}}}|{{{to|USD}}}|year={{{year}}}<!--
Line 36: Line 36:
 
     |l={{formatnum:{{{1}}}}} {{#switch:{{{lk}}}|on|l=[[lakh]]|lakh}}</span> <!--
 
     |l={{formatnum:{{{1}}}}} {{#switch:{{{lk}}}|on|l=[[lakh]]|lakh}}</span> <!--
 
       -->({{#switch: {{{fmt|}}}
 
       -->({{#switch: {{{fmt|}}}
       | historical = {{INRConvert/HistoricalRate/Formatted|{{{1}}}|{{{to}}}|{{{year}}}}}
+
       | historical = {{INRConvert/HistoricalRate/Formatted|{{#expr:{{{1}}}*1E5}}|{{{to}}}|{{{year}}}}}
 
       | #default = {{INRConvert/sandbox/{{#ifexpr:{{{year|0}}}>={{Inflation/IN/startyear}} and {{{year|0}}}<{{inflation/year|IN}}|inflation|{{{to|USD}}}}}{{{fmt|}}}<!--
 
       | #default = {{INRConvert/sandbox/{{#ifexpr:{{{year|0}}}>={{Inflation/IN/startyear}} and {{{year|0}}}<{{inflation/year|IN}}|inflation|{{{to|USD}}}}}{{{fmt|}}}<!--
 
         -->|{{{1}}}|5|{{{3|}}}|{{{to|USD}}}|year={{{year}}}<!--
 
         -->|{{{1}}}|5|{{{3|}}}|{{{to|USD}}}|year={{{year}}}<!--
Line 42: Line 42:
 
     |c={{formatnum:{{{1}}}}} {{#switch:{{{lk}}}|on|c=[[crore]]|crore}}</span> <!--
 
     |c={{formatnum:{{{1}}}}} {{#switch:{{{lk}}}|on|c=[[crore]]|crore}}</span> <!--
 
       -->({{#switch: {{{fmt|}}}
 
       -->({{#switch: {{{fmt|}}}
       | historical = {{INRConvert/HistoricalRate/Formatted|{{{1}}}|{{{to}}}|{{{year}}}}}
+
       | historical = {{INRConvert/HistoricalRate/Formatted|{{#expr:{{{1}}}*1E3}}|{{{to}}}|{{{year}}}}}
 
       | #default = {{INRConvert/sandbox/{{#ifexpr:{{{year|0}}}>={{Inflation/IN/startyear}} and {{{year|0}}}<{{inflation/year|IN}}|inflation|{{{to|USD}}}}}{{{fmt|}}}<!--
 
       | #default = {{INRConvert/sandbox/{{#ifexpr:{{{year|0}}}>={{Inflation/IN/startyear}} and {{{year|0}}}<{{inflation/year|IN}}|inflation|{{{to|USD}}}}}{{{fmt|}}}<!--
 
         -->|{{{1}}}|7|{{{3|}}}|{{{to|USD}}}|year={{{year}}}<!--
 
         -->|{{{1}}}|7|{{{3|}}}|{{{to|USD}}}|year={{{year}}}<!--
Line 48: Line 48:
 
     |lc={{formatnum:{{{1}}}}} {{#switch:{{{lk}}}|on|l|lc=[[lakh]]|lakh}} {{#switch:{{{lk}}}|on|c|lc=[[crore]]|crore}}</span> <!--
 
     |lc={{formatnum:{{{1}}}}} {{#switch:{{{lk}}}|on|l|lc=[[lakh]]|lakh}} {{#switch:{{{lk}}}|on|c|lc=[[crore]]|crore}}</span> <!--
 
       -->({{#switch: {{{fmt|}}}
 
       -->({{#switch: {{{fmt|}}}
       | historical = {{INRConvert/HistoricalRate/Formatted|{{{1}}}|{{{to}}}|{{{year}}}}}
+
       | historical = {{INRConvert/HistoricalRate/Formatted|{{#expr:{{{1}}}*1E12}}|{{{to}}}|{{{year}}}}}
 
       | #default = {{INRConvert/sandbox/{{#ifexpr:{{{year|0}}}>={{Inflation/IN/startyear}} and {{{year|0}}}<{{inflation/year|IN}}|inflation|{{{to|USD}}}}}{{{fmt|}}}<!--
 
       | #default = {{INRConvert/sandbox/{{#ifexpr:{{{year|0}}}>={{Inflation/IN/startyear}} and {{{year|0}}}<{{inflation/year|IN}}|inflation|{{{to|USD}}}}}{{{fmt|}}}<!--
 
         -->|{{{1}}}|12|{{{3|}}}|{{{to|USD}}}|year={{{year}}}<!--
 
         -->|{{{1}}}|12|{{{3|}}}|{{{to|USD}}}|year={{{year}}}<!--

Revision as of 11:13, 10 November 2019