注意:保存之后,你必须清除浏览器缓存才能看到做出的更改。Google ChromeFirefoxMicrosoft EdgeSafari:按住⇧ Shift键并单击工具栏的“刷新”按钮。参阅Help:绕过浏览器缓存以获取更多帮助。
function Ohc_destinations() {
 var	txt=document.editform.wpTextbox1;

	txt.value=txt.value.replace(/([^\'])\[\[(Abkhazia|Afghanistan|Albania|Algeria|Andorra|Angola|Antigua and Barbuda|Argentina|Armenia|Australia|Austria|Azerbaijan|(?:The )Bahamas|Bahrain|Bangladesh|Barbados|Belarus|Belgium|Belize|Benin|Bhutan|Bolivia|Bosnia and Herzegovina|Botswana|Brazil|Brunei|Bulgaria|Burkina Faso|Burma|Burundi|Cambodia|Cameroon|Canada|Cape Verde|Central African Republic|Chad|Chile|(?:(?:People's |)Republic of |)China|Colombia|Comoros|(?:Democratic |)Republic of the Congo|Costa Rica|Côte d'Ivoire|Croatia|Cuba|Cyprus|Czech Republic|(?:Kingdom of |)Denmark|Djibouti|Dominica|Dominican Republic|East Timor|Ecuador|Egypt|El Salvador|Equatorial Guinea|Eritrea|Estonia|Ethiopia|Fiji|Finland|France|Gabon|Georgia|Germany|Ghana|Greece|Grenada|Guatemala|Guinea|Guinea-Bissau|Guyana|Haiti|Honduras|Hungary|Iceland|India|Indonesia|Iran|Iraq|(?:Republic of |)Ireland|Israel|Italy|Jamaica|Japan|Jordan|Kazakhstan|Kenya|Kiribati|North Korea|South Korea|Kosovo|Kuwait|Kyrgyzstan|Laos|Latvia|Lebanon|Lesotho|Liberia|Libya|Liechtenstein|Lithuania|Luxembourg|Macedonia|Madagascar|Malawi|Malaysia|Maldives|Mali|Malta|Marshall Islands|Mauritania|Mauritius|Mexico|(?:Federated States of |)Micronesia|Moldova|Monaco|Mongolia|Montenegro|Morocco|Mozambique|Nagorno-Karabakh|Namibia|Nauru|Nepal|(?:Kingdom of the |)Netherlands|New Zealand|Nicaragua|Niger|Nigeria|Northern Cyprus|Norway|Oman|Pakistan|Palau|Palestine|Panama|Papua New Guinea|Paraguay|Peru|Philippines|Poland|Portugal|Qatar|Romania|Russia|Rwanda|SADR|Saint Kitts and Nevis|Saint Lucia|Saint Vincent and the Grenadines|Samoa|San Marino|São Tomé and Príncipe|Saudi Arabia|Senegal|Serbia|Seychelles|Sierra Leone|Singapore|Slovakia|Slovenia|Solomon Islands|Somalia|Somaliland|South Africa|South Ossetia|Spain|Sri Lanka|Sudan|Suriname|Swaziland|Sweden|Switzerland|Syria|Taiwan|Tajikistan|Tanzania|Thailand|The Gambia|Togo|Tonga|Transnistria|Trinidad and Tobago|Tunisia|Turkey|Turkmenistan|Tuvalu|Uganda|Ukraine|United Arab Emirates|United Kingdom|United States|Uruguay|Uzbekistan|Vanuatu|Vatican City|Venezuela|Vietnam|Yemen|Zambia|Zimbabwe|Republic of Abkhazia|Islamic Republic of Afghanistan|Republic of Albania|People's Democratic Republic of Algeria|Principality of Andorra|Republic of Angola|Argentine Republic|Republic of Armenia|Commonwealth of Australia|Republic of Austria|Republic of Azerbaijan|Commonwealth of The Bahamas|Kingdom of Bahrain|People's Republic of Bangladesh|Republic of Belarus|Kingdom of Belgium|Republic of Benin|Kingdom of Bhutan|Plurinational State of Bolivia|Republic of Botswana|Federative Republic of Brazil|State of Brunei, Abode of Peace|Republic of Bulgaria|Union of Myanmar|Republic of Burundi|Kingdom of Cambodia|Republic of Cameroon|Republic of Cape Verde|Republic of Chad|Republic of Chile|People's Republic of China|Republic of Colombia|Union of the Comoros|Republic of Costa Rica|Republic of Côte d'Ivoire (Ivory Coast)|Republic of Croatia|Republic of Cuba|Republic of Cyprus|Kingdom of Denmark|Republic of Djibouti|Commonwealth of Dominica|Democratic Republic of Timor-Leste|Republic of Ecuador|Arab Republic of Egypt|Republic of El Salvador|Republic of Equatorial Guinea|State of Eritrea|Republic of Estonia|Federal Democratic Republic of Ethiopia|Republic of the Fiji Islands|Republic of Finland|French Republic|Gabonese Republic|Federal Republic of Germany|Republic of Ghana|Hellenic Republic|Republic of Guatemala|Republic of Guinea|Republic of Guinea-Bissau|Co-operative Republic of Guyana|Republic of Haiti|Republic of Honduras|Republic of Hungary|Republic of Iceland|Republic of India|Republic of Indonesia|Islamic Republic of Iran|Republic of Iraq|State of Israel|Italian Republic|Hashemite Kingdom of Jordan|Republic of Kazakhstan|Republic of Kenya|Republic of Kiribati|Democratic People's Republic of Korea|Republic of Korea|Republic of Kosovo|State of Kuwait|Kyrgyz Republic|Lao People's Democratic Republic|Republic of Latvia|Lebanese Republic|Kingdom of Lesotho|Republic of Liberia|Great Socialist People's Libyan Arab Jamahiriya|Principality of Liechtenstein|Republic of Lithuania|Grand Duchy of Luxembourg|Republic of Macedonia|Republic of Madagascar|Republic of Malawi|Republic of Maldives|Republic of Mali|Republic of Malta|Republic of the Marshall Islands|Islamic Republic of Mauritania|Republic of Mauritius|United Mexican States|Federated States of Micronesia|Republic of Moldova|Principality of Monaco|Kingdom of Morocco|Republic of Mozambique|Nagorno-Karabakh Republic|Republic of Namibia|Republic of Nauru|Federal Democratic Republic of Nepal|Kingdom of the Netherlands|Republic of Nicaragua|Republic of Niger|Federal Republic of Nigeria|Turkish Republic of Northern Cyprus|Kingdom of Norway|Sultanate of Oman|Islamic Republic of Pakistan|Republic of Palau|Palestine|Republic of Panama|Independent State of Papua New Guinea|Republic of Paraguay|Republic of Peru|Republic of the Philippines|Republic of Poland|Portuguese Republic|State of Qatar|Russian Federation|Republic of Rwanda|Sahrawi Arab Democratic Republic|Federation of Saint Christopher and Nevis|Independent State of Samoa|Republic of San Marino|Democratic Republic of São Tomé and Príncipe|Kingdom of Saudi Arabia|Republic of Senegal|Republic of Serbia|Republic of Seychelles|Republic of Sierra Leone|Republic of Singapore|Slovak Republic|Republic of Slovenia|Republic of Somalia|Republic of Somaliland|Republic of South Africa|Republic of South Ossetia|Kingdom of Spain|Democratic Socialist Republic of Sri Lanka|Republic of the Sudan|Republic of Suriname|Kingdom of Swaziland|Kingdom of Sweden|Swiss Confederation|Syrian Arab Republic|Republic of China|Republic of Tajikistan|United Republic of Tanzania|Kingdom of Thailand|Republic of The Gambia|Togolese Republic|Kingdom of Tonga|Transnistrian Moldovan Republic (Pridnestrovie, Trans-Dniester)|Republic of Trinidad and Tobago|Republic of Tunisia|Republic of Turkey|Republic of Uganda|United Kingdom of Great Britain and Northern Ireland|United States of America|Eastern Republic of Uruguay|Republic of Uzbekistan|Republic of Vanuatu|State of the Vatican City|Bolivarian Republic of Venezuela|Socialist Republic of Vietnam|Republic of Yemen|Republic of Zambia|Republic of Zimbabwe)\]\]/g, '$1\'\'\'$2\'\'\'');

	Ohc_allcountries()
	all_dates_to_dmy_and_common_terms()
	txt.value=txt.value.replace(/\'(international |main |primary |)(base|hub)\'/gi, '($1$2)');
	txt.value=txt.value.replace(/\'focus city\'/gi, '(focus city)');

}

$(function () {
 if(document.forms.editform) {
  mw.util.addPortletLink('p-tb', 'javascript:Ohc_destinations()', 'Airline destinations', 't-destination', 'Formatting airline dest. articles', '', '');
  }
});