import pywikibot
import re
med_temp_list_from_awb = [
"Template:2,3-Bisphosphoglycerate synthesis",
"Template:2009 US swine flu outbreak table",
"Template:2009 flu pandemic",
"Template:2009 flu pandemic in Asia table",
"Template:2009 swine flu genetic table",
"Template:2009-2010 flu pandemic table",
"Template:ABC transporter disorders",
"Template:ATPase disorders",
"Template:Acari-borne diseases",
"Template:Acquired musculoskeletal deformities",
"Template:Acquired tooth disease",
"Template:Alcohol and health",
"Template:Allergic conditions",
"Template:Amino acid metabolic pathology",
"Template:Amoebozoa diseases",
"Template:Amyloidosis",
"Template:Amyotrophic lateral sclerosis",
"Template:Arthritis in children",
"Template:Arthropathies and related conditions",
"Template:Arthropod infestations",
"Template:Attention-deficit hyperactivity disorder",
"Template:Autonomic diseases",
"Template:Bacterial cutaneous infections",
"Template:Bleeding and clotting disorders",
"Template:Bone and cartilage tumors",
"Template:Breast cancer types",
"Template:CNS diseases of the nervous system",
"Template:COVID-19 Barnstar",
"Template:COVID-19 pandemic",
"Template:COVID-19 pandemic data",
"Template:COVID-19 pandemic data in Kuwait/Charts",
"Template:COVID-19 pandemic data/Afghanistan medical cases chart",
"Template:COVID-19 pandemic data/Alabama medical cases by county",
"Template:COVID-19 pandemic data/Alaska medical cases by borough",
"Template:COVID-19 pandemic data/Albania medical cases chart",
"Template:COVID-19 pandemic data/Alberta medical cases chart",
"Template:COVID-19 pandemic data/Algeria medical cases chart",
"Template:COVID-19 pandemic data/American Samoa medical cases by county",
"Template:COVID-19 pandemic data/Andorra medical cases chart",
"Template:COVID-19 pandemic data/Angola medical cases chart",
"Template:COVID-19 pandemic data/Anguilla medical cases chart",
"Template:COVID-19 pandemic data/Argentina medical cases",
"Template:COVID-19 pandemic data/Argentina medical cases by province",
"Template:COVID-19 pandemic data/Argentina medical cases chart",
"Template:COVID-19 pandemic data/Arizona medical cases by county",
"Template:COVID-19 pandemic data/Arkansas medical cases by county",
"Template:COVID-19 pandemic data/Armenia medical cases chart",
"Template:COVID-19 pandemic data/Asturias medical cases chart",
"Template:COVID-19 pandemic data/Asturias nursing homes medical cases chart",
"Template:COVID-19 pandemic data/Australia cases by state/territory",
"Template:COVID-19 pandemic data/Australia deaths",
"Template:COVID-19 pandemic data/Australia medical cases",
"Template:COVID-19 pandemic data/Australia medical cases chart",
"Template:COVID-19 pandemic data/Austria medical cases",
"Template:COVID-19 pandemic data/Austria medical cases chart",
"Template:COVID-19 pandemic data/Azerbaijan medical cases chart",
"Template:COVID-19 pandemic data/Bahrain medical cases chart",
"Template:COVID-19 pandemic data/Bailiwick of Guernsey medical cases chart",
"Template:COVID-19 pandemic data/Bailiwick of Jersey medical cases chart",
"Template:COVID-19 pandemic data/Baltic states medical cases",
"Template:COVID-19 pandemic data/Bangladesh medical cases chart",
"Template:COVID-19 pandemic data/Barbados daily charts",
"Template:COVID-19 pandemic data/Barbados deaths by age and gender chart",
"Template:COVID-19 pandemic data/Barbados medical cases chart",
"Template:COVID-19 pandemic data/Barbados statistics",
"Template:COVID-19 pandemic data/Belarus medical cases chart",
"Template:COVID-19 pandemic data/Belgium medical cases",
"Template:COVID-19 pandemic data/Belgium medical cases chart",
"Template:COVID-19 pandemic data/Benin medical cases chart",
"Template:COVID-19 pandemic data/Bhutan medical cases",
"Template:COVID-19 pandemic data/Bhutan medical cases chart",
"Template:COVID-19 pandemic data/Bhutan medical cases summary",
"Template:COVID-19 pandemic data/Bolivia medical cases",
"Template:COVID-19 pandemic data/Bolivia medical cases chart",
"Template:COVID-19 pandemic data/Bosnia and Herzegovina medical cases chart",
"Template:COVID-19 pandemic data/Boston medical cases by district",
"Template:COVID-19 pandemic data/Brazil medical cases",
"Template:COVID-19 pandemic data/Brazil medical cases chart",
"Template:COVID-19 pandemic data/Brunei medical cases chart",
"Template:COVID-19 pandemic data/Bulgaria medical cases",
"Template:COVID-19 pandemic data/Bulgaria medical cases chart",
"Template:COVID-19 pandemic data/Burkina Faso medical cases chart",
"Template:COVID-19 pandemic data/Burundi medical cases chart",
"Template:COVID-19 pandemic data/California medical cases by county",
"Template:COVID-19 pandemic data/Cambodia medical cases chart",
"Template:COVID-19 pandemic data/Cambodia medical cases summary",
"Template:COVID-19 pandemic data/Cameroon medical cases chart",
"Template:COVID-19 pandemic data/Canada medical cases",
"Template:COVID-19 pandemic data/Canada medical cases by province",
"Template:COVID-19 pandemic data/Canada medical cases chart",
"Template:COVID-19 pandemic data/Canada/British Columbia medical cases",
"Template:COVID-19 pandemic data/Canada/British Columbia medical cases chart",
"Template:COVID-19 pandemic data/Canada/Manitoba medical cases chart",
"Template:COVID-19 pandemic data/Canada/Newfoundland and Labrador medical cases chart",
"Template:COVID-19 pandemic data/Canada/Ontario medical cases chart",
"Template:COVID-19 pandemic data/Canada/Quebec medical cases",
"Template:COVID-19 pandemic data/Canada/Quebec medical cases chart",
"Template:COVID-19 pandemic data/Canada/Quebec medical cases map",
"Template:COVID-19 pandemic data/Case fatality rate",
"Template:COVID-19 pandemic data/Chile medical cases",
"Template:COVID-19 pandemic data/Chile medical cases by commune",
"Template:COVID-19 pandemic data/Chile medical cases chart",
"Template:COVID-19 pandemic data/China medical cases by province",
"Template:COVID-19 pandemic data/Colombia medical cases chart",
"Template:COVID-19 pandemic data/Colorado medical cases by county",
"Template:COVID-19 pandemic data/Community of Madrid medical cases chart",
"Template:COVID-19 pandemic data/Connecticut medical cases by county",
"Template:COVID-19 pandemic data/Costa Rica medical cases",
"Template:COVID-19 pandemic data/Costa Rica medical cases chart",
"Template:COVID-19 pandemic data/Croatia medical cases chart",
"Template:COVID-19 pandemic data/Cuba medical cases chart",
"Template:COVID-19 pandemic data/Cyprus medical cases chart",
"Template:COVID-19 pandemic data/Czech Republic medical cases chart",
"Template:COVID-19 pandemic data/Delaware medical cases by county",
"Template:COVID-19 pandemic data/Denmark medical cases",
"Template:COVID-19 pandemic data/Denmark medical cases chart",
"Template:COVID-19 pandemic data/Diamond Princess medical cases",
"Template:COVID-19 pandemic data/Dominican Republic medical cases chart",
"Template:COVID-19 pandemic data/Donetsk People's Republic medical cases chart",
"Template:COVID-19 pandemic data/Ecuador medical cases chart",
"Template:COVID-19 pandemic data/Egypt medical cases chart",
"Template:COVID-19 pandemic data/El Salvador medical cases chart",
"Template:COVID-19 pandemic data/Equatorial Guinea medical cases chart",
"Template:COVID-19 pandemic data/Estonia medical cases",
"Template:COVID-19 pandemic data/Estonia medical cases chart",
"Template:COVID-19 pandemic data/Eswatini medical cases chart",
"Template:COVID-19 pandemic data/Ethiopia medical cases chart",
"Template:COVID-19 pandemic data/Europe medical cases",
"Template:COVID-19 pandemic data/Europe medical cases chart",
"Template:COVID-19 pandemic data/Fiji medical cases chart",
"Template:COVID-19 pandemic data/Finland medical cases chart",
"Template:COVID-19 pandemic data/Florida medical cases by county",
"Template:COVID-19 pandemic data/France medical cases",
"Template:COVID-19 pandemic data/France medical cases chart",
"Template:COVID-19 pandemic data/Georgia (U.S. state) medical cases by county",
"Template:COVID-19 pandemic data/Georgia medical cases chart",
"Template:COVID-19 pandemic data/Germany medical cases",
"Template:COVID-19 pandemic data/Germany medical cases chart",
"Template:COVID-19 pandemic data/Ghana medical cases",
"Template:COVID-19 pandemic data/Ghana medical cases chart",
"Template:COVID-19 pandemic data/Greece medical cases chart",
"Template:COVID-19 pandemic data/Greenland medical cases chart",
"Template:COVID-19 pandemic data/Guam medical cases by village",
"Template:COVID-19 pandemic data/Guatemala medical cases chart",
"Template:COVID-19 pandemic data/Haiti medical cases chart",
"Template:COVID-19 pandemic data/Hawaii medical cases by county",
"Template:COVID-19 pandemic data/Honduras medical cases chart",
"Template:COVID-19 pandemic data/Hong Kong medical cases chart",
"Template:COVID-19 pandemic data/Hungary medical cases",
"Template:COVID-19 pandemic data/Hungary medical cases chart",
"Template:COVID-19 pandemic data/Iceland medical cases",
"Template:COVID-19 pandemic data/Iceland medical cases chart",
"Template:COVID-19 pandemic data/Idaho medical cases by county",
"Template:COVID-19 pandemic data/Illinois medical cases by county",
"Template:COVID-19 pandemic data/India medical cases by state and union territory",
"Template:COVID-19 pandemic data/India medical cases chart",
"Template:COVID-19 pandemic data/India medical cases summary",
"Template:COVID-19 pandemic data/India/Andhra Pradesh medical cases by district",
"Template:COVID-19 pandemic data/India/Andhra Pradesh medical cases chart",
"Template:COVID-19 pandemic data/India/Assam medical cases chart",
"Template:COVID-19 pandemic data/India/Bihar medical cases chart",
"Template:COVID-19 pandemic data/India/Delhi medical cases chart",
"Template:COVID-19 pandemic data/India/Goa medical cases chart",
"Template:COVID-19 pandemic data/India/Gujarat medical cases",
"Template:COVID-19 pandemic data/India/Gujarat medical cases chart",
"Template:COVID-19 pandemic data/India/Haryana medical cases chart",
"Template:COVID-19 pandemic data/India/Jammu and Kashmir medical cases chart",
"Template:COVID-19 pandemic data/India/Jharkhand medical cases chart",
"Template:COVID-19 pandemic data/India/Karnataka medical cases chart",
"Template:COVID-19 pandemic data/India/Kerala medical cases",
"Template:COVID-19 pandemic data/India/Kerala medical cases chart",
"Template:COVID-19 pandemic data/India/Madhya Pradesh medical cases chart",
"Template:COVID-19 pandemic data/India/Maharashtra medical cases",
"Template:COVID-19 pandemic data/India/Maharashtra medical cases chart",
"Template:COVID-19 pandemic data/India/Maharashtra/Mumbai medical cases chart",
"Template:COVID-19 pandemic data/India/Nagaland medical cases chart",
"Template:COVID-19 pandemic data/India/Odisha medical cases chart",
"Template:COVID-19 pandemic data/India/Puducherry medical cases chart",
"Template:COVID-19 pandemic data/India/Punjab medical cases chart",
"Template:COVID-19 pandemic data/India/Rajasthan medical cases",
"Template:COVID-19 pandemic data/India/Rajasthan medical cases chart",
"Template:COVID-19 pandemic data/India/Sikkim medical cases chart",
"Template:COVID-19 pandemic data/India/Tamil Nadu medical cases",
"Template:COVID-19 pandemic data/India/Tamil Nadu medical cases by district",
"Template:COVID-19 pandemic data/India/Tamil Nadu medical cases chart",
"Template:COVID-19 pandemic data/India/Telangana medical cases chart",
"Template:COVID-19 pandemic data/India/Uttar Pradesh medical cases",
"Template:COVID-19 pandemic data/India/Uttar Pradesh medical cases chart",
"Template:COVID-19 pandemic data/India/Uttarakhand medical cases chart",
"Template:COVID-19 pandemic data/India/West Bengal medical cases",
"Template:COVID-19 pandemic data/India/West Bengal medical cases by district",
"Template:COVID-19 pandemic data/India/West Bengal medical cases chart",
"Template:COVID-19 pandemic data/Indiana medical cases by county",
"Template:COVID-19 pandemic data/Indonesia medical cases",
"Template:COVID-19 pandemic data/Indonesia medical cases chart",
"Template:COVID-19 pandemic data/International medical cases",
"Template:COVID-19 pandemic data/International medical cases chart",
"Template:COVID-19 pandemic data/Iowa medical cases by county",
"Template:COVID-19 pandemic data/Iran medical cases",
"Template:COVID-19 pandemic data/Iran medical cases chart",
"Template:COVID-19 pandemic data/Iraq medical cases chart",
"Template:COVID-19 pandemic data/Isle of Man medical cases chart",
"Template:COVID-19 pandemic data/Israel medical cases",
"Template:COVID-19 pandemic data/Israel medical cases chart",
"Template:COVID-19 pandemic data/Italy medical cases",
"Template:COVID-19 pandemic data/Italy medical cases chart",
"Template:COVID-19 pandemic data/Italy medical cases chart/sandbox",
"Template:COVID-19 pandemic data/Ivory Coast medical cases chart",
"Template:COVID-19 pandemic data/Japan medical cases",
"Template:COVID-19 pandemic data/Japan medical cases chart",
"Template:COVID-19 pandemic data/Jordan medical cases chart",
"Template:COVID-19 pandemic data/Kansas medical cases by county",
"Template:COVID-19 pandemic data/Kazakhstan medical cases chart",
"Template:COVID-19 pandemic data/Kentucky medical cases by county",
"Template:COVID-19 pandemic data/Kenya medical cases chart",
"Template:COVID-19 pandemic data/Kosovo medical cases chart",
"Template:COVID-19 pandemic data/Kuwait medical cases",
"Template:COVID-19 pandemic data/Kuwait medical cases chart",
"Template:COVID-19 pandemic data/Kyrgyzstan medical cases chart",
"Template:COVID-19 pandemic data/Kyrgyzstan medical cases chart/sandbox",
"Template:COVID-19 pandemic data/Laos medical cases",
"Template:COVID-19 pandemic data/Latvia medical cases",
"Template:COVID-19 pandemic data/Latvia medical cases chart",
"Template:COVID-19 pandemic data/Lebanon medical cases chart",
"Template:COVID-19 pandemic data/Libya medical cases chart",
"Template:COVID-19 pandemic data/Lithuania medical cases",
"Template:COVID-19 pandemic data/Lithuania medical cases chart",
"Template:COVID-19 pandemic data/Lithuanian medical cases",
"Template:COVID-19 pandemic data/Louisiana medical cases by parish",
"Template:COVID-19 pandemic data/Luhansk People's Republic medical cases chart",
"Template:COVID-19 pandemic data/Luxembourg medical cases chart",
"Template:COVID-19 pandemic data/Macau medical cases chart",
"Template:COVID-19 pandemic data/Maine medical cases by county",
"Template:COVID-19 pandemic data/Mainland China medical cases",
"Template:COVID-19 pandemic data/Mainland China medical cases chart",
"Template:COVID-19 pandemic data/Mainland China medical cases chart/sandbox",
"Template:COVID-19 pandemic data/Mainland China medical cases map (dots)",
"Template:COVID-19 pandemic data/Malawi medical cases chart",
"Template:COVID-19 pandemic data/Malaysia medical cases",
"Template:COVID-19 pandemic data/Malaysia medical cases chart",
"Template:COVID-19 pandemic data/Mali medical cases chart",
"Template:COVID-19 pandemic data/Malta medical cases chart",
"Template:COVID-19 pandemic data/Maryland medical cases by county",
"Template:COVID-19 pandemic data/Massachusetts medical cases by county",
"Template:COVID-19 pandemic data/Mauritania medical cases chart",
"Template:COVID-19 pandemic data/Mauritius medical cases chart",
"Template:COVID-19 pandemic data/Mexico medical cases",
"Template:COVID-19 pandemic data/Mexico medical cases chart",
"Template:COVID-19 pandemic data/Michigan medical cases by county",
"Template:COVID-19 pandemic data/Minnesota medical cases by county",
"Template:COVID-19 pandemic data/Mississippi medical cases by county",
"Template:COVID-19 pandemic data/Missouri medical cases by county",
"Template:COVID-19 pandemic data/Moldova medical cases chart",
"Template:COVID-19 pandemic data/Monaco medical cases chart",
"Template:COVID-19 pandemic data/Montana medical cases by county",
"Template:COVID-19 pandemic data/Montenegro medical cases chart",
"Template:COVID-19 pandemic data/Montserrat medical cases chart",
"Template:COVID-19 pandemic data/Morocco (including occupied Western Sahara) medical cases chart",
"Template:COVID-19 pandemic data/Myanmar medical cases",
"Template:COVID-19 pandemic data/Myanmar medical cases chart",
"Template:COVID-19 pandemic data/Myanmar medical cases summary",
"Template:COVID-19 pandemic data/Nebraska medical cases by county",
"Template:COVID-19 pandemic data/Nepal PCR tests by laboratory",
"Template:COVID-19 pandemic data/Nepal medical cases",
"Template:COVID-19 pandemic data/Nepal medical cases by province and district",
"Template:COVID-19 pandemic data/Nepal medical cases chart",
"Template:COVID-19 pandemic data/Netherlands medical cases",
"Template:COVID-19 pandemic data/Netherlands medical cases chart",
"Template:COVID-19 pandemic data/Nevada medical cases by county",
"Template:COVID-19 pandemic data/New Brunswick medical cases chart",
"Template:COVID-19 pandemic data/New Caledonia medical cases chart",
"Template:COVID-19 pandemic data/New Hampshire medical cases by county",
"Template:COVID-19 pandemic data/New Jersey medical cases by county",
"Template:COVID-19 pandemic data/New Mexico medical cases by county",
"Template:COVID-19 pandemic data/New York (state) medical cases by county",
"Template:COVID-19 pandemic data/New Zealand medical cases chart",
"Template:COVID-19 pandemic data/Nicaragua medical cases chart",
"Template:COVID-19 pandemic data/Nigeria medical cases",
"Template:COVID-19 pandemic data/Nigeria medical cases chart",
"Template:COVID-19 pandemic data/North Asia medical cases",
"Template:COVID-19 pandemic data/North Carolina medical cases by county",
"Template:COVID-19 pandemic data/North Dakota medical cases by county",
"Template:COVID-19 pandemic data/North Macedonia medical cases chart",
"Template:COVID-19 pandemic data/Northern Ireland medical cases chart",
"Template:COVID-19 pandemic data/Northern Mariana Islands medical cases by municipality",
"Template:COVID-19 pandemic data/Norway medical cases",
"Template:COVID-19 pandemic data/Norway medical cases chart",
"Template:COVID-19 pandemic data/Nunavut medical cases chart",
"Template:COVID-19 pandemic data/Ohio medical cases by county",
"Template:COVID-19 pandemic data/Oklahoma medical cases by county",
"Template:COVID-19 pandemic data/Oklahoma medical cases by lethality",
"Template:COVID-19 pandemic data/Oman medical cases",
"Template:COVID-19 pandemic data/Oman medical cases chart",
"Template:COVID-19 pandemic data/Oregon medical cases by county",
"Template:COVID-19 pandemic data/Pakistan medical cases",
"Template:COVID-19 pandemic data/Pakistan medical cases chart",
"Template:COVID-19 pandemic data/Palestine medical cases chart",
"Template:COVID-19 pandemic data/Panama medical cases chart",
"Template:COVID-19 pandemic data/Papua New Guinea medical cases chart",
"Template:COVID-19 pandemic data/Paraguay medical cases",
"Template:COVID-19 pandemic data/Paraguay medical cases chart",
"Template:COVID-19 pandemic data/Pennsylvania medical cases by county",
"Template:COVID-19 pandemic data/Per capita",
"Template:COVID-19 pandemic data/Peru medical cases",
"Template:COVID-19 pandemic data/Peru medical cases chart",
"Template:COVID-19 pandemic data/Philippines medical cases",
"Template:COVID-19 pandemic data/Philippines medical cases chart",
"Template:COVID-19 pandemic data/Philippines medical cases summary",
"Template:COVID-19 pandemic data/Philippines/Metro Manila medical cases",
"Template:COVID-19 pandemic data/Philippines/Overseas Filipinos medical cases",
"Template:COVID-19 pandemic data/Poland medical cases",
"Template:COVID-19 pandemic data/Poland medical cases by voivodeship",
"Template:COVID-19 pandemic data/Poland medical cases chart",
"Template:COVID-19 pandemic data/Portugal medical cases",
"Template:COVID-19 pandemic data/Portugal medical cases chart",
"Template:COVID-19 pandemic data/Puerto Rico medical cases by municipality",
"Template:COVID-19 pandemic data/Qatar medical cases chart",
"Template:COVID-19 pandemic data/Republic of Artsakh medical cases chart",
"Template:COVID-19 pandemic data/Republic of Ireland medical cases",
"Template:COVID-19 pandemic data/Republic of Ireland medical cases chart",
"Template:COVID-19 pandemic data/Rhode Island medical cases by municipality",
"Template:COVID-19 pandemic data/Romania medical cases",
"Template:COVID-19 pandemic data/Romania medical cases chart",
"Template:COVID-19 pandemic data/Russia medical cases",
"Template:COVID-19 pandemic data/Russia medical cases by federal subject",
"Template:COVID-19 pandemic data/Russia medical cases chart",
"Template:COVID-19 pandemic data/Saint Kitts and Nevis medical cases chart",
"Template:COVID-19 pandemic data/Saint Lucia medical cases chart",
"Template:COVID-19 pandemic data/Saint Vincent and the Grenadines medical cases chart",
"Template:COVID-19 pandemic data/San Francisco Bay Area medical cases by county",
"Template:COVID-19 pandemic data/San Marino medical cases chart",
"Template:COVID-19 pandemic data/Saudi Arabia medical cases chart",
"Template:COVID-19 pandemic data/School closures",
"Template:COVID-19 pandemic data/Scotland medical cases chart",
"Template:COVID-19 pandemic data/Senegal medical cases chart",
"Template:COVID-19 pandemic data/Serbia medical cases chart",
"Template:COVID-19 pandemic data/Seychelles medical cases chart",
"Template:COVID-19 pandemic data/Sierra Leone medical cases chart",
"Template:COVID-19 pandemic data/Singapore daily cases chart",
"Template:COVID-19 pandemic data/Singapore medical cases chart",
"Template:COVID-19 pandemic data/Singapore untraced cases",
"Template:COVID-19 pandemic data/Slovakia medical cases",
"Template:COVID-19 pandemic data/Slovakia medical cases by region",
"Template:COVID-19 pandemic data/Slovakia medical cases chart",
"Template:COVID-19 pandemic data/Slovenia medical cases",
"Template:COVID-19 pandemic data/Slovenia medical cases chart",
"Template:COVID-19 pandemic data/South Africa deaths",
"Template:COVID-19 pandemic data/South Africa medical cases",
"Template:COVID-19 pandemic data/South Africa medical cases chart",
"Template:COVID-19 pandemic data/South Africa, North West medical cases",
"Template:COVID-19 pandemic data/South Africa, Western Cape medical cases",
"Template:COVID-19 pandemic data/South Africa, Western Cape medical cases chart",
"Template:COVID-19 pandemic data/South Carolina medical cases by county",
"Template:COVID-19 pandemic data/South Dakota medical cases by county",
"Template:COVID-19 pandemic data/South Korea medical cases",
"Template:COVID-19 pandemic data/South Korea medical cases chart",
"Template:COVID-19 pandemic data/South Korea medical cases chart/sandbox2",
"Template:COVID-19 pandemic data/Spain medical cases",
"Template:COVID-19 pandemic data/Spain medical cases chart",
"Template:COVID-19 pandemic data/Sri Lanka medical cases chart",
"Template:COVID-19 pandemic data/Sudan medical cases chart",
"Template:COVID-19 pandemic data/Sweden medical cases",
"Template:COVID-19 pandemic data/Sweden medical cases chart",
"Template:COVID-19 pandemic data/Switzerland medical cases",
"Template:COVID-19 pandemic data/Switzerland medical cases chart",
"Template:COVID-19 pandemic data/Symptoms",
"Template:COVID-19 pandemic data/Syria medical cases chart",
"Template:COVID-19 pandemic data/Taiwan medical cases chart",
"Template:COVID-19 pandemic data/Tajikistan medical cases",
"Template:COVID-19 pandemic data/Tajikistan medical cases chart",
"Template:COVID-19 pandemic data/Tanzania medical cases chart",
"Template:COVID-19 pandemic data/Tennessee medical cases by county",
"Template:COVID-19 pandemic data/Texas medical cases by county",
"Template:COVID-19 pandemic data/Thailand medical cases",
"Template:COVID-19 pandemic data/Thailand medical cases chart",
"Template:COVID-19 pandemic data/Thailand medical cases summary",
"Template:COVID-19 pandemic data/Togo medical cases chart",
"Template:COVID-19 pandemic data/Treatments given",
"Template:COVID-19 pandemic data/Tunisia medical cases chart",
"Template:COVID-19 pandemic data/Turkey medical cases",
"Template:COVID-19 pandemic data/Turkey medical cases by province",
"Template:COVID-19 pandemic data/Turkey medical cases chart",
"Template:COVID-19 pandemic data/Uganda medical cases chart",
"Template:COVID-19 pandemic data/United Arab Emirates medical cases",
"Template:COVID-19 pandemic data/United Arab Emirates medical cases chart",
"Template:COVID-19 pandemic data/United Kingdom medical cases",
"Template:COVID-19 pandemic data/United Kingdom medical cases chart",
"Template:COVID-19 pandemic data/United Kingdom/Scotland medical cases",
"Template:COVID-19 pandemic data/United Kingdom/Scotland medical cases April 2020",
"Template:COVID-19 pandemic data/United Kingdom/Scotland medical cases August 2020",
"Template:COVID-19 pandemic data/United Kingdom/Scotland medical cases July 2020",
"Template:COVID-19 pandemic data/United Kingdom/Scotland medical cases June 2020",
"Template:COVID-19 pandemic data/United Kingdom/Scotland medical cases March 2020",
"Template:COVID-19 pandemic data/United Kingdom/Scotland medical cases May 2020",
"Template:COVID-19 pandemic data/United States Virgin Islands medical cases by island",
"Template:COVID-19 pandemic data/United States medical cases by state",
"Template:COVID-19 pandemic data/United States medical cases chart",
"Template:COVID-19 pandemic data/United States/Alabama medical cases chart",
"Template:COVID-19 pandemic data/United States/Alaska medical cases chart",
"Template:COVID-19 pandemic data/United States/Arizona medical cases chart",
"Template:COVID-19 pandemic data/United States/Arkansas medical cases chart",
"Template:COVID-19 pandemic data/United States/California medical cases chart",
"Template:COVID-19 pandemic data/United States/California/Alameda County medical cases chart",
"Template:COVID-19 pandemic data/United States/California/Contra Costa County medical cases chart",
"Template:COVID-19 pandemic data/United States/California/Los Angeles County medical cases chart",
"Template:COVID-19 pandemic data/United States/California/Marin County medical cases chart",
"Template:COVID-19 pandemic data/United States/California/Napa County medical cases chart",
"Template:COVID-19 pandemic data/United States/California/Orange County medical cases chart",
"Template:COVID-19 pandemic data/United States/California/San Diego County medical cases chart",
"Template:COVID-19 pandemic data/United States/California/San Francisco County medical cases chart",
"Template:COVID-19 pandemic data/United States/California/San Mateo County medical cases chart",
"Template:COVID-19 pandemic data/United States/California/Santa Barbara County medical cases chart",
"Template:COVID-19 pandemic data/United States/California/Santa Clara County medical cases chart",
"Template:COVID-19 pandemic data/United States/California/Santa Clara County medical cases chart/sandbox",
"Template:COVID-19 pandemic data/United States/California/Solano County medical cases chart",
"Template:COVID-19 pandemic data/United States/California/Sonoma County medical cases chart",
"Template:COVID-19 pandemic data/United States/California/Ventura County medical cases chart",
"Template:COVID-19 pandemic data/United States/Colorado medical cases chart",
"Template:COVID-19 pandemic data/United States/Connecticut medical cases chart",
"Template:COVID-19 pandemic data/United States/Delaware medical cases chart",
"Template:COVID-19 pandemic data/United States/Florida medical cases chart",
"Template:COVID-19 pandemic data/United States/Georgia medical cases chart",
"Template:COVID-19 pandemic data/United States/Guam medical cases chart",
"Template:COVID-19 pandemic data/United States/Hawaii medical cases chart",
"Template:COVID-19 pandemic data/United States/Idaho medical cases chart",
"Template:COVID-19 pandemic data/United States/Illinois medical cases chart",
"Template:COVID-19 pandemic data/United States/Indiana medical cases chart",
"Template:COVID-19 pandemic data/United States/Iowa medical cases chart",
"Template:COVID-19 pandemic data/United States/Kansas medical cases chart",
"Template:COVID-19 pandemic data/United States/Kentucky medical cases chart",
"Template:COVID-19 pandemic data/United States/Louisiana medical cases chart",
"Template:COVID-19 pandemic data/United States/Louisiana/Orleans Parish medical cases chart",
"Template:COVID-19 pandemic data/United States/Maine medical cases chart",
"Template:COVID-19 pandemic data/United States/Maryland medical cases chart",
"Template:COVID-19 pandemic data/United States/Massachusetts medical cases chart",
"Template:COVID-19 pandemic data/United States/Massachusetts/Boston medical cases chart",
"Template:COVID-19 pandemic data/United States/Michigan medical cases chart",
"Template:COVID-19 pandemic data/United States/Minnesota medical cases chart",
"Template:COVID-19 pandemic data/United States/Mississippi medical cases chart",
"Template:COVID-19 pandemic data/United States/Missouri medical cases chart",
"Template:COVID-19 pandemic data/United States/Montana medical cases chart",
"Template:COVID-19 pandemic data/United States/Nebraska medical cases chart",
"Template:COVID-19 pandemic data/United States/Nebraska/Douglas County medical cases chart",
"Template:COVID-19 pandemic data/United States/Nevada medical cases chart",
"Template:COVID-19 pandemic data/United States/New Hampshire medical cases chart",
"Template:COVID-19 pandemic data/United States/New Jersey medical cases chart",
"Template:COVID-19 pandemic data/United States/New Mexico medical cases chart",
"Template:COVID-19 pandemic data/United States/New York State medical cases chart",
"Template:COVID-19 pandemic data/United States/New York State/New York City medical cases chart",
"Template:COVID-19 pandemic data/United States/North Carolina medical cases chart",
"Template:COVID-19 pandemic data/United States/North Dakota medical cases chart",
"Template:COVID-19 pandemic data/United States/Ohio medical cases chart",
"Template:COVID-19 pandemic data/United States/Ohio/Franklin County medical cases chart",
"Template:COVID-19 pandemic data/United States/Oklahoma medical cases chart",
"Template:COVID-19 pandemic data/United States/Oregon medical cases chart",
"Template:COVID-19 pandemic data/United States/Pennsylvania medical cases chart",
"Template:COVID-19 pandemic data/United States/Puerto Rico medical cases chart",
"Template:COVID-19 pandemic data/United States/Rhode Island medical cases chart",
"Template:COVID-19 pandemic data/United States/South Carolina medical cases chart",
"Template:COVID-19 pandemic data/United States/South Dakota medical cases chart",
"Template:COVID-19 pandemic data/United States/Tennessee medical cases chart",
"Template:COVID-19 pandemic data/United States/Texas medical cases chart",
"Template:COVID-19 pandemic data/United States/U.S. Virgin Islands medical cases chart",
"Template:COVID-19 pandemic data/United States/Utah medical cases chart",
"Template:COVID-19 pandemic data/United States/Vermont medical cases chart",
"Template:COVID-19 pandemic data/United States/Virginia medical cases chart",
"Template:COVID-19 pandemic data/United States/Washington State medical cases chart",
"Template:COVID-19 pandemic data/United States/Washington, D.C. medical cases by ward",
"Template:COVID-19 pandemic data/United States/Washington, D.C. medical cases chart",
"Template:COVID-19 pandemic data/United States/West Virginia medical cases chart",
"Template:COVID-19 pandemic data/United States/Wisconsin medical cases chart",
"Template:COVID-19 pandemic data/United States/Wyoming medical cases chart",
"Template:COVID-19 pandemic data/Uruguay medical cases chart",
"Template:COVID-19 pandemic data/Utah medical cases by county",
"Template:COVID-19 pandemic data/Uzbekistan medical cases",
"Template:COVID-19 pandemic data/Uzbekistan medical cases chart",
"Template:COVID-19 pandemic data/Vatican City medical cases chart",
"Template:COVID-19 pandemic data/Venezuela medical cases chart",
"Template:COVID-19 pandemic data/Vermont medical cases by county",
"Template:COVID-19 pandemic data/Vietnam medical cases chart",
"Template:COVID-19 pandemic data/Virginia medical cases by county",
"Template:COVID-19 pandemic data/Wales medical cases chart",
"Template:COVID-19 pandemic data/Washington (state) medical cases by county",
"Template:COVID-19 pandemic data/West Virginia medical cases by county",
"Template:COVID-19 pandemic data/Wisconsin medical cases by county",
"Template:COVID-19 pandemic data/Wyoming medical cases by county",
"Template:COVID-19 pandemic data/Yemen medical cases chart",
"Template:COVID-19 pandemic data/the Bahamas medical cases chart",
"Template:COVID-19 pandemic in Africa",
"Template:COVID-19 pandemic in Canada",
"Template:COVID-19 pandemic in Canada/sandbox",
"Template:COVID-19 pandemic in Croatia",
"Template:COVID-19 pandemic in France",
"Template:COVID-19 pandemic in India",
"Template:COVID-19 pandemic in Indonesia",
"Template:COVID-19 pandemic in Malaysia",
"Template:COVID-19 pandemic in New Zealand",
"Template:COVID-19 pandemic in Tunisia/New Cases Chart",
"Template:COVID-19 pandemic in Vietnam statistics charts",
"Template:COVID-19 pandemic in mainland China",
"Template:COVID-19 pandemic in the Philippines",
"Template:COVID-19 pandemic in the United Kingdom, Crown Dependencies and British Overseas Territories",
"Template:COVID-19 pandemic in the United States",
"Template:COVID-19 pandemic in the United States imagemap",
"Template:COVID-19 pandemic in the United States imagemap/caption",
"Template:COVID-19 pandemic in the United States new cases prevalence legend",
"Template:COVID-19 pandemic in the United States prevalence legend",
"Template:COVID-19 pandemic lockdowns",
"Template:COVID-19 pandemic lockdowns in mainland China",
"Template:COVID-19 pandemic lockdowns in the Philippines",
"Template:COVID-19 pandemic sidebar",
"Template:COVID-19 testing by country",
"Template:COVID-19 testing by country subdivision",
"Template:COVID-19 testing by country/sandbox",
"Template:COVID-19 vaccine candidates",
"Template:Carcinogens",
"Template:Cases in the COVID-19 pandemic",
"Template:Cases in the COVID-19 pandemic/WHO",
"Template:Cases in the COVID-19 pandemic/core",
"Template:Cell surface receptor deficiencies",
"Template:Cerebral palsy",
"Template:Cerebral palsy and other paralytic syndromes",
"Template:Cerebrovascular diseases",
"Template:Channelopathy",
"Template:Chemotherapeutic agents",
"Template:Cholera",
"Template:Chromalveolate diseases",
"Template:Chromosomal abnormalities",
"Template:Chronic fatigue syndrome",
"Template:Ciliopathy",
"Template:Cleft lip and palate",
"Template:Combined substance use and adulteration",
"Template:Common cold",
"Template:Congenital abnormality syndromes",
"Template:Congenital diaphragm and abdominal wall defects",
"Template:Congenital endocrine disorders",
"Template:Congenital heart defects",
"Template:Congenital malformation due to exogenous toxicity",
"Template:Congenital malformations and deformations of breast",
"Template:Congenital malformations and deformations of digestive system",
"Template:Congenital malformations and deformations of ears",
"Template:Congenital malformations and deformations of eye",
"Template:Congenital malformations and deformations of face and neck",
"Template:Congenital malformations and deformations of integument",
"Template:Congenital malformations and deformations of musculoskeletal system",
"Template:Congenital malformations and deformations of nervous system",
"Template:Congenital malformations and deformations of respiratory system",
"Template:Congenital malformations and deformations of skin appendages",
"Template:Congenital malformations of urinary system",
"Template:Congenital vascular defects",
"Template:Coronavirus characteristics comparison",
"Template:Coronavirus data/Patients characteristics2",
"Template:Crohn's disease and ulcerative colitis",
"Template:Current confirmed COVID-19 cases in Greece by sex and age",
"Template:Cutaneous keratosis, ulcer, atrophy, and necrobiosis",
"Template:Cutaneous vasculitis",
"Template:Cystic diseases",
"Template:Cytoskeletal defects",
"Template:DNA replication and repair-deficiency disorder",
"Template:Defects of cholesterol and steroid metabolism",
"Template:Deficiencies of intracellular signaling peptides and proteins",
"Template:Demyelinating diseases of CNS",
"Template:Dental tumors",
"Template:Dentofacial anomalies and jaw disease",
"Template:Dermatitis and eczema",
"Template:Details of first 250 COVID-19 confirmed cases in Vietnam",
"Template:Developmental cysts",
"Template:Developmental tooth disease",
"Template:Diabetes",
"Template:Digestive system diseases",
"Template:Digestive system neoplasia",
"Template:Diseases of meninges",
"Template:Diseases of myoneural junction and muscle",
"Template:Diseases of poverty",
"Template:Diseases of the ear and mastoid process",
"Template:Diseases of the skin and appendages by morphology",
"Template:DiseasesTOC",
"Template:Dislocations, sprains and strains",
"Template:Disorders of TCA and ETC",
"Template:Disorders of consciousness",
"Template:Disorders of globin and globulin proteins",
"Template:Disorders of skin appendages",
"Template:Disorders of subcutaneous fat",
"Template:Disorders of the breast",
"Template:Disorders of transcription and post transcriptional modification",
"Template:Disorders of translation and posttranslational modification",
"Template:Drug reactions",
"Template:Education statistics on the COVID-19 pandemic",
"Template:Eicosanoid metabolism disorders",
"Template:Endocrine gland neoplasia",
"Template:Endocrine pathology",
"Template:Epithelial neoplasms",
"Template:Eradication of infectious disease",
"Template:Escherichia coli",
"Template:Excavata diseases",
"Template:Extracellular ligand disorders",
"Template:Eye pathology",
"Template:Eye tumors",
"Template:FHCRC",
"Template:Factitial dermatitis",
"Template:Fatty-acid metabolism disorders",
"Template:Female congenital anomalies of genital organs",
"Template:Female diseases of the pelvis and genitals",
"Template:Female genital neoplasia",
"Template:Flea-borne diseases",
"Template:Flu",
"Template:Four Big Pollution Diseases of Japan",
"Template:Genomic imprinting",
"Template:Germ cell tumors",
"Template:Glomerular disease",
"Template:Glycoprotein disorders",
"Template:Gram-negative non-proteobacterial diseases",
"Template:Gram-negative proteobacterial diseases",
"Template:Gram-positive actinobacteria diseases",
"Template:Gram-positive firmicutes diseases",
"Template:H5N1 sidebar",
"Template:HIV/AIDS in Africa",
"Template:Headache",
"Template:Heart diseases",
"Template:Heart neoplasia",
"Template:Helminthiases",
"Template:Heme metabolism disorders",
"Template:Human corneal dystrophy",
"Template:Human papillomavirus",
"Template:Hypersensitivity and autoimmune diseases",
"Template:Inborn errors of carbohydrate metabolism",
"Template:Inborn errors of metal metabolism",
"Template:Inborn errors of purine–pyrimidine metabolism",
"Template:Infectious disease",
"Template:Influenza",
"Template:Insect-borne diseases",
"Template:Interactive COVID-19 maps/Per capita confirmed cases/San Francisco Bay Area",
"Template:Kidney disease",
"Template:Legionnaires' disease",
"Template:Lesions of spinal cord and brain",
"Template:Lipid metabolism disorders",
"Template:Lipid storage disorders",
"Template:Lupus nephritis",
"Template:Lymphatic organ and vessel disease",
"Template:Lymphatic organ neoplasia",
"Template:Lymphoid malignancy",
"Template:Male congenital anomalies of genital organs",
"Template:Male diseases of the pelvis and genitals",
"Template:Male genital neoplasia",
"Template:Medical cases chart",
"Template:Mental and behavioral disorders",
"Template:Metabolic disorders of vitamins, coenzymes, and cofactors",
"Template:Minamata disease",
"Template:Mitochondrial diseases",
"Template:Monocyte and granulocyte disease",
"Template:Mood disorders",
"Template:Motion sickness",
"Template:Mucinoses",
"Template:Mucopolysaccharidoses",
"Template:Muscular dystrophy",
"Template:Mycoses",
"Template:Myeloid malignancy",
"Template:Myopathy",
"Template:Nervous system tumors",
"Template:Neutrophilic and eosinophilic dermatosis",
"Template:Nucleus diseases",
"Template:Numbered Diseases of Childhood",
"Template:Nutritional pathology",
"Template:Obsessive–compulsive disorder",
"Template:Oncology-journal-stub",
"Template:Oncology-stub",
"Template:Oral pathology",
"Template:Organ failure",
"Template:Osteochondrodysplasia",
"Template:Osteochondropathy",
"Template:Other cell membrane protein disorders",
"Template:PNS diseases of the nervous system",
"Template:Papulosquamous disorders",
"Template:Paraneoplastic syndromes",
"Template:Pathology of pregnancy, childbirth and the puerperium",
"Template:Pediatric conditions originating in the perinatal period",
"Template:Peroxisomal disorders",
"Template:Pervasive developmental disorders",
"Template:Phakomatoses",
"Template:Phospholipid metabolism disorders",
"Template:Pigmentation disorders",
"Template:Pneumonia",
"Template:Post-orgasmic diseases",
"Template:Prion diseases",
"Template:Prion diseases/sandbox",
"Template:Psychoactive substance use",
"Template:Radiation oncology",
"Template:Radiation-related disorders",
"Template:Respiratory neoplasia",
"Template:Respiratory pathology",
"Template:STD and STI",
"Template:Scleroprotein disease",
"Template:Seizures and epilepsy",
"Template:Shock types",
"Template:Skin tumors, dermis",
"Template:Skin tumors, epidermis",
"Template:Skin tumors, nevi and melanomas",
"Template:Small blue round cell tumors",
"Template:Soft tissue disorders",
"Template:Soft tissue tumors and sarcomas",
"Template:Solute carrier disorders",
"Template:Spinal disease",
"Template:Statistics of COVID-19 deaths in Tajikistan",
"Template:Statistics of COVID-19 infections in Tajikistan",
"Template:Targeted cancer therapeutic agents",
"Template:Testing for COVID-19",
"Template:Tourette syndrome",
"Template:Transcription factor and coregulator deficiencies",
"Template:Trinucleotide repeat disorders",
"Template:Tuberculosis",
"Template:Tumor markers",
"Template:Tumors",
"Template:Tumors of lip, oral cavity and pharynx",
"Template:Tumors of skin appendages",
"Template:Twin conditions",
"Template:Urinary tract disease",
"Template:Urologic neoplasia",
"Template:Urticaria and erythema",
"Template:Varicella zoster",
"Template:Vascular diseases",
"Template:Vascular tumors",
"Template:Vesiculobullous disease",
"Template:Viral cutaneous conditions",
"Template:Viral systemic diseases",
"Template:Water-electrolyte imbalance and acid-base imbalance",
"Template:X-linked disorders",
"Template:Zoonotic viral diseases"
]
enwp = pywikibot.Site("en","wikipedia")
med_temp_list = []
for i, page_title in enumerate(med_temp_list_from_awb):
med_temp_list.append( pywikibot.Page(enwp, med_temp_list_from_awb[i]) )
for j, page in enumerate(med_temp_list):
try:
item = pywikibot.ItemPage.fromPage(page)
template_ID = item.getID()
except:
template_ID = "0"
template_title = str(page)
template_text = page.text
template_title = template_title.replace(" ", "_")
icd_10_result = re.findall(r"\[\[ICD-10 Chapter [^\|]*\|([^\]]*)\]\]", template_text)
for m, icd_10_match in enumerate(icd_10_result):
print_out_for_excel = template_title + "*" + template_ID + "*" + "P494" + "*" + "\"" + str(icd_10_match) + "\"" + "*" + "S143" + "*" + "Q328" + "*" + "S813" + "*" + "+2020-08-13T00:00:00Z/11" + "*" + "S4656" + "*" + "\"https://www.wikidata.org/w/index.php?title=Wikidata:Bot_requests&oldid=1256094551#Move_ICD_codes_on_medical_navboxes_to_wikidata\""
print(print_out_for_excel)
icd_9_result = re.findall(r"\[\[List of ICD-9 codes [^\|]*\|([^\]]*)\]\]", template_text)
for n, icd_9_match in enumerate(icd_9_result):
print_out_for_excel = template_title + "*" + template_ID + "*" + "P493" + "*" + "\"" + str(icd_9_match) + "\"" + "*" + "S143" + "*" + "Q328" + "*" + "S813" + "*" + "+2020-08-13T00:00:00Z/11" + "*" + "S4656" + "*" + "\"https://www.wikidata.org/w/index.php?title=Wikidata:Bot_requests&oldid=1256094551#Move_ICD_codes_on_medical_navboxes_to_wikidata\""
print(print_out_for_excel)
#print(icd_10_result)
#print(template_text)
if j == 1000:
print("j == 1000")
break