सामग्रीमा जानुहोस्

ढाँचा:Inflation/कागजात

विकिपिडिया, एक स्वतन्त्र विश्वकोशबाट

This template takes a country_code, for example, "US" for the United States or "UK" for United Kingdom, a value in that country's currency, a start_year, and applies to it the country's consumer price inflation until "recently".[] For example, this template calls the U.S. inflation table located in the sub-template Template:Inflation/US/dataset to perform the U.S. calculation. This means that whenever a new year arrives and the inflation tables are updated, all articles using this template have their displayed values updated accordingly.

Alternatively, you can provide a second, optional end_year parameter, and the value will be inflated for the period between the two years, providing a convenient way of getting values from different time periods adjusted around the same date.

This template calculates inflation based on several inflation index data sets. The template uses an identification code for an inflation index (usually a country code), an original value, an original start_year and either a specific reference end_year or by default the latest currently available end year,[] and calculates the equivalent value from historical economic changes between the original and reference years. For example, this template calls the United States inflation table located in the sub-template Template:Inflation/US/dataset to perform the U.S. calculation.

Aside from a convenient way to calculate values from different specified time periods, this template allows a regularly automatically updated calculation of value based on the most recent available inflation data. Whenever inflation tables are updated, potentially annually, all articles using this template have their displayed values updated accordingly.

For US currency (different to US-GDP), there is a simplified wrapper template, {{USDCY}}, which turns e.g. "{{USDCY|6.66|1899}}" into "($NaN in 2023)".

  1. How recently depends on how the data set for each countries is constructed, and on the internal tables being updated accordingly every January. Some data tables provide inflation data up to December 31, अभिव्यक्ति त्रुटि: अज्ञात विराम चिह्न चरित्र "", others up to roughly June-July अभिव्यक्ति त्रुटि: अज्ञात विराम चिह्न चरित्र "", and others yet up to December 31, अभिव्यक्ति त्रुटि: अज्ञात विराम चिह्न चरित्र "".
  2. How recently depends on how the data set for each country is constructed, and on the internal tables being updated accordingly every January. Some data tables provide inflation data up to December 31, अभिव्यक्ति त्रुटि: अज्ञात विराम चिह्न चरित्र "", others up to roughly June-July अभिव्यक्ति त्रुटि: अज्ञात विराम चिह्न चरित्र "", and others yet up to December 31, अभिव्यक्ति त्रुटि: अज्ञात विराम चिह्न चरित्र "".