Template:Inflation
![]() | このテンプレートは | ![]() |
![]() | このテンプレートを{{CURRENTYEAR}} をend_year で|fmt=eq または{{Inflation/year}} を | ![]() |
![]() | このテンプレートの |
![]() | Luaモジュールを |
このテンプレートでは、US
"、イギリスであれば"UK
"とstart_year(
を
end_year(
を
使 い方
{{Inflation|country_code|value|start_year}}
{{Inflation|country_code|value|start_year|end_year}}
{{Inflation|country_code|value|start_year|r=decimals|fmt=c}}
{{Inflation|country_code|value|start_year|r=decimals|fmt=eq}}
{{Inflation|country_code|value|start_year|r=decimals|fmt=eq|cursign=X}}
コード |
start_year の
| |
---|---|---|
オーストラリア[2] | 1901 | |
カナダ[3] | CA | 1688 |
ドイツ[4] | DE | 1882 |
JP | 1946 | |
イギリス[6] | UK | 1209 |
アメリカ[7] | US | 1800 |
ZAR | 1960 |
パラメータの説明
- country_code (パラメータ1)は
国 コードで、AU , CA, DE, JP, UK, USなどです。 - value (パラメータ2)は
計算 したい値 です。桁 区切 りを入 れることが出来 ますが、通貨 記号 を入 れることはできません。 - start_year (パラメータ3) はインフレ
率 の計算 の最初 の年 です。どの年 をえらべるかは国 により異 なります。 - end_year (パラメータ4), は
任意 です。数値 が与 えられている場合 、インフレ率 の計算 の最後 の年 です。どの年 をえらべるかは国 により異 なりますが、start_yearより大 きな値 で、今年 より前 である必要 があります。ここに値 を入 れない場合 は、データテーブルにある最新 年 のデータをもちいます。 - r=
小数 'で、小数点 以下 何 桁 まで表示 するかを与 えます。何 も値 がないか、0が与 えられた時 は小数点 以下 は四捨五入 されます。 - fmt=c を
与 えると返 される値 に桁 区切 りが入 ります。 - fmt=eq を
与 えると、「と同等 」の言葉 が入 ります。 - cursign=Xで
通貨 記号 を与 えます。デフォルトは$です。
例
{{Inflation|DE|100|2000}}
→ 117{{Inflation|US|595|1982}}
→ 1879{{Inflation|US|595|1982|fmt=eq}}
→ 2023年 時点 の$1,879と同等 {{Inflation|US|800|1942|fmt=eq|r=-3}}
→ 2023年 時点 の$15,000と同等 {{Inflation|US|100|2010|2012|fmt=eq|r=2}}
→ 2012年 時点 の$105.28と同等 US $595 ({{Inflation|US|595|1982|fmt=eq}})
→ US $595 (2023年 時点 の$1,879と同等 )US $595 ({{Inflation|US|595|1982|fmt=eq|cursign=[[United States dollar|US$]]}})
→ US $595 (2023年 時点 のUS$1,879と同等 )$21 million (equivalent to ${{Inflation|US|21|2005|r=2}} million in {{Inflation/year|US}})
→ $21 million (equivalent to $32.76 million in 2023){{Inflation|UK|1|1323|fmt=eq}}
→ 2023年 時点 の$831と同等 {{Inflation|UK|1|1323|fmt=eq|cursign=£}}
→ 2023年 時点 の£831と同等 {{Inflation|
→ 2024AU |100|2024|fmt=eq}}年 時点 の$100と同等
エラーメッセージを
$100 (${{Inflation|US|595|1982|fmt=c}} today)
→ $595 ($1,879 today)$100 (${{Inflation|US|595|1982|fmt=c}} in {{CURRENTYEAR}})
→ $100 ($1,879 in 2024)$100 (${{Inflation|US|595|1982|fmt=c}} adjusted for inflation)
→ $100 ($1,879 adjusted for inflation)$100 ({{Inflation|US|595|1982|fmt=eq}})
→ $100 (2023年 時点 の$1,879と同等 )$100 (equivalent to ${{Inflation|US|595|1982|fmt=c}} in {{Inflation/year|US}})
→ $100 (equivalent to $1,879 in 2023)
→山田 は1975年 に1億 米 ドルを稼 いだ。{{Inflation/year|US}}年 時点 で{{Inflation|US|1|1975|fmt=c}}億 米 ドルの資産 を有 することとなる。山田 は1975年 に1億 米 ドルを稼 いだ。2023年 時点 で6億 米 ドルの資産 を有 することとなる。
→山田 は1975年 に1億 米 ドルを稼 いだ。これは{{Inflation/year|US}}年 時点 の{{Inflation|US|1|1975|fmt=c}}億 米 ドルと同等 である。山田 は1975年 に1億 米 ドルを稼 いだ。これは2023年 時点 の6億 米 ドルと同等 である。
{{Inflation}}
→ テンプレート使用 エラー {{Inflation}}:|index=
(パラメータ1),|value=
(パラメータ2) および|start_year=
(パラメータ3)が指定 されていません。{{Inflation|abc}}
→ テンプレート使用 エラー {{Inflation}}:|value=
(パラメータ2) および|start_year=
(パラメータ3)が指定 されていません。{{Inflation|
→ テンプレートAU }}使用 エラー {{Inflation}}:|value=
(パラメータ2) および|start_year=
(パラメータ3)が指定 されていません。{{Inflation|
→ テンプレートAU |100}}使用 エラー {{Inflation}}:|start_year=
(パラメータ3)が指定 されていません。{{Inflation|abc|€100|1980}}
→ テンプレート使用 エラー {{Inflation}}:|index=abc
(パラメータ1)はインデックスとして正 しくありません。{{Inflation|DE|€100|1980}}
→ テンプレート使用 エラー {{Inflation}}: NaN, パラメータが数値 であることを確認 して下 さい:|value=€100
(パラメータ2),|end_year={{{4}}}
(パラメータ4) および|r={{{r}}}
.{{Inflation|DE|€100|zzzz|zzzz|r=zzzz}}
→ テンプレート使用 エラー {{Inflation}}: NaN, パラメータが数値 であることを確認 して下 さい:|value=€100
(パラメータ2),|start_year=zzzz
(パラメータ3),|end_year=zzzz
(パラメータ4) および|r=zzzz
.{{Inflation|
→ テンプレートAU |100|1200|2025}}使用 エラー {{Inflation}}:|start_year=1200
(パラメータ3) はインデックス "AU "の指定 可能 な最初 の年 (1901)より小 さい値 です。 また|end_year=2025
(パラメータ4)がインデックス "AU "の最 も直近 の年 (2018)より大 きな値 です。.{{Inflation|
→ テンプレートAU |100|2005|2004}}使用 エラー {{Inflation}}:|start_year=2005
(パラメータ3) が|end_year=2004
(パラメータ4)より大 きな値 です。.{{Inflation|
→ テンプレートAU |100|2005|2025|fmt=eq}}使用 エラー {{Inflation}}:|end_year=2025
(パラメータ4)がインデックス "AU "の最 も直近 の年 (2018)より大 きな値 です。.{{Inflation|
→ テンプレートAU |100|2024|2025|fmt=eq}}使用 エラー {{Inflation}}:|end_year=2025
(パラメータ4)がインデックス "AU "の最 も直近 の年 (2018)より大 きな値 です。.{{Inflation|
→ テンプレートAU |100|2024|1905|fmt=eq}}使用 エラー {{Inflation}}:|start_year=2024
(パラメータ3) が|end_year=1905
(パラメータ4)より大 きな値 です。.{{Inflation|
→ テンプレートAU |100|2025|fmt=eq}}使用 エラー {{Inflation}}:|start_year=2025
(パラメータ3) が インデックス "AU "の最 も直近 の年 (2018)より大 きな値 です。.
ヒント
通貨 変換
このテンプレートは{{Inflation|DE|1000|1960|r=2}}
と
{{#expr:({{Inflation|DE|1000|1960|r=2}} / 1.95583) round 2}}
→ 2069.07
数値 の丸 め
|r=
を|r=2
を|r=-3
と、|r=-6
では
大 きな数値 を扱 うとき
${{Inflation|US|1000000000000|1900|r=-11|fmt=c}}
→ $36,600,000,000,000${{Inflation|US|10000000000000|1900|r=-12|fmt=c}}
→ $366,000,000,000,000${{Inflation|US|1000000000|1900|r=-8|fmt=c}}
→ $36,600,000,000万 万 ${{Inflation|US|10000000|1900|r=-6|fmt=c}}
→ $366,000,000百 万 百 万 ${{Inflation|US|10000|1900|r=-3|fmt=c}}
→ $366,000億 億 ${{Inflation|US|1|1900|r=1|fmt=c}}
→ $36.6兆 兆
Format priceテンプレートの利用
{{Format price}}
は
${{Format price|{{Inflation|US|10000000000000|1900}}}}
→ $366兆 ${{Format price|{{Inflation|US|1000000|1990}}}}
→ $233万 DM {{Format price|{{Inflation|DE|1000000|1957|1978}}}}
→ DM 201万 £{{Format price|{{Inflation|UK|1000|1323}}}}
→ £83.1万
出典 の表示
このテンプレートを
1985
年 には平均 単価 は$1,040だった。これは{{Inflation|US|1040|1985|fmt{{=}}eq}}}}である{{Inflation/fn|US}}。
- 1985
年 には平均 単価 は$1,040だった。これは2023年 時点 の$2,946と同等 である[7]。
{{reflist}}
または<references />
に
限界
現状 では逆算 、つまり現在 の通貨 価値 を過去 の通貨 価値 に換算 することはできません。- Substitutionには
対応 していません。
開発 者 のために
インフレ
- Template:Inflation/name
- Template:Inflation/name/dataset
- Template:Inflation/name/startyear
- Template:Inflation/doc/name
サブページ
関連 項目
- {{Inflation/fn}}
- {{Format price}}
- インフレーション
消費 者 物価 指数
脚注
- ^ どの
程度 近年 までかは毎年 1月 に更新 されるデータテーブルがどのように構成 されているかによります。データテーブルによっては12月に更新 されるものも 2023も年央 に更新 されるものも2023、年末 に更新 されるものもあります2022。 - ^ オーストラリアのインフレ
率 はオーストラリア政府 統計 局 の2019年 の集計 6461.0 – Consumer Price Index: Concepts, Sources and Methods, 2019で§§3.10–3.11で説明 されているものによる。この数値 は、いくつかの統計 値 から産出 されたものであることに注意 を要 する。 - ^ カナダのインフレ
率 のうち、1688年 から1923年 までの出典 はGeloso, Vincent, A Price Index for Canada, 1688 to 1850 (December 6, 2016). 1924年 以降 の出典 はStatistics Canadaのテーブル18-10-0005-01(元 CANSIM 326-0021)"Consumer Price Index, annual average, not seasonally adjusted" (英語 ). Statistics Canada. 2024年 6月 9日 閲覧 。と18-10-0004-13 "Consumer Price Index by product group, monthly, percentage change, not seasonally adjusted, Canada, provinces, Whitehorse, Yellowknife and Iqaluit" (英語 ). Statistics Canada. 2024年 6月 9日 閲覧 。 - ^ ドイツのインフレ
率 は次 による。Deutsches Statistisches Bundesamt. - ^
日本 のインフレ率 は総務 省 統計 局 集計 による。2022年 は“昭和 40年 の1万 円 を、今 のお金 に換算 するとどの位 になりますか?”.日本銀行 . 4 March 2023閲覧 。、1955年 から2021年 までは“長期 経済 統計 物価 ”.内閣 府 . 4 March 2023閲覧 。、1946年 から1954年 までは“昭和 戦後 史 ”. 4 March 2023閲覧 。による。 - ^ イギリスのインフレ
率 の出典 はClark, Gregory (2024). "The Annual RPI and Average Earnings for Britain, 1209 to Present (New Series)". MeasuringWorth (英語 ). 2024年 5月 31日 閲覧 。 - ^ a b Federal Reserve Bank of Minneapolis Community Development Project. "Consumer Price Index (estimate) 1800–" (
英語 ). Federal Reserve Bank of Minneapolis. 2019年 1月 2日 閲覧 。 - ^ インフレ
率 は自動的 に計算 されたものである。