Templat:Inflasi: Perbedaan antara revisi

Konten dihapus Konten ditambahkan
NikolasKHF (bicara | kontrib)
kTidak ada ringkasan suntingan
 
(8 revisi perantara oleh 5 pengguna tidak ditampilkan)
Baris 10:
|{{#if:{{{start_year|{{{3|}}}}}}||{{para|start_year}} (parameter 3)}}
}} must be specified.</span><!--
-->{{#if:{{{nocat|}}}||{{main other|[[KategoriCategory:Halaman-halamanPages denganwith kesalahanerrors padain templatinflation inflasitemplate]]}}}}<!--
 
-->|{{<!--
Baris 17:
not(
{{#ifexist:Template:Inflation/{{{index|{{{1}}}}}}|1|0}}
and {{Isnumeric|{{Inflation-/year|{{{index|{{{1}}}}}}}}|boolean=true}}
)
|<span class="error">Error when using {{tl|Inflation}}:<!--
--> {{para|index|'''{{{index|{{{1}}}}}}'''}} (parameter 1) not a recognized index.</span><!--
-->{{#if:{{{nocat|}}}||{{main other|[[KategoriCategory:Halaman-halamanPages denganwith kesalahanerrors padain templatinflation inflasitemplate]]}}}}<!--
 
-->|{{<!--
Baris 40:
|{{#if: {{{r|}}} | {{Ifnumber|{{formatnum:{{{r}}}|R}}||{{para|r|'''{{{r}}}'''}}}} }}
}}.</span><!--
-->{{#if:{{{nocat|}}}||{{main other|[[KategoriCategory:Halaman-halamanPages denganwith kesalahanerrors padain templatinflation inflasitemplate]]}}}}<!--
 
-->|{{<!--
Baris 48:
( {{{start_year|{{{3}}}}}} >= {{Inflation/{{{index|{{{1}}}}}}/startyear}} )
and(
( {{{start_year|{{{3}}}}}} <= {{{end_year|{{{4|{{Inflation-/year|{{{index|{{{1}}}}}}}}}}}}}} )
or ( {{{start_year|{{{3}}}}}} = {{{end_year|{{{4|{{CURRENTYEAR}}}}}}}} )
)
and ( {{{end_year|{{{4|{{Inflation-/year|{{{index|{{{1}}}}}}}}}}}}}} <= {{Inflation-/year|{{{index|{{{1}}}}}}}} )
)
|<span class="error">Error when using {{tl|Inflation}}:<!--
Baris 64:
...and not equal to {{CURRENTYEAR}} if [parameter 4/end_year] is unspecified -->
#ifexpr:
( {{{start_year|{{{3}}}}}} > {{{end_year|{{{4|{{Inflation-/year|{{{index|{{{1}}}}}}}}}}}}}} )
and ( {{{start_year|{{{3}}}}}} != {{{end_year|{{{4|{{CURRENTYEAR}}}}}}}} )
|{{para|start_year|'''{{{start_year|{{{3}}}}}}'''}} (parameter 3)<!--
Baris 71:
-->#if:{{{end_year|{{{4|}}}}}}<!--
-->|{{para|end_year|'''{{{end_year|{{{4}}}}}}'''}} (parameter 4)<!--
-->|the latest available year ('''{{Inflation-/year|{{{index|{{{1}}}}}}}}''')<!--
--> in index "'''{{{index|{{{1}}}}}}'''"<!--
-->}}<!--
-->}}
|{{<!-- 4c: [parameter 4/end_year] greater than [parameter 1/index] highest year -->
#ifexpr: {{{end_year|{{{4|{{Inflation-/year|{{{index|{{{1}}}}}}}}}}}}}} > {{Inflation-/year|{{{index|{{{1}}}}}}}}
|{{para|end_year|'''{{{end_year|{{{4}}}}}}'''}} (parameter 4)<!--
--> is greater than the latest available year ('''{{Inflation-/year|{{{index|{{{1}}}}}}}}''')<!--
--> in index "'''{{{index|{{{1}}}}}}'''"<!--
-->}}<!--
-->}}.</span><!--
-->{{#if:{{{nocat|}}}||{{main other|[[KategoriCategory:Halaman-halamanPages denganwith kesalahanerrors padain templatinflation inflasitemplate]]}}}}<!--
 
-->|<!--
begin template proper
-->{{#ifeq:{{{fmt|raw}}}|eq|equivalentsetara todengan {{{cursign|$}}}}}<!--
-->{{formatnum:
{{
Baris 95:
{{#ifeq:{{{start_year|{{{3}}}}}}|{{CURRENTYEAR}}
| * 1
| {{Inflation/{{{index|{{{1}}}}}}|{{{start_year|{{{3}}}}}}|{{{end_year|{{{4|{{Inflation-/year|{{{index|{{{1}}}}}}}}}}}}}}}}
}}
round {{{r|0}}}
Baris 101:
|<span class="error">Error when using {{tl|Inflation}}:<!--
--> [[NaN]]/calculation error, please notify [[Template talk:Inflation]].</span><!--
-->{{main other|[[KategoriCategory:Halaman-halamanPages denganwith kesalahanerrors padain templatinflation inflasitemplate]]}}<!--
this error indicates template bug, always categorize
-->}}
|{{#ifeq:{{{fmt|raw}}}|raw|R|}}
}}<!--
-->{{#ifeq:{{{fmt|raw}}}|eq|&#32;inpada<!--
--> {{<!--
-->#ifeq:{{{start_year|{{{3}}}}}}|{{CURRENTYEAR}}<!--
-->|{{CURRENTYEAR}}<!--
-->|{{{end_year|{{{4|{{Inflation-/year|{{{index|{{{1}}}}}}}}}}}}}}<!--
-->}}<!--
-->}}<!--
Baris 119:
-->}}<!-- 2
-->}}<!-- 1 --></includeonly><noinclude>
{{Documentation}}
</noinclude>