• Home
  • Random
  • Recent changes
  • Special pages
  • Settings
  • About MOASSpedia
  • Disclaimers
MOASSpedia
  • 216.73.216.85
  • Talk
  • Watchlist
  • Contributions
  • Log in

Template:BDTConvert

Template Discussion
  • Language
  • Watch
  • History
  • Edit
    • Page information
    • Permanent link
    • What links here


This template employs intricate features of template syntax.
You are encouraged to familiarise yourself with its setup and parser functions before editing the template. If your edit causes unexpected problems, please undo it quickly, as this template may appear on a large number of pages.
You can conduct experiments, and should test all major changes, in either this template's sandbox, the general template sandbox, or your user space before changing anything here.
Template documentation[view] [edit] [history] [purge]


Contents

  • 1 Purpose
  • 2 Usage
  • 3 Parameters
  • 4 Examples
  • 5 Updating

Purpose

The purpose of this template is to automatically convert and format currency from Bangladeshi takas to other currencies (United States Dollars by default) applying adjustment for inflation where appropriate. Rates of exchange and inflation must be manually copied by editors therefore the template's output does not necessarily reflect the present exchange rates or price indices but, rather, reflects the rates and indices at the time of the last update.

Usage

{{BDTConvert|taka_value|currency_formatting|rounding digits|nolink=(yes/no)|to=|year=}}

Parameters

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

Field name Usage Description
taka_value mandatory The value, in Bangladeshi takas, that needs to be converted. The template will not accept pre-formatted values (e.g. 1,234)
currency_formatting optional Used to represent larger numbers. Available options include :
  • k – to represent thousand(s)
  • l – to represent lakh(s)
  • c – to represent crore(s)
  • m – to represent million(s)
  • b – to represent billion(s)
  • t – to represent trillion(s)
  • Brackets in the sense may be singular (or) plural.
rounding_digits optional Used to round significant digits. Negative values (-2, -3) can be used to round values to the nearest hundred or thousand, etc. 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.
Refer to the Examples section below for more examples.
nolink optional This parameter gives you the option of not internally linking currency names (taka and paise) and number names (lakh and crore). By default, the parameter is set to "no" (i.e. it is set to link). Currency and number names will be displayed with no links when the parameter is set to "yes". Per WP:OVERLINK the currencies converted to are not linked.
year optional This parameter allows for inflation. Historic taka values will be inflated to current values then converted.
to optional This parameter allows for conversion to various different currencies (and some combinations). The US, Canadian, NZ and Australian dollars, the euro, the UK pound and the Bangladeshi taka are supported.

Examples

BDTConvert syntax Results
{{BDTConvert|1}} ৳1 (1.2¢ US)
{{BDTConvert|500}} ৳500 (US$5.90)
{{BDTConvert|0.05}} 5 poishas (0.059¢ US)
{{BDTConvert|0.01}} 1 poisha (0.012¢ US)
{{BDTConvert|0.86}} 86 poishas (1.0¢ US)
{{BDTConvert|30|m}} ৳30 million (US$360,000)
{{BDTConvert|0.72|m}} ৳0.72 million (US$8,500)
{{BDTConvert|36|b}} ৳36 billion (US$430 million)
{{BDTConvert|36|b|-2}} ৳36 billion (US$400 million)
{{BDTConvert|80|B}} ৳80 billion (US$950 million)
{{BDTConvert|32|t}} ৳32 trillion (US$380 billion)
{{BDTConvert|400|c}} ৳400 crore (US$47 million)
{{BDTConvert|400|c|0}} ৳400 crore (US$47 million)
{{BDTConvert|19|k}} ৳19,000 (US$220)
{{BDTConvert|53|m|0|nolink=yes}} ৳53 million (US$627,531)
{{BDTConvert|123|k|year=1990}} ৳123,000 (equivalent to ৳520,000 or US$6,100 in 2014)
{{BDTConvert|319|to=GBP}} ৳319 (£2.90)
{{BDTConvert|753|m|year=2000|to=USD EUR}} ৳753 million (equivalent to ৳1.9 billion, US$23 million or €20 million in 2014)

Updating

It is important to keep the figures used in these conversions up to date. Data for the exchange rates is kept at {{BDTConvert/CurrentRate}}. Data for the inflation rate is at {{Inflation/BD/dataset}}. Feel free to update these if you are able.

The above documentation is transcluded from Template:BDTConvert/doc. (edit | history)
Editors can experiment in this template's sandbox (create | mirror) and testcases (create) pages.
Add categories to the /doc subpage. Subpages of this template.
Retrieved from "https://moasspedia.org/w/index.php?title=Template:BDTConvert&oldid=5692"
Categories:
  • Pages with non-numeric formatnum arguments
  • Intricate templates
  • Currency conversion templates
Last edited on 5 May 2019, at 09:48

MOASSpedia

Content is available under Creative Commons Attribution-ShareAlike unless otherwise noted.
  • This page was last edited on 5 May 2019, at 09:48.
  • Content is available under Creative Commons Attribution-ShareAlike unless otherwise noted.
  • Privacy policy
  • About MOASSpedia
  • Disclaimers
  • Desktop