Module:Country links: Difference between revisions
Content deleted Content added
No edit summary |
update donate links to use wmf parameters |
||
(3 intermediate revisions by 2 users not shown) | |||
Line 16:
"AZ", "BH", "BD", "BT", "BN", "KH", "CN", "TL", "HK", "IN",
"IL", "JP", "JO", "KZ", "KW", "MO", "MY", "MV", "MN", "NP",
"OM", "PK", "PH", "QA", "SG", "LK", "TW", "TJ", "TH", "
}
},
Line 27 ⟶ 26:
"EE", "FR", "GE", "DE", "GR", "HU", "IS", "IT", "LV", "LI",
"LT", "LU", "MT", "MC", "ME", "NL", "NO", "PL", "PT", "IE",
"RO", "RS", "SK", "SI", "ES", "SE", "CH
}
},
Line 43 ⟶ 42:
name_code = "r005",
countries = {
"AR", "BO", "BR", "CL", "CO", "EC", "FK", "GF", "GY", "
}
},
Line 72 ⟶ 71:
function p.get_donate_url( language_code, country_code )
local url = 'https://donate.wikimedia.org/wiki/Special:FundraiserLandingPage'
url = url .. '?
url = url .. '&uselang=' .. language_code
url = url .. '&country=' .. country_code
Line 126 ⟶ 125:
return 'en'
end
end
-- version we can #invoke with parameters
function p.get_country_name_wrapper( frame )
return p.get_country_name( frame.args[1], frame.args[2] )
end
|