قالب:US$/شرح

من ويكيبيديا، الموسوعه الحره
هذه صفحة توثيق فرعية تخص قالب:US$.
تحتوي هذه الصفحة على معلومات و تصنيف ومحتويات أخرى تتعلق بشرح القالب ولا تعتبر جزءا منه.
للاطلاع على صفحة القالب نفسه، انظر قالب:US$.


This template adds the currency mark "US$" linked to the دولار أمريكي article.

الاستخدام

{{US$|value}} (value must be specified)

Example:

  • {{دولار أمريكي|123.45}} produces US$123.45

Inflation calculation

الصفحة وحدة:Message box/tmbox.css ليس بها محتوى.

The template supports calculation of inflation. A second parameter can be used to specify a year from 1800 onwards and the relative value in 2024 will be calculated.

{{US$|value|year}}

Examples:

  • {{دولار أمريكي|10|1799}}US$10
  • {{دولار أمريكي|10|1800}}US$10 ($172.43 in 2024)
  • {{دولار أمريكي|10|2013}}US$10 ($12.56 in 2024)

A third parameter |about=yes will cause the template to calculate to the nearest dollar (instead of the nearest cent), and prefix the calculated value with "about". The rounding can be fine-tuned further by using |round=integer. These parameters may be combined.

Examples:

  • {{دولار أمريكي|10|1935}}US$10 ($213.45 in 2024)
  • {{دولار أمريكي|10|1935|about=yes}}US$10 (about $213 in 2024)
  • {{دولار أمريكي|10|1935|round=0}}US$10 ($213 in 2024)
  • {{دولار أمريكي|1000|1935|round=2}}US$1,000 ($21,344.66 in 2024)
  • {{دولار أمريكي|1000|1935|round=-2}}US$1,000 ($21,300 in 2024)
  • {{دولار أمريكي|1000|1935|round=-2|about=yes}}US$1,000 (about $21,300 in 2024)

Link

The parameter |link=yes may be used to link US$ to the article دولار أمريكي. This is turned off by default, but may be appropriate for the first occurrence of the term in an article.

Example:

انظر أيضاً