Template:ItemCost/doc

From HandWiki
< Template:ItemCost
Revision as of 14:36, 30 November 2022 by MainEditor (talk | contribs) (1 revision imported)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)


Purpose

The purpose of this template is to abstract and format item costs.

Currently configured so no adjustments or conversions are applied.

Usage

{{ItemCost|country|value|currency_units|year=|origin=|r=|force=|lk=|exact=|qty=|tot=|suffix=|est=|ref=|mode=|convert=}}

Parameters

A description of the template's parameters are listed below.

Field name Usage Example Description
country_code mandatory GBR The country code of the currency, see the examples to find out what is currently supported. EUR for Euro (inflation adjustment would require using a country-specific code).
value mandatory 10000.01 The value, in the country_code currency, that needs to be converted. The template will not accept pre-formatted values (i.e. 1,234).
currency_units optional m Used to represent smaller or larger numbers. Available options are as follows.
  • ct – to represent cent(s)
  • p – to represent penny (pence)
  • pa – to represent paisa (paise) (generalized to mean cents)
  • po – to represent poysha (generalized to mean cents)
  • ba – to represent baisa(s) (generalized to mean 1/1000)
  • k – to represent thousand(s)
  • m – to represent million(s)
  • b – to represent short scale billion(s)
  • t – to represent short scale trillion(s)
  • l – to represent lakh(s)
  • c – to represent crore(s)
  • lc – to represent lakh crore(s)
  • Brackets in the sense may be singular (or) plural.

The Indian units can be applied to any currency.

lk optional lk=on This parameter gives you the option of internally linking currency names (paise, which is generalized here to mean cents in the source currency) and/or number names (billion, trillion, lakh, crore). By default, the parameter is set to "off" (i.e. it is set not to link). Available options are as follows.
  • on – to link all units
  • source – to link the source value
  • original – to link the values in the original currency
  • inflated – to link the inflated value in the original currency
  • result – to link the inflated and converted vales
  • converted – to link the converted value
  • source-converted – to link the source and converted values
year optional year=2002 This parameter allows entering values from previous years. The year will be displayed and historic values will be inflated to the latest year available in {{Inflation}} if index is also provided then converted by {{ToUSD}}. If no index name is present, the conversion will be attempted for the year indicated (but see force). If year is not provided, just a conversion will be performed at the most current rate available.
origin optional origin=ESP The country code of the shipyard's location, by default that corresponding to the currency is assumed (no country assumed for Euro).
r optional r=3 Sets the digits to which the results must be rounded. A negative value indicates rounding to an upper significant digit, and a positive value indicates a fractional digit including trailing zeros. Defaults to 2.
force optional force=yes This parameter allows to force a conversion at the most current rate available when data is lacking for the provided year when its value is yes.
exact optional exact=source This provides some control over formatting. source requests to display the input value normally (in American fashion) after applying the units. on does this for both the input and result values. Otherwise all values will be displayed as per {{Format price}}.
qty optional qty=first This allows adding a phrase that indicates to how many or which units the cost applies to.
tot optional tot=yes yes indicates that the cost includes technology transfer.
suffix optional suffix=and training facilities This allows appending an arbitrary wikitext to the output.
est optional est=yes yes indicates that the cost is estimated.
ref optional ref=<ref>some wikitext ref</ref> This allows displaying one or more references. Each one must consist of a ref wikitext element. The placement of the references is normalized (currently after the year, but this might be changed in the future).
mode optional mode=historical This parameter allows to disable adjustment even if the template is configured to enable it.
convert optional convert=no This parameter controls the currency conversion. Setting it to blank or omitting it results in the default mode. Setting it to no disables it.

Examples

ItemCost syntax Results
{{ItemCost|ARG|3600000|mode=historical|convert=no}} ARS FXConvert/Wordify error: cannot parse value "Template:FXConvert/Scale"
{{ItemCost|ARG|3600000|year=1992|mode=historical|convert=no}} ARS FXConvert/Wordify error: cannot parse value "Template:FXConvert/Scale" (1992)
{{ItemCost|ARG|3600000|year=1991|mode=historical|convert=no}} Year not supported
{{ItemCost|AUS|3.6|m|mode=historical|convert=no}} A$FXConvert/Wordify error: cannot parse value "Template:FXConvert/Scale"
{{ItemCost|AUS|3600000|mode=historical|convert=no}} A$FXConvert/Wordify error: cannot parse value "Template:FXConvert/Scale"
{{ItemCost|AUS|3654000|year=2002|mode=historical|convert=no}} A$FXConvert/Wordify error: cannot parse value "Template:FXConvert/Scale" (2002)
{{ItemCost|AUS|3654000|year=2002|mode=historical}} A$FXConvert/Wordify error: cannot parse value "Template:FXConvert/Scale" (2002) (US$FXConvert/Wordify error: cannot parse value "Template:To USD/data/2002")
{{ItemCost|AUS|3654000|year=2002}} A$FXConvert/Wordify error: cannot parse value "Template:FXConvert/Scale" (2002) Template:FXConvert/Equivalent[1]
{{ItemCost|AUS|3654000|year=2002|convert=no}} A$FXConvert/Wordify error: cannot parse value "Template:FXConvert/Scale" (2002) Template:FXConvert/Equivalent[1]
{{ItemCost|AUS|3654000|year=2002|origin=AUS|mode=historical|convert=no}} A$FXConvert/Wordify error: cannot parse value "Template:FXConvert/Scale" (2002)
{{ItemCost|AUS|3654000|year=2002|origin=ESP|mode=historical|convert=no}} A$FXConvert/Wordify error: cannot parse value "Template:FXConvert/Scale" (2002)
{{ItemCost|AUS|3654000|year=2002|r=3|ref=<ref name="qv">something1</ref>|mode=historical|convert=no}} A$FXConvert/Wordify error: cannot parse value "Template:FXConvert/Scale" (2002)[2]
{{ItemCost|AUS|3.6|m|qty=|mode=historical|convert=no}} A$FXConvert/Wordify error: cannot parse value "Template:FXConvert/Scale"
{{ItemCost|AUS|3.6|m|qty=first|mode=historical|convert=no}} A$FXConvert/Wordify error: cannot parse value "Template:FXConvert/Scale" for the first unit
{{ItemCost|AUS|3.6|m|qty=1|mode=historical|convert=no}} A$FXConvert/Wordify error: cannot parse value "Template:FXConvert/Scale" per unit
{{ItemCost|AUS|3.6|m|qty=8|mode=historical|convert=no}} A$FXConvert/Wordify error: cannot parse value "Template:FXConvert/Scale" for 8 units
{{ItemCost|AUS|3650000|year=2002|exact=on|ref=<ref name="qv">something1</ref><ref name="s">something2</ref>|mode=historical|convert=no}} A$Template:FXConvert/Formatnum (2002)[2][3]
{{ItemCost|AUS|3650000|year=2002|exact=on|qty=8|suffix= + [[Technology transfer|ToT]]|ref=<ref name="qv">something1</ref><ref name="s">something2</ref>|mode=historical|convert=no}} A$Template:FXConvert/Formatnum (2002)[2][3] for 8 units + ToT
{{ItemCost|AUS|3650000|year=2002|exact=on|qty=8|tot=yes|ref=<ref name="qv">something1</ref><ref name="s">something2</ref>|mode=historical|convert=no}} A$Template:FXConvert/Formatnum (2002)[2][3] for 8 units + ToT
{{ItemCost|AUS|3650000|year=2002|exact=on|qty=8|tot=yes|suffix=and training facilities|ref=<ref name="qv">something1</ref><ref name="s">something2</ref>|mode=historical|convert=no}} A$Template:FXConvert/Formatnum (2002)[2][3] for 8 units + ToT and training facilities
{{ItemCost|AUS|3650000|year=2002|exact=on|qty=8|tot=yes|est=yes|suffix=and training facilities|ref=<ref name="qv">something1</ref><ref name="s">something2</ref>|mode=historical|convert=no}} A$Template:FXConvert/Formatnum (2002)[2][3] for 8 units + ToT and training facilities (est.)
{{ItemCost|AUS|3650000|year=2002|exact=on|qty=8|tot=yes|est=yes|suffix=and training facilities|ref=<ref name="qv">something1</ref><ref name="s">something2</ref>|mode=historical}} A$Template:FXConvert/Formatnum (2002)[2][3] (US$Template:FXConvert/Formatnum) for 8 units + ToT and training facilities (est.)
{{ItemCost|AUS|3650000|year=2002|exact=on|qty=8|tot=yes|est=yes|suffix=and training facilities|ref=<ref name="qv">something1</ref><ref name="s">something2</ref>}} A$Template:FXConvert/Formatnum (2002)[2][3] Template:FXConvert/Equivalent[1] for 8 units + ToT and training facilities (est.)
{{ItemCost|AUS|3650000|year=2002|exact=on|qty=8|tot=yes|est=yes|suffix=and training facilities|ref=<ref name="qv">something1</ref><ref name="s">something2</ref>|convert=no}} A$Template:FXConvert/Formatnum (2002)[2][3] Template:FXConvert/Equivalent[1] for 8 units + ToT and training facilities (est.)
{{ItemCost|AUS|3650000|year=2002|qty=8|tot=yes|est=yes|suffix=and training facilities|ref=<ref name="qv">something1</ref><ref name="s">something2</ref>|mode=historical|convert=no}} A$FXConvert/Wordify error: cannot parse value "Template:FXConvert/Scale" (2002)[2][3] for 8 units + ToT and training facilities (est.)
{{ItemCost|AUS|3650000|year=2002|qty=8|tot=yes|est=yes|suffix=and training facilities|ref=<ref name="qv">something1</ref><ref name="s">something2</ref>|mode=historical}} A$FXConvert/Wordify error: cannot parse value "Template:FXConvert/Scale" (2002)[2][3] (US$FXConvert/Wordify error: cannot parse value "Template:To USD/data/2002") for 8 units + ToT and training facilities (est.)
{{ItemCost|AUS|3650000|year=2002|qty=8|tot=yes|est=yes|suffix=and training facilities|ref=<ref name="qv">something1</ref><ref name="s">something2</ref>}} A$FXConvert/Wordify error: cannot parse value "Template:FXConvert/Scale" (2002)[2][3] Template:FXConvert/Equivalent[1] for 8 units + ToT and training facilities (est.)
{{ItemCost|AUS|3650000|year=2002|qty=8|tot=yes|est=yes|suffix=and training facilities|ref=<ref name="qv">something1</ref><ref name="s">something2</ref>|convert=no}} A$FXConvert/Wordify error: cannot parse value "Template:FXConvert/Scale" (2002)[2][3] Template:FXConvert/Equivalent[1] for 8 units + ToT and training facilities (est.)
{{ItemCost|BEL|3600000|mode=historical|convert=no}} FXConvert/Wordify error: cannot parse value "Template:FXConvert/Scale"
{{ItemCost|BEL|3600000|year=1999|mode=historical|convert=no}} FXConvert/Wordify error: cannot parse value "Template:FXConvert/Scale" (1999)
{{ItemCost|BEL|3600000|year=1998|mode=historical|convert=no}} BEF FXConvert/Wordify error: cannot parse value "Template:FXConvert/Scale" (1998)
{{ItemCost|BEL|3600000|year=1947|mode=historical|convert=no}} BEF FXConvert/Wordify error: cannot parse value "Template:FXConvert/Scale" (1947)
{{ItemCost|BEL|3600000|year=1946|mode=historical|convert=no}} Year not supported
{{ItemCost|BRA|3600000|mode=historical|convert=no}} R$FXConvert/Wordify error: cannot parse value "Template:FXConvert/Scale"
{{ItemCost|BRA|3600000|year=1995|mode=historical|convert=no}} R$FXConvert/Wordify error: cannot parse value "Template:FXConvert/Scale" (1995)
{{ItemCost|BRA|3600000|year=1994|mode=historical|convert=no}} Year not supported
{{ItemCost|CAN|3600000|mode=historical|convert=no}} CA$FXConvert/Wordify error: cannot parse value "Template:FXConvert/Scale"
{{ItemCost|CAN|3600000|year=1962|mode=historical|convert=no}} CA$FXConvert/Wordify error: cannot parse value "Template:FXConvert/Scale" (1962)
{{ItemCost|CHN|3600000|mode=historical|convert=no}} CN¥FXConvert/Wordify error: cannot parse value "Template:FXConvert/Scale"
{{ItemCost|CHN|3600000|year=1949|mode=historical|convert=no}} CN¥FXConvert/Wordify error: cannot parse value "Template:FXConvert/Scale" (1949)
{{ItemCost|CHN|3600000|year=1948|mode=historical|convert=no}} Year not supported
{{ItemCost|GER|3600000|mode=historical|convert=no}} Use DEU
{{ItemCost|GER|3600000|year=1999|mode=historical|convert=no}} Use DEU
{{ItemCost|GER|3600000|year=1998|mode=historical|convert=no}} Use DEU
{{ItemCost|GER|3600000|year=1949|mode=historical|convert=no}} Use DEU
{{ItemCost|GER|3600000|year=1948|mode=historical|convert=no}} Use DEU
{{ItemCost|DEU|3600000|mode=historical|convert=no}} FXConvert/Wordify error: cannot parse value "Template:FXConvert/Scale"
{{ItemCost|DEU|3600000|year=1999|mode=historical|convert=no}} FXConvert/Wordify error: cannot parse value "Template:FXConvert/Scale" (1999)
{{ItemCost|DEU|3600000|year=1998|mode=historical|convert=no}} DM FXConvert/Wordify error: cannot parse value "Template:FXConvert/Scale" (1998)
{{ItemCost|DEU|3600000|year=1949|mode=historical|convert=no}} DM FXConvert/Wordify error: cannot parse value "Template:FXConvert/Scale" (1949)
{{ItemCost|DEU|3600000|year=1948|mode=historical|convert=no}} Year not supported
{{ItemCost|DNK|3600000|mode=historical|convert=no}} DKK FXConvert/Wordify error: cannot parse value "Template:FXConvert/Scale"
{{ItemCost|DNK|3600000|year=1874|mode=historical|convert=no}} DKK FXConvert/Wordify error: cannot parse value "Template:FXConvert/Scale" (1874)
{{ItemCost|DNK|3600000|year=1873|mode=historical|convert=no}} Year not supported
{{ItemCost|ESP|3600000|mode=historical|convert=no}} FXConvert/Wordify error: cannot parse value "Template:FXConvert/Scale"
{{ItemCost|ESP|3600000|year=1999|mode=historical|convert=no}} FXConvert/Wordify error: cannot parse value "Template:FXConvert/Scale" (1999)
{{ItemCost|ESP|3600000|year=1998|mode=historical|convert=no}}  FXConvert/Wordify error: cannot parse value "Template:FXConvert/Scale" (1998)
{{ItemCost|ESP|3600000|year=1869|mode=historical|convert=no}}  FXConvert/Wordify error: cannot parse value "Template:FXConvert/Scale" (1869)
{{ItemCost|ESP|3600000|year=1868|mode=historical|convert=no}} Year not supported
{{ItemCost|EUR|3600000|mode=historical|convert=no}} FXConvert/Wordify error: cannot parse value "Template:FXConvert/Scale"
{{ItemCost|EUR|3600000|year=1999|mode=historical|convert=no}} FXConvert/Wordify error: cannot parse value "Template:FXConvert/Scale" (1999)
{{ItemCost|FIN|3600000|mode=historical|convert=no}} FXConvert/Wordify error: cannot parse value "Template:FXConvert/Scale"
{{ItemCost|FIN|3600000|year=1999|mode=historical|convert=no}} FXConvert/Wordify error: cannot parse value "Template:FXConvert/Scale" (1999)
{{ItemCost|FIN|3600000|year=1998|mode=historical|convert=no}} FIM FXConvert/Wordify error: cannot parse value "Template:FXConvert/Scale" (1998)
{{ItemCost|FIN|3600000|year=1861|mode=historical|convert=no}} FIM FXConvert/Wordify error: cannot parse value "Template:FXConvert/Scale" (1861)
{{ItemCost|FIN|3600000|year=1860|mode=historical|convert=no}} Year not supported
{{ItemCost|FRA|3600000|mode=historical|convert=no}} FXConvert/Wordify error: cannot parse value "Template:FXConvert/Scale"
{{ItemCost|FRA|3600000|year=1999|mode=historical|convert=no}} FXConvert/Wordify error: cannot parse value "Template:FXConvert/Scale" (1999)
{{ItemCost|FRA|3600000|year=1998|mode=historical|convert=no}} FRF FXConvert/Wordify error: cannot parse value "Template:FXConvert/Scale" (1998)
{{ItemCost|FRA|3600000|year=1960|mode=historical|convert=no}} FRF FXConvert/Wordify error: cannot parse value "Template:FXConvert/Scale" (1960)
{{ItemCost|FRA|3600000|year=1959|mode=historical|convert=no}} FF FXConvert/Wordify error: cannot parse value "Template:FXConvert/Scale" (1959)
{{ItemCost|FRA|3600000|year=1796|mode=historical|convert=no}} FF FXConvert/Wordify error: cannot parse value "Template:FXConvert/Scale" (1796)
{{ItemCost|FRA|3600000|year=1795|mode=historical|convert=no}} Year not supported
{{ItemCost|GBR|3600000|mode=historical|convert=no}} yes|yes|GB|}}£FXConvert/Wordify error: cannot parse value "Template:FXConvert/Scale"
{{ItemCost|GBR|3600000|year=1962|mode=historical|convert=no}} yes|yes|GB|}}£FXConvert/Wordify error: cannot parse value "Template:FXConvert/Scale" (1962)
{{ItemCost|GRC|3600000|mode=historical|convert=no}} FXConvert/Wordify error: cannot parse value "Template:FXConvert/Scale"
{{ItemCost|GRC|3600000|year=2001|mode=historical|convert=no}} FXConvert/Wordify error: cannot parse value "Template:FXConvert/Scale" (2001)
{{ItemCost|GRC|3600000|year=2000|mode=historical|convert=no}} FXConvert/Wordify error: cannot parse value "Template:FXConvert/Scale" (2000)
{{ItemCost|GRC|3600000|year=1955|mode=historical|convert=no}} FXConvert/Wordify error: cannot parse value "Template:FXConvert/Scale" (1955)
{{ItemCost|GRC|3600000|year=1954|mode=historical|convert=no}} Year not supported
{{ItemCost|HRV|3600000|mode=historical|convert=no}} HRK FXConvert/Wordify error: cannot parse value "Template:FXConvert/Scale"
{{ItemCost|HRV|3600000|year=1995|mode=historical|convert=no}} HRK FXConvert/Wordify error: cannot parse value "Template:FXConvert/Scale" (1995)
{{ItemCost|HRV|3600000|year=1994|mode=historical|convert=no}} Year not supported
{{ItemCost|IRL|3600000|mode=historical|convert=no}} FXConvert/Wordify error: cannot parse value "Template:FXConvert/Scale"
{{ItemCost|IRL|3600000|year=1999|mode=historical|convert=no}} FXConvert/Wordify error: cannot parse value "Template:FXConvert/Scale" (1999)
{{ItemCost|IRL|3600000|year=1998|mode=historical|convert=no}} IR£FXConvert/Wordify error: cannot parse value "Template:FXConvert/Scale" (1998)
{{ItemCost|IRL|3600000|year=1939|mode=historical|convert=no}} IR£FXConvert/Wordify error: cannot parse value "Template:FXConvert/Scale" (1939)
{{ItemCost|IRL|3600000|year=1038|mode=historical|convert=no}} Year not supported
{{ItemCost|ITA|3600000|mode=historical|convert=no}} FXConvert/Wordify error: cannot parse value "Template:FXConvert/Scale"
{{ItemCost|ITA|3600000|year=1999|mode=historical|convert=no}} FXConvert/Wordify error: cannot parse value "Template:FXConvert/Scale" (1999)
{{ItemCost|ITA|3600000|year=1998|mode=historical|convert=no}} Lit. FXConvert/Wordify error: cannot parse value "Template:FXConvert/Scale" (1998)
{{ItemCost|ITA|3600000|year=1863|mode=historical|convert=no}} Lit. FXConvert/Wordify error: cannot parse value "Template:FXConvert/Scale" (1863)
{{ItemCost|ITA|3600000|year=1862|mode=historical|convert=no}} Year not supported
{{ItemCost|JPN|3600000|mode=historical|convert=no}} ¥FXConvert/Wordify error: cannot parse value "Template:FXConvert/Scale"
{{ItemCost|JPN|3600000|year=1962|mode=historical|convert=no}} ¥FXConvert/Wordify error: cannot parse value "Template:FXConvert/Scale" (1962)
{{ItemCost|KOR|3600000|mode=historical|convert=no}} FXConvert/Wordify error: cannot parse value "Template:FXConvert/Scale"
{{ItemCost|KOR|3600000|year=1962|mode=historical|convert=no}} FXConvert/Wordify error: cannot parse value "Template:FXConvert/Scale" (1962)
{{ItemCost|LUX|3600000|mode=historical|convert=no}} FXConvert/Wordify error: cannot parse value "Template:FXConvert/Scale"
{{ItemCost|LUX|3600000|year=1999|mode=historical|convert=no}} FXConvert/Wordify error: cannot parse value "Template:FXConvert/Scale" (1999)
{{ItemCost|LUX|3600000|year=1998|mode=historical|convert=no}} LUF FXConvert/Wordify error: cannot parse value "Template:FXConvert/Scale" (1998)
{{ItemCost|LUX|3600000|year=1945|mode=historical|convert=no}} LUF FXConvert/Wordify error: cannot parse value "Template:FXConvert/Scale" (1945)
{{ItemCost|LUX|3600000|year=1944|mode=historical|convert=no}} Year not supported
{{ItemCost|MLT|3600000|mode=historical|convert=no}} FXConvert/Wordify error: cannot parse value "Template:FXConvert/Scale"
{{ItemCost|MLT|3600000|year=2008|mode=historical|convert=no}} FXConvert/Wordify error: cannot parse value "Template:FXConvert/Scale" (2008)
{{ItemCost|MLT|3600000|year=2007|mode=historical|convert=no}} Lm FXConvert/Wordify error: cannot parse value "Template:FXConvert/Scale" (2007)
{{ItemCost|MLT|3600000|year=1973|mode=historical|convert=no}} Lm FXConvert/Wordify error: cannot parse value "Template:FXConvert/Scale" (1973)
{{ItemCost|MLT|3600000|year=1972|mode=historical|convert=no}} Year not supported
{{ItemCost|MYS|3600000|mode=historical|convert=no}} RM FXConvert/Wordify error: cannot parse value "Template:FXConvert/Scale"
{{ItemCost|MYS|3600000|year=1976|mode=historical|convert=no}} RM FXConvert/Wordify error: cannot parse value "Template:FXConvert/Scale" (1976)
{{ItemCost|MYS|3600000|year=1975|mode=historical|convert=no}} Year not supported
{{ItemCost|NLD|3600000|mode=historical|convert=no}} FXConvert/Wordify error: cannot parse value "Template:FXConvert/Scale"
{{ItemCost|NLD|3600000|year=1999|mode=historical|convert=no}} FXConvert/Wordify error: cannot parse value "Template:FXConvert/Scale" (1999)
{{ItemCost|NLD|3600000|year=1998|mode=historical|convert=no}} ƒFXConvert/Wordify error: cannot parse value "Template:FXConvert/Scale" (1998)
{{ItemCost|NLD|3600000|year=1815|mode=historical|convert=no}} ƒFXConvert/Wordify error: cannot parse value "Template:FXConvert/Scale" (1815)
{{ItemCost|NLD|3600000|year=1814|mode=historical|convert=no}} Year not supported
{{ItemCost|NOR|3600000|mode=historical|convert=no}} NOK FXConvert/Wordify error: cannot parse value "Template:FXConvert/Scale"
{{ItemCost|NOR|3600000|year=1876|mode=historical|convert=no}} NOK FXConvert/Wordify error: cannot parse value "Template:FXConvert/Scale" (1876)
{{ItemCost|NOR|3600000|year=1875|mode=historical|convert=no}} Year not supported
{{ItemCost|NZL|3600000|mode=historical|convert=no}} NZ$FXConvert/Wordify error: cannot parse value "Template:FXConvert/Scale"
{{ItemCost|NZL|3600000|year=1968|mode=historical|convert=no}} NZ$FXConvert/Wordify error: cannot parse value "Template:FXConvert/Scale" (1968)
{{ItemCost|NZL|3600000|year=1967|mode=historical|convert=no}} Year not supported
{{ItemCost|PHL|3600000|mode=historical|convert=no}} FXConvert/Wordify error: cannot parse value "Template:FXConvert/Scale"
{{ItemCost|PHL|3600000|year=1946|mode=historical|convert=no}} FXConvert/Wordify error: cannot parse value "Template:FXConvert/Scale" (1946)
{{ItemCost|PHL|3600000|year=1945|mode=historical|convert=no}} Year not supported
{{ItemCost|POL|3600000|mode=historical|convert=no}} PLN FXConvert/Wordify error: cannot parse value "Template:FXConvert/Scale"
{{ItemCost|POL|3600000|year=1995|mode=historical|convert=no}} PLN FXConvert/Wordify error: cannot parse value "Template:FXConvert/Scale" (1995)
{{ItemCost|POL|3600000|year=1994|mode=historical|convert=no}} PLZ FXConvert/Wordify error: cannot parse value "Template:FXConvert/Scale" (1994)
{{ItemCost|POL|3600000|year=1951|mode=historical|convert=no}} PLZ FXConvert/Wordify error: cannot parse value "Template:FXConvert/Scale" (1951)
{{ItemCost|POL|3600000|year=1950|mode=historical|convert=no}} Year not supported
{{ItemCost|PRT|3600000|mode=historical|convert=no}} FXConvert/Wordify error: cannot parse value "Template:FXConvert/Scale"
{{ItemCost|PRT|3600000|year=1999|mode=historical|convert=no}} FXConvert/Wordify error: cannot parse value "Template:FXConvert/Scale" (1999)
{{ItemCost|PRT|3600000|year=1998|mode=historical|convert=no}} PTE FXConvert/Wordify error: cannot parse value "Template:FXConvert/Scale" (1998)
{{ItemCost|PRT|3600000|year=1912|mode=historical|convert=no}} PTE FXConvert/Wordify error: cannot parse value "Template:FXConvert/Scale" (1912)
{{ItemCost|PRT|3600000|year=1911|mode=historical|convert=no}} Year not supported
{{ItemCost|ROU|3600000|mode=historical|convert=no}} RON FXConvert/Wordify error: cannot parse value "Template:FXConvert/Scale"
{{ItemCost|ROU|3600000|year=2006|mode=historical|convert=no}} RON FXConvert/Wordify error: cannot parse value "Template:FXConvert/Scale" (2006)
{{ItemCost|ROU|3600000|year=2005|mode=historical|convert=no}} Year not supported
{{ItemCost|ROU|3600000|year=2004|mode=historical|convert=no}} ROL FXConvert/Wordify error: cannot parse value "Template:FXConvert/Scale" (2004)
{{ItemCost|ROU|3600000|year=1953|mode=historical|convert=no}} ROL FXConvert/Wordify error: cannot parse value "Template:FXConvert/Scale" (1953)
{{ItemCost|ROU|3600000|year=1952|mode=historical|convert=no}} Year not supported
{{ItemCost|ROU|3600000|year=1951|mode=historical|convert=no}} Year not supported
{{ItemCost|SWE|3600000|mode=historical|convert=no}} SEK FXConvert/Wordify error: cannot parse value "Template:FXConvert/Scale"
{{ItemCost|SWE|3600000|year=1874|mode=historical|convert=no}} SEK FXConvert/Wordify error: cannot parse value "Template:FXConvert/Scale" (1874)
{{ItemCost|SWE|3600000|year=1873|mode=historical|convert=no}} Year not supported
{{ItemCost|USA|3600|mode=historical|convert=no}} US$FXConvert/Wordify error: cannot parse value "Template:FXConvert/Scale"
{{ItemCost|USA|3600|year=1790|mode=historical|convert=no}} US$FXConvert/Wordify error: cannot parse value "Template:FXConvert/Scale" (1790)
{{ItemCost|ZAF|3600000|mode=historical|convert=no}} Template:ZARFXConvert/Wordify error: cannot parse value "Template:FXConvert/Scale"
{{ItemCost|ZAF|3600000|year=1962|mode=historical|convert=no}} Template:ZARFXConvert/Wordify error: cannot parse value "Template:FXConvert/Scale" (1962)
  1. 1.0 1.1 1.2 1.3 1.4 1.5 Australian Consumer Price Inflation figures follow the Long Term Linked Series provided in Australian Bureau of Statistics (2011) 6461.0 – Consumer Price Index: Concepts, Sources and Methods, 2011 as explained at §§3.10–3.11; this series comprises "from 1901 to 1914, the A Series Retail Price Index; from 1914 to 1946–47, the C Series Retail Price Index; from 1946–47 to 1948–49, a combination of the C Series Index, excluding rent, and the housing group of the CPI; and from 1948–49 onwards, the CPI." (3.10). Retrieved May 4, 2015
  2. 2.00 2.01 2.02 2.03 2.04 2.05 2.06 2.07 2.08 2.09 2.10 2.11 2.12 something1
  3. 3.00 3.01 3.02 3.03 3.04 3.05 3.06 3.07 3.08 3.09 3.10 3.11 something2

See also

  • {{FXConvert}}: Inflates and converts a given currency to US dollars. It is used by {{ItemCost}}.

TemplateData

This is the TemplateData for this template used by TemplateWizard, VisualEditor and other tools. Click here to see a monthly parameter usage report for this template in articles based on this TemplateData.

TemplateData for ItemCost

Template presents the cost of a ship.

Template parameters

ParameterDescriptionTypeStatus
Currency country code1

ISO 3166-1 alpha-3 country code of the currency, see the examples to find out what is currently supported. EUR for Euro (inflation adjustment would require using a country-specific code).

Example
GBR
Linerequired
Value2

The value, in the source, that needs to be converted. The template will not accept pre-formatted values (i.e. 1,234).

Example
500000000
Numberrequired
Currency units3

Use this to represent larger numbers such as crores, billions et al.

Example
c, lc, b, m, k, cr, p, pa, po, ba
Linesuggested
Linkinglk

Gives option to whether link currency names (paise, etc.) or number names (crores, lakhs, billions, trillions)

Example
on, off, source, original, inflated, result, converted, source-converted
Linesuggested
Yearyear

This parameter allows for inflation. Historic values will be inflated to the most current values available then converted.

Example
2015
Numbersuggested
Originorigin

ISO 3166-1 alpha-3 country code of the shipyard's location, by default that corresponding to the currency is assumed (no country assumed for Euro).

Example
ESP
Lineoptional
Rounding digitsr

Used to round significant digits. A value of "0" will drop paise or cent values from the converted number. By default the conversion will be rounded to two significant figures.

Example
0
Numberoptional
Forceforce

This parameter allows to force a conversion at the most current rate available when data is lacking for the provided year when its value is "yes".

Example
yes
Lineoptional
Exactexact

This provides some control over formatting. "source" requests to display the input value normally (in American fashion) after applying the units. "on" does this for both the input and result values. Otherwise all values will be displayed as per Format price.

Example
source, on
Lineoptional
Quantityqty

This allows adding a phrase that indicates to how many or which units the cost applies to.

Example
first, 1, 4
Lineoptional
Technology transfertot

yes indicates that the cost includes technology transfer

Example
yes
Lineoptional
Suffixsuffix

This allows appending an arbitrary wikitext to the output.

Example
and training facilities
Lineoptional
Estimatedest

yes indicates that the cost is estimated

Example
yes
Lineoptional
Referencesref

This allows displaying one or more references. Each one must consist of a ref wikitext element. The placement of the references is normalized (currently after the year, but this might be changed in the future).

Example
<ref>some wikitext ref</ref>
Contentsuggested
Modemode

This parameter allows to disable the adjustment even if the template is enabling it.

Default
(blank)
Example
historical
Lineoptional
Convertconvert

This parameter controls the currency conversion. Setting it to blank or omitting it results in the default mode. Setting it to <code>no</code> disables it.

Default
(blank)
Example
no
Lineoptional