Difference between revisions of "Template:Inflation/year/doc"

From blackwiki
Jump to navigation Jump to search
imported>JestemPrzeciwANawetZa
imported>Kinu
m (Reverted edits by JestemPrzeciwANawetZa (talk) to last version by 책읽는달팽)
Line 1: Line 1:
 
{{documentation subpage}}
 
{{documentation subpage}}
  
Provides a standard way of indicating the "current" year of the inflated prices calculated by {{tlx|Inflation}}. This template is relied upon by {{tlx|Inflation}}, but can also be called directly in articles needing to specify the currently most recent year for which inflation is calculated for a given index. {{ACDTC}} See {{tlx|Inflation}} for usage examples.
+
Provides a standard way of indicating the "current" year of the inflated prices calculated by {{tlx|Inflation}}. This template is relied upon by {{tlx|Inflation}}, but can also be called directly in articles needing to specify the currently most recent year for which inflation is calculated for a given index. See {{tlx|Inflation}} for usage examples.
  
 
=== Usage ===
 
=== Usage ===

Revision as of 17:11, 21 November 2018

Provides a standard way of indicating the "current" year of the inflated prices calculated by {{Inflation}}. This template is relied upon by {{Inflation}}, but can also be called directly in articles needing to specify the currently most recent year for which inflation is calculated for a given index. See {{Inflation}} for usage examples.

Usage

 {{Inflation/year|index}}

When the required index parameter is provided, the last year given by the inflation data is printed. The index codes are the same as those used by {{Inflation}}:

When no index parameter is provided, or when an invalid index is provided, an error is shown:


Provides a standard way of indicating the "current" year of the inflated prices calculated by the Inflation template. This template is relied upon by the Inflation template, but can also be called directly in articles needing to specify the currently most recent year for which inflation is calculated for a given index. See the Inflation template for usage examples.

Template parameters

This template prefers inline formatting of parameters.

ParameterDescriptionTypeStatus
Indexindex 1

An index code for one of several available inflation indexes. One of AU, AU-road, BD, CA, DE, IN, JP, PH, PK, UK, UK-GDP, US, US-GDP, ZAR.

Example
US
Stringrequired