มอดูล:Currency/Presentation

local presentation = {};														-- table of tables that define presentation properties
--=-----------------------------------------------------------------
this table is created from Template:Currency/Page, Template:Currency/Position, and Template:Currency/Symbol.  The
individual currency codes are taken from the table at ISO 4217.  The source templates have other codes not
conforming to 4217; those codes are not included here but are listed in the translation table or in the non-standard
table.
This table is NOT for historical ISO 4217 codes.  Add historical codes to the non-standard properties table.
Meanings of the table entries:
	'???'			– ISO 4217 currency code; uppercase only
	page = 		– Wikipedia article name approriate to the currency code
	plural = 		– specifies how to make the currency page name plural:
						if singular and plural forms are the same leave empty
						if adding an 's' to the end of the singular name makes it plural then set plural = 's'
						if the plural name is different, set the whole plural name (see GBP for example)
	position = 	– identifies where the symbol is placed relative to the amount
						'a'		– 
						'as'	– 
						'b'		– 
						'bs'	– 
	symbol = 		– the symbol associated with the currency code; generally not the currency code unless the symbol and
						the currency code are the same;  to display a currency code instead of a symbol, use the nonstandard table
**
local currency_properties = {
	'AED' = {page = 'United Arab Emirates dirham', plural = 's', position = 'bs', symbol = 'DH'},
	'AFN' = {page = 'Afghan afghani', plural = 's', position = 'b', symbol = '\216\139'},				-- U+060B ؋
	'ALL' = {page = 'Albanian lek', plural = 'lekë', position = 'b', symbol = 'L'},
	'AMD' = {page = 'Armenian dram', plural = 's', position = 'bs', symbol = '\214\143'},				-- U+058F ؋
	'ANG' = {page = 'Netherlands Antillean guilder', plural = 's', position = 'b', symbol = 'NAƒ'},
	'AOA' = {page = 'Angolan kwanza', plural = 's',  position = 'bs', symbol = 'Kz'},
	'ARS' = {page = 'Argentine peso', plural = 's', position = 'b', symbol = 'AR$'},
	'AUD' = {page = 'ดอลลาร์ออสเตรเลีย', plural = 's', position = 'b', symbol = 'A$'},
	'AWG' = {page = 'Aruban florin', plural = 's', position = 'bs', symbol = 'Afl.'},
	'AZN' = {page = 'Azerbaijani manat', plural = 's', position = 'b', symbol = '\226\130\188'},		-- U+20BC
	'BAM' = {page = 'Bosnia and Herzegovina konvertibilna marka', plural = 's', position = 'bs', symbol = 'KM'},
	'BBD' = {page = 'Barbados dollar', plural = 's', position = 'bs', symbol = 'Bds$'},
	'BDT' = {page = 'Bangladeshi taka', plural = , position = 'b', symbol = '৳'},
	'BGN' = {page = 'Bulgarian lev', plural = 'leva', position = 'bs', symbol = 'лв.'},				-- levove?
	'BHD' = {page = 'Bahraini dinar', plural = 's', position = 'bs', symbol = '.د.ب'},
	'BIF' = {page = 'Burundian franc', plural = 's', position = 'bs', symbol = 'FBu'},
	'BMD' = {page = 'Bermudian dollar', plural = 's', position = 'b', symbol = 'BD$'},
	'BND' = {page = 'Brunei dollar', plural = 's', position = 'b', symbol = 'B$'},
	'BOB' = {page = 'Boliviano', plural = 's', position = 'bs', symbol = 'Bs.'},
--	'BOV' = {page = , plural = , position = , symbol = },										-- Bolivian Mvdol (funds code)
	'BRL' = {page = 'Brazilian real', plural = 's', position = 'b', symbol = 'R$'},
	'BSD' = {page = 'Bahamian dollar', plural = 's', position = 'b', symbol = 'B$'},
	'BTN' = {page = 'Ngultrum', plural = 's', position = 'bs', symbol = 'Nu.'},
	'BWP' = {page = 'Botswana pula', plural = , position = 'bs', symbol = 'P'},
	'BYR' = {page = 'Belarusian ruble', plural = 's', position = 'bs', symbol = 'Br'},
	'BZD' = {page = 'Belize dollar', plural = 's', position = 'b', symbol = 'BZ$'},
	'CAD' = {page = 'Canadian dollar', plural = 's', position = 'b', symbol = 'C$'},
	'CDF' = {page = 'Congolese franc', plural = 's', position = 'bs', symbol = 'FC'},
--	'CHE' = {page = , plural = , position = , symbol = },										-- WIR Euro (complementary currency)
	'CHF' = {page = 'Swiss franc', plural = 's', position = 'bs', symbol = 'CHF'},
--	'CHW' = {page = , plural = , position = , symbol = },										-- WIR Franc (complementary currency)
--	'CLF' = {page = , plural = , position = , symbol = },										-- Unidad de Fomento (funds code) (Chile)
	'CLP' = {page = 'Chilean peso', plural = 's',  position = 'b', symbol = 'CL$'},
	'CNY' = {page = 'Renminbi', plural = , position = 'bs', symbol = 'CN¥'},
	'COP' = {page = 'Colombian peso', plural = 's', position = 'b', symbol = 'COL$'},
--	'COU' = {page = , plural = , position = , symbol = },										-- Unidad de Valor Real (UVR) (funds code) (Columbia)
	'CRC' = {page = 'Costa Rican colon', plural = 's', position = 'b', symbol = '₡'},
	'CUC' = {page = 'Cuban convertible peso', plural = 's', position = 'b', symbol = 'CUC$'},
	'CUP' = {page = 'Cuban peso', plural = 's', position = 'b', symbol = '$MN'},
	'CVE' = {page = 'Cape Verde escudo', plural = 's', position = 'd', symbol = '$'},					-- not yet supported position = 'd' replaces decimal with Cifrão ($)
	'CZK' = {page = 'Czech koruna', plural = , position = 'as', symbol = 'Kč'},
	'DJF' = {page = 'Djiboutian franc', plural = 's', position = 'b', symbol = 'Fdj'},
	'DKK' = {page = 'Danish krone', plural = 'Danish kroner', position = 'bs', symbol = 'kr.'},
	'DOP' = {page = 'Dominican peso', plural = 's', position = 'b', symbol = 'RD$'},
	'DZD' = {page = 'Algerian dinar', plural = 's', position = 'bs', symbol = 'د.ج'},
	'EGP' = {page = 'Egyptian pound', plural = 's', position = 'b', symbol = 'E£'},
	'ERN' = {page = 'Eritrean nakfa', plural = , position = 'bs', symbol = 'Nfk'},
	'ETB' = {page = 'Ethiopian birr', plural = , position = 'bs', symbol = 'Br'},
	'EUR' = {page = 'Euro', plural = 's', position = 'b', symbol = '€'},
	'FJD' = {page = 'Fijian dollar', plural = 's', position = 'b', symbol = 'FJ$'},
	'FKP' = {page = 'Falkland Islands pound', plural = 's', position = 'b', symbol = 'FK£'},
	'GBP' = {page = 'Pound sterling', plural = 'pounds sterling', position = 'b', symbol = '£'},
	'GEL' = {page = 'Georgian lari', plural = , position = 'b', symbol = '\226\130\190'},			-- U+20BE ₾
	'GHS' = {page = 'Ghanaian cedi', plural = , position = 'b', symbol = '\226\130\181'},			-- U+20B5 ₵
	'GIP' = {page = 'Gibraltar pound', plural = 's', position = 'b', symbol = 'GI£'},
	'GMD' = {page = 'Gambian dalasi', plural = , position = 'bs', symbol = 'D'},
	'GNF' = {page = 'Guinean franc', plural = 's', position = 'bs', symbol = 'FG'},
	'GTQ' = {page = 'Guatemalan quetzal', plural = 'Guatemalan quetzales', position = 'bs', symbol = 'Q'},
	'GYD' = {page = 'Guyanese dollar', plural = 's', position = 'b', symbol = 'GY$'},
	'HKD' = {page = 'Hong Kong dollar', plural = 's', position = 'b', symbol = 'HK$'},
	'HNL' = {page = 'Honduran lempira', plural = 's', position = 'bs', symbol = 'L'},
	'HRK' = {page = 'Croatian kuna', plural = , position = 'bs', symbol = 'kn'},
	'HTG' = {page = 'Haitian gourde', plural = 's', position = 'bs', symbol = 'G'},
	'HUF' = {page = 'Hungarian forint', plural = , position = 'as', symbol = 'Ft'},
	'IDR' = {page = 'Indonesian rupiah', plural = , position = 'bs', symbol = 'Rp'},
	'ILS' = {page = 'Israeli new shekel', plural = 's', position = 'b', symbol = '₪'},
	'INR' = {page = 'Indian rupee', plural = 's', position = 'b', symbol = '\226\130\185'},			-- U+20B9 ₹
	'IQD' = {page = 'Iraqi dinar', plural = 's', position = 'bs', symbol = 'د.ع'},
	'IRR' = {page = 'Iranian rial', plural = 's', position = 'b', symbol = '\239\183\188'},			-- U+FDFC ﷼
	'ISK' = {page = 'Icelandic króna', plural = 'Icelandic krónur', position = 'bs', symbol = 'Íkr'},
	'JMD' = {page = 'Jamaican dollar', plural = 's', position = 'b', symbol = 'J$'},
	'JOD' = {page = 'Jordanian dinar', plural = 's', position = 'bs', symbol = 'JOD'},				-- what is this currency's symbol?
	'JPY' = {page = 'เยน', plural = , position = 'b', symbol = '¥'},
	'KES' = {page = 'Kenyan shilling', plural = 's', position = 'bs', symbol = 'KSh'},
	'KGS' = {page = 'Kyrgyzstani som', plural = , position = 'bs', symbol = 'KGS'},					-- what is this currency's symbol?
	'KHR' = {page = 'Cambodian riel', plural = 's', position = 'b', symbol = '\225\159\155'},			-- U+17DB ៛
	'KMF' = {page = 'Comorian franc', plural = 's', position = 'bs', symbol = 'CF'},
	'KPW' = {page = 'North Korean won', plural = , position = 'b', symbol = '₩'},
	'KRW' = {page = 'South Korean won', plural = , position = 'b', symbol = '₩'},
	'KWD' = {page = 'Kuwaiti dinar', plural = 's', position = 'bs', symbol = 'د.ك'},
	'KYD' = {page = 'Cayman Islands dollar', plural = 's', position = 'b', symbol = 'CI$'},
	'KZT' = {page = 'Kazakhstani tenge', plural = , position = 'b', symbol = '\226\130\184'},		-- U+20B8 ₸
	'LAK' = {page = 'Lao kip', plural = , position = 'b', symbol = '₭'},
	'LBP' = {page = 'Lebanese pound', plural = 's', position = 'bs', symbol = 'ل.ل'},
	'LKR' = {page = 'Sri Lankan rupee', plural = 's', position = 'b', symbol = 'රු.'},
	'LRD' = {page = 'Liberian dollar', plural = 's', position = 'b', symbol = 'L$'},
	'LSL' = {page = 'Lesotho loti', plural = 'Lesotho maloti', position = 'b', symbol = 'L'},			-- for the plural symbol 'M', use LSL2
	'LYD' = {page = 'Libyan dinar', plural = 's', position = 'bs', symbol = 'ل.د'},
	'MAD' = {page = 'Moroccan dirham', plural = 's', position = 'bs', symbol = 'MAD'},				-- what is this currency's symbol?
	'MDL' = {page = 'Moldovan leu', plural = 'Moldovan lei', position = 'bs', symbol = 'MDL'},		-- what is this currency's symbol?
	'MGA' = {page = 'Malagasy ariary', plural = , position = 'bs', symbol = 'Ar'},
	'MKD' = {page = 'Macedonian denar', plural = 'Macedonian denari', position = 'bs', symbol = 'ден'},
	'MMK' = {page = 'Burmese kyat', plural = 's', position = 'bs', symbol = 'K'},
	'MNT' = {page = 'Mongolian tögrög', plural = , position = 'b', symbol = '₮'},
	'MOP' = {page = 'Macanese pataca', plural = 's', position = 'b', symbol = 'MOP$'},
	'MRO' = {page = 'Mauritanian ouguiya', plural = , position = 'bs', symbol = 'UM'},
	'MUR' = {page = 'Mauritian rupee', plural = 's', position = 'bs', symbol = '₨'},
	'MVR' = {page = 'Maldivian rufiyaa', plural = , position = 'bs', symbol = 'Rf.'},
	'MWK' = {page = 'Malawian kwacha', plural = , position = 'b', symbol = 'K'},
	'MXN' = {page = 'Mexican peso', plural = 's', position = 'b', symbol = 'Mex$'},
--	'MXV' = {page = , plural = , position = , symbol = },										-- Mexican Unidad de Inversion (UDI) (funds code)
	'MYR' = {page = 'Malaysian ringgit', plural = 's', position = 'b', symbol = 'RM'},
	'MZN' = {page = 'Mozambican metical', plural = 'Mozambican meticais', position = 'bs', symbol = 'MT'},
	'NAD' = {page = 'Namibian dollar', plural = 's', position = 'b', symbol = 'N$'},
	'NGN' = {page = 'Nigerian naira', plural = , position = 'b', symbol = '₦'},
	'NIO' = {page = 'Nicaraguan córdoba', plural = 's', position = 'b', symbol = 'C$'},
	'NLG' = {page = 'Dutch guilder', plural = 's', position = 'b', symbol = 'ƒ'},
	'NOK' = {page = 'Norwegian krone', plural = 'Norwegian kroner', position = 'bs', symbol = 'kr'},
	'NPR' = {page = 'Nepalese rupee', plural = 's', position = 'bs', symbol = 'रू'},
	'NZD' = {page = 'New Zealand dollar', plural = 's', position = 'b', symbol = 'NZ$'},
	'OMR' = {page = 'Omani rial', plural = 's', position = 'bs', symbol = 'ر.ع.'},
	'PAB' = {page = 'Panamanian balboa', plural = 's', position = 'b', symbol = 'B/.'},
	'PEN' = {page = 'Peruvian sol', plural = 'Peruvian soles', position = 'b', symbol = 'S/.'},
	'PGK' = {page = 'Papua New Guinean kina', plural = , position = 'bs', symbol = 'K'},
	'PHP' = {page = 'เปโซฟิลิปปินส์', plural = 's', position = 'b', symbol = '₱'},
	'PKR' = {page = 'Pakistani rupee', plural = 's', position = 'bs', symbol = 'Rs'},
	'PLN' = {page = 'Polish złoty', plural = , position = 'a', symbol = 'zł'},
	'PYG' = {page = 'Paraguayan guaraní', plural = 'Paraguayan guaraníes', position = 'as', symbol = '\226\130\178'},	-- U+20B2 ₲
	'QAR' = {page = 'Qatari riyal', plural = 's', position = 'bs', symbol = 'ر.ق'},
	'RON' = {page = 'Romanian leu', plural = 'Romanian lei', position = 'bs', symbol = 'RON'},		-- what is this currency's symbol?
	'RSD' = {page = 'Serbian dinar', plural = , position = 'bs', symbol = 'din.'},
	'RUB' = {page = 'Russian ruble', plural = 's', position = 'b', symbol = '\226\130\189'}, 			-- U+20BD ₽ after  Aug 1998 redenomination
	'RWF' = {page = 'Rwandan franc', plural = 's', position = 'bs', symbol = 'FRw'},
	'SAR' = {page = 'Saudi riyal', plural = 's', position = 'bs', symbol = 'ر.س'},
	'SBD' = {page = 'Solomon Islands dollar', plural = 's', position = 'b', symbol = 'SI$'},
	'SCR' = {page = 'Seychellois rupee', plural = 's', position = 'bs', symbol = 'SR'},
	'SDG' = {page = 'Sudanese pound', plural = 's', position = 'bs', symbol = 'ج.س.'},
	'SEK' = {page = 'Swedish krona', plural = 'Swedish kronor', position = 'bs', symbol = 'kr'},
	'SGD' = {page = 'Singapore dollar', plural = 's', position = 'b', symbol = 'S$'},
	'SHP' = {page = 'Saint Helena pound', plural = 's', position = 'b', symbol = 'SH£'},
	'SLL' = {page = 'Sierra Leonean leone', plural = 's', position = 'bs', symbol = 'Le'},
	'SOS' = {page = 'Somali shilling', plural = 's', position = 'bs', symbol = 'Sh.So.'},
	'SRD' = {page = 'Surinamese dollar', plural = 's', position = 'b', symbol = 'SR$'},
	'SSP' = {page = 'South Sudanese pound', plural = 's', position = 'bs', symbol = 'SSP'},			-- what is this currency's symbol?
	'STD' = {page = 'São Tomé and Príncipe dobra', plural = 's', position = 'bs', symbol = 'Db'},
	'SYP' = {page = 'Syrian pound', plural = 's', position = 'bs', symbol = '£S'},
	'SZL' = {page = 'Swazi lilangeni', plural = 'Swazi emalangeni', position = 'b', symbol = 'L'},	-- for the plural symbol 'E', use SZL2
	'THB' = {page = 'บาท (สกุลเงิน)', plural = , position = 'b', symbol = '฿'},
	'TJS' = {page = 'Tajikistani somoni', plural = , position = 'bs', symbol = 'TJS'},				-- what is this currency's symbol?
	'TMT' = {page = 'Turkmenistan manat', plural = , position = 'bs', symbol = 'T'},
	'TND' = {page = 'Tunisian dinar', plural = 's', position = 'bs', symbol = 'د.ت'},
	'TOP' = {page = 'Tongan paʻanga', plural = , position = 'b', symbol = 'T$'},
	'TRY' = {page = 'Second Turkish lira', plural = , position = 'b', symbol = '\226\130\186'},		-- U+20BA ₺
	'TTD' = {page = 'Trinidad and Tobago dollar', plural = 's', position = 'b', symbol = 'TT$'},
	'TWD' = {page = 'New Taiwan dollar', plural = 's', position = 'b', symbol = 'NT$'},
	'TZS' = {page = 'Tanzanian shilingi', plural = 's', position = 'bs', symbol = 'TSh'},
	'UAH' = {page = 'Ukrainian hryvnia', plural = , position = 'b', symbol = '₴'},
	'UGX' = {page = 'Ugandan shilling', plural = 's', position = 'bs', symbol = 'USh'},
	'USD' = {page = 'ดอลลาร์สหรัฐ', plural = 's', position = 'b', symbol = 'US$'},
--	'USN' = {page = , plural = , position = , symbol = },										-- United States dollar (next day) (funds code)
--	'USS' = {page = , plural = , position = , symbol = },										-- United States dollar (same day) (funds code)
--	'UYI' = {page = , plural = , position = , symbol = },										-- Uruguay Peso en Unidades Indexadas (URUIURUI) (funds code)
	'UYU' = {page = 'Uruguayan peso', plural = 's', position = 'bs', symbol = '$U'},
	'UZS' = {page = 'Uzbekistani so\'m', plural = , position = 'bs', symbol = 'UZS'},				-- what is this currency's symbol?
	'VEF' = {page = 'Venezuelan bolívar fuerte', plural = 'Venezuelan bolívares fuertes', position = 'bs', symbol = 'Bs.F.'},
	'VND' = {page = 'Vietnamese đồng', plural = , position = 'b', symbol = '₫'},
	'VUV' = {page = 'Vanuatu vatu', plural = , position = 'bs', symbol = 'VT'},
	'WST' = {page = 'Samoan tālā', plural = , position = 'b', symbol = 'WS$'},
	'XAF' = {page = 'Central African CFA franc', plural = 's', position = 'bs', symbol = '	FCFA'},
--	'XAG' = {page = , plural = , position = , symbol = },										-- Silver (one troy ounce)
--	'XAU' = {page = , plural = , position = , symbol = },										-- Gold (one troy ounce)
--	'XBA' = {page = , plural = , position = , symbol = },										-- European Composite Unit (EURCO) (bond market unit)
--	'XBB' = {page = , plural = , position = , symbol = },										-- European Monetary Unit (E.M.U.-6) (bond market unit)
--	'XBC' = {page = , plural = , position = , symbol = },										-- European Unit of Account 9 (E.U.A.-9) (bond market unit)
--	'XBD' = {page = , plural = , position = , symbol = },										-- European Unit of Account 17 (E.U.A.-17) (bond market unit)
	'XCD' = {page = 'East Caribbean dollar', plural = 's', position = 'b', symbol = 'EC$'},
--	'XDR' = {page = , plural = , position = , symbol = },										-- Special drawing rights
--	'XFU' = {page = , plural = , position = , symbol = },										-- UIC franc (special settlement currency)
	'XOF' = {page = 'West African CFA franc', plural = 's', position = 'bs', symbol = 'CFA'},
--	'XPD' = {page = , plural = , position = , symbol = },										-- Palladium (one troy ounce)
	'XPF' = {page = 'CFP franc', plural = 's', position = 'bs', symbol = 'F'},
--	'XPT' = {page = , plural = , position = , symbol = },										-- Platinum (one troy ounce)
--	'XSU' = {page = , plural = , position = , symbol = },										-- Unified System for Regional Compensation (SUCRE)
--	'XTS' = {page = , plural = , position = , symbol = },										-- Code reserved for testing purposes
--	'XUA' = {page = , plural = , position = , symbol = },										-- ADB Unit of Account
--	'XXX' = {page = , plural = , position = , symbol = },										-- No currency
	'YER' = {page = 'Yemeni rial', plural = 's', position = 'b', symbol = '\239\183\188'},			-- U+FDFC ﷼
	'ZAR' = {page = 'South African rand', plural = , position = 'b', symbol = 'R'},
	'ZMW' = {page = 'Zambian kwacha', plural = , position = 'bs', symbol = 'ZMW'},
	}
--------------------------------------------------------------------------
This table lists some of the 'aliases' that refer to currencies listed in the properties table by their ISO 4217 codes
The form is:
	 = 
local code_translation = {
	'EGE' = 'EUR',
	'EU' = 'EUR',
	'EUMELN' = 'EUR',
	'EURO' = 'EUR',
	'FRW' = 'RWF',
	'GB' = 'GBP',
	'KNAAK' = 'EUR',
	'KSH' = 'KES',
	'NEP' = 'NPR',
	'POUND' = 'GBP',
	'POUND STERLING' = 'GBP',
	'RMB' = 'CNY',
	'TEURO' = 'EUR',
	'THE SINGLE CURRENCY' = 'EUR',
	'TSH' = 'TZS',
	'UK' = 'GBP',
	'UNITED STATES' = 'USD',
	'US' = 'USD',
	'U.S.' = 'USD',
	'USA' = 'USD',
	'USH' = 'UGX',
	}
------------------------------------------------------------
Currencies from the source templates that are identified by non-standard codes and which for whatever reason don't
translate well to an existing ISO 4217 currency.  This list may include historical ISO 4217 codes.
Meanings of the table entries are the same as those described for currency_properties table except:
	'???'	– currency codes that are non-standard or that cannot be translated to a standard code.  Uppercase only, 
				these codes MUST be different from the codes in the main currency properties table and different from
				the codes in the translation table (if they are not, they will not be found).
local non_standard_properties = {
	'BITCOIN' = {page = 'Bitcoin', plural = 's', position = 'bs', symbol = 'BTC'},
	'BTC' = {page = 'Bitcoin', plural = 's', position = 'bs', symbol = 'BTC'},
	'DKK2' = {page = 'Danish krone', plural = 'Danish kroner', position = 'bs', symbol = 'DKK'},
	'FRF' = {page = 'French franc', plural = 's', position = 'as', symbol = 'F'},							-- historical
	'GRD' = {page = 'Greek drachma', plural = 'Greek drachmae', position = 'as', symbol = 'Δρ.'},			-- historical
	'LKR2' = {page = 'Sri Lankan rupee', plural = 's', position = 'bs', symbol = 'LKR'},					-- use currency code instead of symbol
	'LSL2' = {page = 'Lesotho loti', plural = 'Lesotho maloti', position = 'b', symbol = 'M'},			-- plural symbol version of LSL (singular)
	'LTL' = {page = 'Lithuanian litas', plural = 'Lithuanian litai', position = 'as', symbol = 'Lt'},		-- historical
	'NOK2' = {page = 'Norwegian krone', plural = 'Norwegian kroner', position = 'bs', symbol = 'NOK'},
	'SEK2' = {page = 'Swedish krona', plural = 'Swedish kronor', position = 'bs', symbol = 'SEK'},
	'SZL2' = {page = 'Swazi lilangeni', plural = 'Swazi emalangeni', position = 'b', symbol = 'E'},		-- plural symbol version of SZL (singular)
	'XBT' = {page = 'Bitcoin', plural = 's', position = 'bs', symbol = 'BTC'},
	}
return {currency_properties=currency_properties, code_translation=code_translation, non_standard_properties=non_standard_properties}