Template talk:Infobox anatomy/Archive 2
![]() | This is an archive of past discussions. Do not edit the contents of this page. If you wish to start a new discussion or revive an old one, please do so on the current talk page. |
Archive 1 | Archive 2 |
"Code" parameter
Was a bee and Okkn, 360 of our infoboxes use the {{{Code}}}
parameter, which seems to be duplicating either TA/TH/TE... the catch being that it is sometimes referring to a different Terminologica than the one we have recorded - eg Integumentary system which has a wikidata for TA but the code recorded with the same number is TH. Is there an automated way to fetch the "Code" data and compare against Wikidata's TA/TH/TE, and then flag and differences? Once this is done, the ambiguously named parameter, which is intended to duplicate data we already store, can be removed. --Tom (LT) (talk) 19:18, 13 February 2018 (UTC)
- @Tom (LT): By using
pywikibot
library on python, we can get "Code" parameter of the Template:Infobox Anatomy in Wikipedia and TA/TH/TE values of the corresponding Wikidata item. Here are a code example and its full output.
Python3 Code
|
---|
import pywikibot
from pywikibot import pagegenerators as pg
def list_template_usage(site_obj, tmpl_name):
name = "{}:{}".format(site_obj.namespace(10), tmpl_name)
tmpl_page = pywikibot.Page(site_obj, name)
ref_gen = pg.ReferringPageGenerator(tmpl_page, onlyTemplateInclusion=True)
filter_gen = pg.NamespaceFilterPageGenerator(ref_gen, namespaces=[0])
generator = site_obj.preloadpages(filter_gen, pageprops=True)
return generator
enwp = pywikibot.Site("en","wikipedia")
tmpl_gen = list_template_usage(enwp, "Infobox anatomy")
anatomy = pywikibot.Page(enwp, "Template:Infobox anatomy")
bone = pywikibot.Page(enwp, "Template:Infobox bone")
artery = pywikibot.Page(enwp, "Template:Infobox artery")
vein = pywikibot.Page(enwp, "Template:Infobox vein")
lymph = pywikibot.Page(enwp, "Template:Infobox lymph")
nerve = pywikibot.Page(enwp, "Template:Infobox anatomy")
brain = pywikibot.Page(enwp, "Template:Infobox brain")
muscle = pywikibot.Page(enwp, "Template:Infobox muscle")
embryology = pywikibot.Page(enwp, "Template:Infobox embryology")
anatomy_family = [anatomy, bone, artery, vein,
lymph, nerve, brain, muscle, embryology]
for i, page in enumerate(tmpl_gen):
#item = pywikibot.ItemPage.fromPage(page)
#print(page.title(), item.getID())
#print(type(page.templatesWithParams()))
for template in page.templatesWithParams():
#print(template)
if template[0] in anatomy_family:
#print(template[0])
for param in template[1]:
#print(param, param.startswith("Code="))
if param.startswith("Code="):
#print(param[5:], param[5:] != "")
if (len(param[5:]) and
not param[5:].startswith("{{Terminologia")):
item = pywikibot.ItemPage.fromPage(page)
print(page.title(), item.getID(), template[0])
print("Code in Wikipedia:", param[5:])
item_dict = item.get()
claim_dict = item_dict["claims"]
TA_list = claim_dict.get("P1323")
TH_list = claim_dict.get("P1694")
TE_list = claim_dict.get("P1693")
if TA_list:
for TA in TA_list:
print("TA in Wikidata:", TA.getTarget())
if TH_list:
for TH in TH_list:
print("TH in Wikidata:", TH.getTarget())
if TE_list:
for TE in TE_list:
print("TE in Wikidata:", TE.getTarget())
print("")
break
break
if i == 5000:
print("i == 5000")
break
print("End of Output")
|
Output
|
---|
Retrieving 50 pages from wikipedia:en. Central nervous system Q47273 [[en:Template:Infobox anatomy]] Code in Wikipedia: WM1 TA in Wikidata: A14.1.00.001 Hair Q28472 [[en:Template:Infobox anatomy]] Code in Wikipedia: [[Terminologia Histologica|TH]] H3.12.00.3.02001 TA in Wikidata: A16.0.00.014 Stem cell Q48196 [[en:Template:Infobox anatomy]] Code in Wikipedia: [[Terminologia Histologica|TH]] H2.00.01.0.00001 TH in Wikidata: H1.00.01.0.00028 TH in Wikidata: H2.00.01.0.00001 Zygote Q170145 [[en:Template:Infobox embryology]] Code in Wikipedia: [[Terminologia Embryologica|TE]] E2.0.1.2.0.0.9 Retrieving 50 pages from wikipedia:en. Integumentary system Q483213 [[en:Template:Infobox anatomy]] Code in Wikipedia: [[Terminologia Histologica|TH]] H3.12.00.0.00001 TA in Wikidata: A16.0.00.001 Retrieving 50 pages from wikipedia:en. Placenta Q1212935 [[en:Template:Infobox embryology]] Code in Wikipedia: [[Terminologia Embryologica|TE]] E5.11.3.1.1.0.5 Small intestine Q11090 [[en:Template:Infobox anatomy]] Code in Wikipedia: 4453467 TA in Wikidata: A05.6.01.001 Retrieving 50 pages from wikipedia:en. Retrieving 50 pages from wikipedia:en. Neural tube Q1127402 [[en:Template:Infobox embryology]] Code in Wikipedia: [[Terminologia Embryologica|TE]] E5.14.1.0.0.0.1 Morula Q690632 [[en:Template:Infobox embryology]] Code in Wikipedia: [[Terminologia Embryologica|TE]] E2.0.1.2.0.0.11 Umbilical cord Q172563 [[en:Template:Infobox embryology]] Code in Wikipedia: [[Terminologia Embryologica|TE]] E6.0.2.2.0.0.1 Eustachian tube Q320561 [[en:Template:Infobox anatomy]] Code in Wikipedia: {{ICD9|381.81}} TA in Wikidata: A15.3.02.073 Retrieving 50 pages from wikipedia:en. Retrieving 50 pages from wikipedia:en. Delta cell Q2621407 [[en:Template:Infobox anatomy]] Code in Wikipedia: [[Terminologia Histologica|TH]] H3.04.02.0.00027 Retrieving 50 pages from wikipedia:en. Chorion Q1076491 [[en:Template:Infobox anatomy]] Code in Wikipedia: [[Terminologia Embryologica|TE]] E5.11.3.1.1.0.3 Nail (anatomy) Q36864 [[en:Template:Infobox anatomy]] Code in Wikipedia: [[Terminologia Histologica|TH]] H3.12.00.3←→≥≥.02001 TA in Wikidata: A16.0.01.001 Retrieving 50 pages from wikipedia:en. Mesonephric duct Q583232 [[en:Template:Infobox embryology]] Code in Wikipedia: [[Terminologia Embryologica|TE]] E5.6.2.0.0.0.4 Urogenital sinus Q5251638 [[en:Template:Infobox embryology]] Code in Wikipedia: [[Terminologia Embryologica|TE]] E5.7.3.1.0.0.1 Hair follicle Q866324 [[en:Template:Infobox anatomy]] Code in Wikipedia: [[Terminologia Histologica|TH]] H3.12.00.3.980643 TA in Wikidata: A16.0.00.023 Retrieving 50 pages from wikipedia:en. Hepatocyte Q827450 [[en:Template:Infobox anatomy]] Code in Wikipedia: [[Terminologia Histologica|TH]] H3.04.05.0.00006 Retrieving 50 pages from wikipedia:en. Muscle spindle Q1414096 [[en:Template:Infobox anatomy]] Code in Wikipedia: [[Terminologia Histologica|TH]] H3.11.06.0.00018 Free nerve ending Q3290037 [[en:Template:Infobox anatomy]] Code in Wikipedia: [[Terminologia Histologica|TH]] H3.11.06.0.00002 Retrieving 50 pages from wikipedia:en. Notochord Q243469 [[en:Template:Infobox embryology]] Code in Wikipedia: [[Terminologia Embryologica|TE]] E5.0.1.1.0.0.8 Blastomere Q882097 [[en:Template:Infobox embryology]] Code in Wikipedia: [[Terminologia Embryologica|TE]] E7.0.1.2.0.0.2 TE in Wikidata: E7.0.1.2.0.0.2 Retrieving 50 pages from wikipedia:en. Parietal cell Q1640093 [[en:Template:Infobox anatomy]] Code in Wikipedia: [[Terminologia Histologica|TH]] H3.04.02.1.00033 Retrieving 50 pages from wikipedia:en. Enterocyte Q1340349 [[en:Template:Infobox anatomy]] Code in Wikipedia: [[Terminologia Histologica|TH]] H3.04.03.0.00006 Dermis Q505531 [[en:Template:Infobox anatomy]] Code in Wikipedia: [[Terminologia Histologica|TH]] H3.12.00.1.03001 TA in Wikidata: A16.0.00.010 Thyroglossal duct Q603244 [[en:Template:Infobox embryology]] Code in Wikipedia: [[Terminologia Embryologica|TE]] E5.4.2.0.0.1.22 Umbilical artery Q1724233 [[en:Template:Infobox artery]] Code in Wikipedia: [[Terminologia Embryologica|TE]] E6.0.1.3.0.0.4 TA in Wikidata: A12.2.15.020 Paramesonephric duct Q491057 [[en:Template:Infobox embryology]] Code in Wikipedia: [[Terminologia Embryologica|TE]] E5.7.2.3.0.0.3 Retrieving 50 pages from wikipedia:en. Retrieving 50 pages from wikipedia:en. Kupffer cell Q513486 [[en:Template:Infobox anatomy]] Code in Wikipedia: [[Terminologia Histologica|TH]] H3.04.05.0.00016 Somite Q1427600 [[en:Template:Infobox embryology]] Code in Wikipedia: [[Terminologia Embryologica|TE]] E5.0.2.2.2.0.3 Subcutaneous tissue Q1164665 [[en:Template:Infobox anatomy]] Code in Wikipedia: [[Terminologia Histologica|TH]] H3.12.00.2.00001 TA in Wikidata: A16.0.03.001 Peyer's patch Q599966 [[en:Template:Infobox anatomy]] Code in Wikipedia: [[Terminologia Histologica|TH]] H3.04.03.0.00020 TA in Wikidata: A05.6.01.014 TH in Wikidata: H3.04.03.0.00020 Allantois Q1364012 [[en:Template:Infobox embryology]] Code in Wikipedia: [[Terminologia Embryologica|TE]] E6.0.1.2.0.0.2 Gestational sac Q5553682 [[en:Template:Infobox embryology]] Code in Wikipedia: [[Terminologia Embryologica|TE]] E5.8.0.0.1.0.1 Retrieving 50 pages from wikipedia:en. Genital tubercle Q1502241 [[en:Template:Infobox embryology]] Code in Wikipedia: [[Terminologia Embryologica|TE]] E5.7.4.0.1.0.1 Loose connective tissue Q3312266 [[en:Template:Infobox anatomy]] Code in Wikipedia: [[Terminologia Histologica|TH]] H2.00.03.1.00002 TA in Wikidata: A04.5.02.020 TA in Wikidata: A16.0.03.006 Retrieving 50 pages from wikipedia:en. Neural plate Q2314823 [[en:Template:Infobox embryology]] Code in Wikipedia: [[Terminologia Embryologica|TE]] E5.13.1.0.1.0.1 Somitomere Q7560425 [[en:Template:Infobox embryology]] Code in Wikipedia: [[Terminologia Embryologica|TE]] E5.0.2.2.2.0.2 Retrieving 50 pages from wikipedia:en. Lunula (anatomy) Q2417406 [[en:Template:Infobox anatomy]] Code in Wikipedia: [[Terminologia Histologica|TH]] H3.12.00.3.02006 TA in Wikidata: A16.0.01.005 Enterochromaffin-like cell Q3329719 [[en:Template:Infobox anatomy]] Code in Wikipedia: [[Terminologia Histologica|TH]] H3.04.02.0.00030 Goblet cell Q813622 [[en:Template:Infobox anatomy]] Code in Wikipedia: [[Terminologia Histologica|TH]] H3.04.03.0.00009;<br>H3.04.03.0.00016<br>H3.05.00.0.00006 Retrieving 50 pages from wikipedia:en. Arrector pili muscle Q1954107 [[en:Template:Infobox anatomy]] Code in Wikipedia: [[Terminologia Histologica|TH]] H3.12.00.3.01041 TA in Wikidata: A16.0.00.024 Enterochromaffin cell Q568290 [[en:Template:Infobox anatomy]] Code in Wikipedia: [[Terminologia Histologica|TH]] H3.04.02.0.00029 Neural crest Q1348455 [[en:Template:Infobox embryology]] Code in Wikipedia: [[Terminologia Embryologica|TE]] E5.0.2.1.0.0.2 Retrieving 50 pages from wikipedia:en. S cell Q4048663 [[en:Template:Infobox anatomy]] Code in Wikipedia: [[Terminologia Histologica|TH]] H3.04.02.0.00037 Ultimopharyngeal body Q544937 [[en:Template:Infobox embryology]] Code in Wikipedia: [[Terminologia Embryologica|TE]] E5.4.2.0.0.1.21 Retrieving 50 pages from wikipedia:en. Retrieving 50 pages from wikipedia:en. Retrieving 50 pages from wikipedia:en. Retrieving 50 pages from wikipedia:en. Cholangiocyte Q5104283 [[en:Template:Infobox anatomy]] Code in Wikipedia: [[Terminologia Histologica|TH]] H3.04.05.0.00011 Adult stem cell Q2642600 [[en:Template:Infobox anatomy]] Code in Wikipedia: [[Terminologia Histologica|TH]] H1.00.01.0.00035 TH in Wikidata: H1.00.01.0.00035 Dense connective tissue Q5259305 [[en:Template:Infobox anatomy]] Code in Wikipedia: [[Terminologia Histologica|TH]] H2.00.03.1.00003 G cell Q2987004 [[en:Template:Infobox anatomy]] Code in Wikipedia: [[Terminologia Histologica|TH]] H3.04.02.0.00031 Retrieving 50 pages from wikipedia:en. Retrieving 50 pages from wikipedia:en. Retrieving 50 pages from wikipedia:en. Retrieving 50 pages from wikipedia:en. Retrieving 50 pages from wikipedia:en. Pharyngeal arch Q1432727 [[en:Template:Infobox embryology]] Code in Wikipedia: [[Terminologia Embryologica|TE]] E5.4.2.0.0.0.2 Decidua Q2531387 [[en:Template:Infobox anatomy]] Code in Wikipedia: [[Terminologia Embryologica|TE]] E6.0.1.4.0.0.7 Simple columnar epithelium Q2564865 [[en:Template:Infobox anatomy]] Code in Wikipedia: 77 TH in Wikidata: H2.00.02.0.02020 Primary urethral groove Q7243185 [[en:Template:Infobox embryology]] Code in Wikipedia: [[Terminologia Embryologica|TE]] E5.6.4.2.1.7.3 Epithelial root sheath Q3094392 [[en:Template:Infobox embryology]] Code in Wikipedia: [[Terminologia Embryologica|TE]] E5.4.1.1.2.3.26 Retrieving 50 pages from wikipedia:en. Pharyngeal groove Q7180882 [[en:Template:Infobox embryology]] Code in Wikipedia: [[Terminologia Embryologica|TE]] E5.4.2.0.0.0.3 Pharyngeal pouch (embryology) Q676442 [[en:Template:Infobox embryology]] Code in Wikipedia: [[Terminologia Embryologica|TE]] E5.4.2.0.0.1.1 Panniculus adiposus Q17037967 [[en:Template:Infobox anatomy]] Code in Wikipedia: [[Terminologia Histologica|TH]] H3.12.00.2.00002 Retrieving 50 pages from wikipedia:en. Retrieving 50 pages from wikipedia:en. Aortic arches Q3496540 [[en:Template:Infobox embryology]] Code in Wikipedia: [[Terminologia Embryologica|TE]] E4.0.3.5.0.3.3 Retrieving 50 pages from wikipedia:en. Septum transversum Q474159 [[en:Template:Infobox embryology]] Code in Wikipedia: [[Terminologia Embryologica|TE]] E5.2.0.4.0.0.2 Meckel's cartilage Q376390 [[en:Template:Infobox embryology]] Code in Wikipedia: [[Terminologia Embryologica|TE]] E4.0.3.3.3.1.3 Retrieving 50 pages from wikipedia:en. Retrieving 50 pages from wikipedia:en. Paneth cell Q2004084 [[en:Template:Infobox anatomy]] Code in Wikipedia: [[Terminologia Histologica|TH]] H3.04.03.0.00017 Retrieving 50 pages from wikipedia:en. Retrieving 50 pages from wikipedia:en. Sinus venosus Q4739730 [[en:Template:Infobox embryology]] Code in Wikipedia: [[Terminologia Embryologica|TE]] E5.11.1.3.2.0.4;<br>E.5.11.1.5.1.0.1 TA in Wikidata: A12.0.00.016 Retrieving 50 pages from wikipedia:en. Retrieving 50 pages from wikipedia:en. Pronephros Q2656768 [[en:Template:Infobox embryology]] Code in Wikipedia: [[Terminologia Embryologica|TE]] E5.6.1.0.0.0.1 Retrieving 50 pages from wikipedia:en. Intermediate mesoderm Q6047369 [[en:Template:Infobox embryology]] Code in Wikipedia: [[Terminologia Embryologica|TE]] E5.6.0.0.0.0.2 Ureteric bud Q2500532 [[en:Template:Infobox embryology]] Code in Wikipedia: [[Terminologia Embryologica|TE]] E5.6.3.1.0.0.2 Endothelial stem cell Q5376430 [[en:Template:Infobox anatomy]] Code in Wikipedia: [[Terminologia Histologica|TH]] H2.00.01.0.00003 Sex cords Q4370503 [[en:Template:Infobox embryology]] Code in Wikipedia: [[Terminologia Embryologica|TE]] E5.7.1.1.0.0.7 Gonadal ridge Q1257300 [[en:Template:Infobox embryology]] Code in Wikipedia: [[Terminologia Embryologica|TE]] E5.7.1.0.0.0.5 Retrieving 50 pages from wikipedia:en. Pronephric duct Q7249923 [[en:Template:Infobox embryology]] Code in Wikipedia: [[Terminologia Embryologica|TE]] E5.6.1.0.0.0.5 Dorsal aorta Q5298763 [[en:Template:Infobox embryology]] Code in Wikipedia: [[Terminologia Embryologica|TE]] E5.11.2.1.3.0.1 Anterior cardinal vein Q1729105 [[en:Template:Infobox embryology]] Code in Wikipedia: [[Terminologia Embryologica|TE]] E5.11.2.2.2.2.2 Blood islands Q4927815 [[en:Template:Infobox embryology]] Code in Wikipedia: [[Terminologia Embryologica|TE]] E5.11.2.0.0.0.4 Alar plate Q4708355 [[en:Template:Infobox embryology]] Code in Wikipedia: [[Terminologia Embryologica|TE]] E5.14.1.0.1.0.4 Metanephrogenic blastema Q6823072 [[en:Template:Infobox embryology]] Code in Wikipedia: [[Terminologia Embryologica|TE]] E5.6.3.2.0.0.1 Lateral plate mesoderm Q6495669 [[en:Template:Infobox embryology]] Code in Wikipedia: [[Terminologia Embryologica|TE]] E5.0.3.0.0.0.2 Paraxial mesoderm Q3816207 [[en:Template:Infobox embryology]] Code in Wikipedia: [[Terminologia Embryologica|TE]] E5.0.2.1.0.0.3 Stomodeum Q1569526 [[en:Template:Infobox embryology]] Code in Wikipedia: [[Terminologia Embryologica|TE]] E5.3.0.0.0.0.4 Endocardial cushions Q2879939 [[en:Template:Infobox embryology]] Code in Wikipedia: [[Terminologia Embryologica|TE]] E5.11.1.6.0.0.4 Retrieving 50 pages from wikipedia:en. Trilaminar blastocyst Q7841973 [[en:Template:Infobox embryology]] Code in Wikipedia: [[Terminologia Embryologica|TE]] E6.0.1.1.4.0.1 Labioscrotal swelling Q1148721 [[en:Template:Infobox embryology]] Code in Wikipedia: [[Terminologia Embryologica|TE]] E5.7.4.0.1.0.4 Retrieving 50 pages from wikipedia:en. Retrieving 50 pages from wikipedia:en. Neural groove Q2267382 [[en:Template:Infobox embryology]] Code in Wikipedia: [[Terminologia Embryologica|TE]] E5.13.1.0.1.0.3 Neural fold Q7002059 [[en:Template:Infobox embryology]] Code in Wikipedia: [[Terminologia Embryologica|TE]] E5.13.1.0.1.0.2 Optic stalk Q7098802 [[en:Template:Infobox embryology]] Code in Wikipedia: [[Terminologia Embryologica|TE]] E5.14.3.4.2.2.6 Optic vesicle Q760262 [[en:Template:Infobox embryology]] Code in Wikipedia: [[Terminologia Embryologica|TE]] E5.14.3.4.2.2.4 Mesonephric tubules Q6821543 [[en:Template:Infobox embryology]] Code in Wikipedia: [[Terminologia Embryologica|TE]] E5.6.2.1.0.0.1; <br>E5.7.2.1.0.0.2 Primitive ventricle Q5370246 [[en:Template:Infobox embryology]] Code in Wikipedia: [[Terminologia Embryologica|TE]] E5.11.1.3.1.0.2 Retrieving 50 pages from wikipedia:en. Cloacal membrane Q5134739 [[en:Template:Infobox embryology]] Code in Wikipedia: [[Terminologia Embryologica|TE]] E5.4.0.0.0.0.15 Optic cup (embryology) Q7098791 [[en:Template:Infobox embryology]] Code in Wikipedia: [[Terminologia Embryologica|TE]] E5.14.3.4.2.2.7 Cephalic flexure Q5063274 [[en:Template:Infobox embryology]] Code in Wikipedia: [[Terminologia Embryologica|TE]] E5.14.3.3.0.0.3 Retrieving 50 pages from wikipedia:en. Maxillary prominence Q6795554 [[en:Template:Infobox embryology]] Code in Wikipedia: [[Terminologia Embryologica|TE]] E5.3.0.0.0.0.13 Splanchnopleuric mesenchyme Q3493644 [[en:Template:Infobox embryology]] Code in Wikipedia: [[Terminologia Embryologica|TE]] E4.0.4.1.0.0.4 Somatopleuric mesenchyme Q3489753 [[en:Template:Infobox embryology]] Code in Wikipedia: [[Terminologia Embryologica|TE]] E4.0.4.1.0.0.3 Embryonic disc Q5370243 [[en:Template:Infobox embryology]] Code in Wikipedia: [[Terminologia Embryologica|TE]] E2.0.1.2.0.0.14 Retrieving 50 pages from wikipedia:en. Neural stem cell Q2944097 [[en:Template:Infobox anatomy]] Code in Wikipedia: [[Terminologia Histologica|TH]] H2.00.01.0.00010 Retrieving 50 pages from wikipedia:en. Basal plate (neural tube) Q4866183 [[en:Template:Infobox embryology]] Code in Wikipedia: [[Terminologia Embryologica|TE]] E5.14.1.0.1.0.6 Retrieving 50 pages from wikipedia:en. Epiblast Q519516 [[en:Template:Infobox embryology]] Code in Wikipedia: [[Terminologia Embryologica|TE]] E5.0.2.2.1.0.1 Retrieving 50 pages from wikipedia:en. Foramen secundum Q5467185 [[en:Template:Infobox embryology]] Code in Wikipedia: [[Terminologia Embryologica|TE]] E5.11.1.5.2.1.2 Primary interatrial foramen Q7243140 [[en:Template:Infobox embryology]] Code in Wikipedia: [[Terminologia Embryologica|TE]] E5.11.1.5.2.1.1 Retrieving 50 pages from wikipedia:en. Vagovagal reflex Q7908541 [[en:Template:Infobox anatomy]] Code in Wikipedia: [[Terminologia Histologica|TH]] H3.04.02.0.00030 Neuroectoderm Q1271432 [[en:Template:Infobox embryology]] Code in Wikipedia: [[Terminologia Embryologica|TE]] E5.15.1.0.0.0.1 Retrieving 50 pages from wikipedia:en. Retrieving 50 pages from wikipedia:en. Retrieving 50 pages from wikipedia:en. Microfold cell Q1815955 [[en:Template:Infobox anatomy]] Code in Wikipedia: [[Terminologia Histologica|TH]] H3.04.03.0.00010 Apical ectodermal ridge Q4779801 [[en:Template:Infobox embryology]] Code in Wikipedia: [[Terminologia Embryologica|TE]] E5.0.3.0.0.3.4 Retrieving 50 pages from wikipedia:en. Retrieving 50 pages from wikipedia:en. Aorticopulmonary septum Q4778769 [[en:Template:Infobox embryology]] Code in Wikipedia: [[Terminologia Embryologica|TE]] E4.0.3.5.0.3.12 Truncus arteriosus Q7847942 [[en:Template:Infobox embryology]] Code in Wikipedia: [[Terminologia Embryologica|TE]] E5.11.1.8.1.0.4 Retrieving 50 pages from wikipedia:en. Retrieving 50 pages from wikipedia:en. Stratified squamous epithelium Q1978278 [[en:Template:Infobox anatomy]] Code in Wikipedia: р TH in Wikidata: H2.00.02.0.02025 TH in Wikidata: H2.00.02.0.02030 Mesenchyme Q32838 [[en:Template:Infobox embryology]] Code in Wikipedia: [[Terminologia Embryologica|TE]] E5.16.4.0.3.0.18 Secondary palate Q3525903 [[en:Template:Infobox embryology]] Code in Wikipedia: [[Terminologia Embryologica|TE]] E5.4.1.1.4.0.5 Retrieving 50 pages from wikipedia:en. Retrieving 50 pages from wikipedia:en. Centroacinar cell Q5062943 [[en:Template:Infobox anatomy]] Code in Wikipedia: [[Terminologia Histologica|TH]] H3.04.07.0.00008 Perisinusoidal space Q1229284 [[en:Template:Infobox anatomy]] Code in Wikipedia: [[Terminologia Histologica|TH]] H3.04.05.0.00012 TH in Wikidata: H3.04.05.0.00012 Bilaminar blastocyst Q4907543 [[en:Template:Infobox embryology]] Code in Wikipedia: [[Terminologia Embryologica|TE]] E6.0.1.1.3.0.1 Retrieving 50 pages from wikipedia:en. Retrieving 50 pages from wikipedia:en. Cloaca (embryology) Q5134733 [[en:Template:Infobox embryology]] Code in Wikipedia: [[Terminologia Embryologica|TE]] E5.4.0.0.0.0.14 Retrieving 50 pages from wikipedia:en. Gastric chief cell Q2595765 [[en:Template:Infobox anatomy]] Code in Wikipedia: [[Terminologia Histologica|TH]] H3.04.02.1.00031 Limb bud Q6548937 [[en:Template:Infobox embryology]] Code in Wikipedia: [[Terminologia Embryologica|TE]] E5.0.3.0.0.0.5 Intervillous space Q6057436 [[en:Template:Infobox embryology]] Code in Wikipedia: [[Terminologia Embryologica|TE]] E6.0.1.2.0.0.29 Retrieving 50 pages from wikipedia:en. Nephrotome Q11790467 [[en:Template:Infobox embryology]] Code in Wikipedia: [[Terminologia Embryologica|TE]] E5.6.1.0.0.0.2 Lateral nasal prominence Q6495645 [[en:Template:Infobox embryology]] Code in Wikipedia: [[Terminologia Embryologica|TE]] E5.3.0.0.0.0.12 Medial nasal prominence Q17086709 [[en:Template:Infobox embryology]] Code in Wikipedia: [[Terminologia Embryologica|TE]] E5.3.0.0.0.0.11 Otic pit Q7108723 [[en:Template:Infobox embryology]] Code in Wikipedia: [[Terminologia Embryologica|TE]] E5.15.2.0.0.0.5 Otic vesicle Q7108726 [[en:Template:Infobox embryology]] Code in Wikipedia: [[Terminologia Embryologica|TE]] E5.15.1.0.0.0.4 Frontonasal prominence Q5506108 [[en:Template:Infobox embryology]] Code in Wikipedia: [[Terminologia Embryologica|TE]] E5.3.0.0.0.0.6 Primary palate Q7243155 [[en:Template:Infobox embryology]] Code in Wikipedia: [[Terminologia Embryologica|TE]] E5.4.1.1.4.0.3 Retrieving 50 pages from wikipedia:en. Vermilion border Q3974988 [[en:Template:Infobox anatomy]] Code in Wikipedia: [[Terminologia Histologica|TH]] H03.04.01.0.00010 Lung bud Q7315908 [[en:Template:Infobox embryology]] Code in Wikipedia: [[Terminologia Embryologica|TE]] E5.5.3.0.0.0.3 Lateral lingual swelling Q16999822 [[en:Template:Infobox embryology]] Code in Wikipedia: [[Terminologia Embryologica|TE]] E5.4.1.2.0.0.5 Retrieving 50 pages from wikipedia:en. Retrieving 50 pages from wikipedia:en. Human skin Q5259911 [[en:Template:Infobox anatomy]] Code in Wikipedia: [[Terminologia Histologica|TH]] H3.12.00.1.00001 TA in Wikidata: A16.0.00.002 Retrieving 50 pages from wikipedia:en. Retrieving 50 pages from wikipedia:en. Retrieving 50 pages from wikipedia:en. Retrieving 50 pages from wikipedia:en. Hypoblast Q617412 [[en:Template:Infobox embryology]] Code in Wikipedia: [[Terminologia Embryologica|TE]] E6.0.1.1.3.0.4 Retrieving 50 pages from wikipedia:en. Lens placode Q6523230 [[en:Template:Infobox embryology]] Code in Wikipedia: [[Terminologia Embryologica|TE]] E5.16.3.1.0.0.13 Tubular heart Q5494198 [[en:Template:Infobox embryology]] Code in Wikipedia: [[Terminologia Embryologica|TE]] E5.11.1.1.1.0.5 Retrieving 50 pages from wikipedia:en. Intra-embryonic coelom Q8578607 [[en:Template:Infobox embryology]] Code in Wikipedia: [[Terminologia Embryologica|TE]] E5.8.0.0.2.0.1 Hepatic stellate cell Q1997459 [[en:Template:Infobox anatomy]] Code in Wikipedia: [[Terminologia Histologica|TH]] H3.04.05.0.00013 Nasal placode Q6966580 [[en:Template:Infobox embryology]] Code in Wikipedia: [[Terminologia Embryologica|TE]] E5.3.0.0.0.0.8 Laryngotracheal groove Q6491980 [[en:Template:Infobox embryology]] Code in Wikipedia: [[Terminologia Embryologica|TE]] E5.5.3.0.0.0.2 Minor duodenal papilla Q1133840 [[en:Template:Infobox anatomy]] Code in Wikipedia: p_03 TA in Wikidata: A05.6.02.016 Urorectal septum Q7901043 [[en:Template:Infobox embryology]] Code in Wikipedia: [[Terminologia Embryologica|TE]] E5.4.9.0.2.0.14 Nephrogenic cord Q17041728 [[en:Template:Infobox embryology]] Code in Wikipedia: [[Terminologia Embryologica|TE]] E5.6.2.0.0.0.3 Retrieving 50 pages from wikipedia:en. Hepatic diverticulum Q5731667 [[en:Template:Infobox embryology]] Code in Wikipedia: [[Terminologia Embryologica|TE]] E5.4.6.0.0.0.14 Skin appendage Q1239288 [[en:Template:Infobox anatomy]] Code in Wikipedia: [[Terminologia Histologica|TH]] H3.12.00.3.00001 Retrieving 50 pages from wikipedia:en. Primordial phallus Q7243623 [[en:Template:Infobox embryology]] Code in Wikipedia: [[Terminologia Embryologica|TE]] E5.7.4.0.1.0.2 Vaginal plate Q7908506 [[en:Template:Infobox embryology]] Code in Wikipedia: [[Terminologia Embryologica|TE]] E5.7.3.0.4.0.2 Retrieving 50 pages from wikipedia:en. Retrieving 50 pages from wikipedia:en. Mandibular prominence Q6748066 [[en:Template:Infobox embryology]] Code in Wikipedia: [[Terminologia Embryologica|TE]] E5.3.0.0.0.0.14 Thyroid diverticulum Q7799749 [[en:Template:Infobox embryology]] Code in Wikipedia: [[Terminologia Embryologica|TE]] E5.4.1.2.0.0.9 Retrieving 50 pages from wikipedia:en. Pontine flexure Q7228294 [[en:Template:Infobox embryology]] Code in Wikipedia: [[Terminologia Embryologica|TE]] E5.14.3.1.5.0.9 Retrieving 50 pages from wikipedia:en. Foveolar cell Q5476344 [[en:Template:Infobox anatomy]] Code in Wikipedia: [[Terminologia Histologica|TH]] H3.04.02.1.00023 Zone of polarizing activity Q2919735 [[en:Template:Infobox embryology]] Code in Wikipedia: [[Terminologia Embryologica|TE]] E5.0.3.0.0.1.5 Elbow Q42586 [[en:Template:Infobox anatomy]] Code in Wikipedia: a_64 TA in Wikidata: A01.1.00.023 Retrieving 50 pages from wikipedia:en. Hyponychium Q429081 [[en:Template:Infobox anatomy]] Code in Wikipedia: [[Terminologia Histologica|TH]] A.16.01.011 TA in Wikidata: A16.0.01.011 Periportal space Q17048426 [[en:Template:Infobox anatomy]] Code in Wikipedia: [[Terminologia Histologica|TH]] H3.04.05.0.00019 Cardiac neural crest complex Q5038326 [[en:Template:Infobox embryology]] Code in Wikipedia: [[Terminologia Embryologica|TE]] E4.0.3.5.0.3.1 Truncal neural crest Q7847842 [[en:Template:Infobox embryology]] Code in Wikipedia: [[Terminologia Embryologica|TE]] E5.15.1.0.3.0.1 Cranial neural crest Q5182130 [[en:Template:Infobox embryology]] Code in Wikipedia: [[Terminologia Embryologica|TE]] E5.15.1.0.2.0.1 Retrieving 50 pages from wikipedia:en. Fetal membrane Q5445907 [[en:Template:Infobox embryology]] Code in Wikipedia: [[Terminologia Embryologica|TE]] E6.0.2.0.0.0.1 Hypopharyngeal eminence Q5959991 [[en:Template:Infobox embryology]] Code in Wikipedia: [[Terminologia Embryologica|TE]] E5.4.1.2.0.0.12 Retrieving 50 pages from wikipedia:en. Otic placode Q7108725 [[en:Template:Infobox embryology]] Code in Wikipedia: [[Terminologia Embryologica|TE]] E5.15.2.0.0.0.4 Primary interventricular foramen Q7243144 [[en:Template:Infobox embryology]] Code in Wikipedia: [[Terminologia Embryologica|TE]] E5.11.1.3.2.0.14 Rostral neuropore Q7370057 [[en:Template:Infobox embryology]] Code in Wikipedia: [[Terminologia Embryologica|TE]] E5.14.1.0.0.0.6 Retrieving 50 pages from wikipedia:en. Mesenchymal stem cell Q1922379 [[en:Template:Infobox anatomy]] Code in Wikipedia: [[Terminologia Histologica|TH]] H2.00.01.0.00008 Skin gland Q7535399 [[en:Template:Infobox anatomy]] Code in Wikipedia: [[Terminologia Histologica|TH]] H3.12.00.3.03001 TA in Wikidata: A16.0.00.028 Connecting stalk Q5161678 [[en:Template:Infobox embryology]] Code in Wikipedia: [[Terminologia Embryologica|TE]] E5.11.3.1.1.0.4 Lymph sacs Q6708224 [[en:Template:Infobox embryology]] Code in Wikipedia: [[Terminologia Embryologica|TE]] E5.11.2.3.0.0.13 Posterior cardinal vein Q17119378 [[en:Template:Infobox embryology]] Code in Wikipedia: [[Terminologia Embryologica|TE]] E5.11.2.2.2.2.19 Cholecystocyte Q5104295 [[en:Template:Infobox anatomy]] Code in Wikipedia: [[Terminologia Histologica|TH]] H3.04.06.0.00006 Retrieving 50 pages from wikipedia:en. Intertragic notch Q16930523 [[en:Template:Infobox anatomy]] Code in Wikipedia: a_49 Aortic sac Q4778760 [[en:Template:Infobox embryology]] Code in Wikipedia: [[Terminologia Embryologica|TE]] E4.0.3.5.0.3.12 TA in Wikidata: A12.2.03.004 Retrieving 50 pages from wikipedia:en. Retrieving 50 pages from wikipedia:en. Retrieving 4 pages from wikipedia:en. End of Output |
Subsection to avoid loading list above when editing
- Fascinating. Looks like editors have used "Code" for a variety of uses, with the majority being TA/TH/TE storage. @Was a bee is there a way to import all the TA/TH/TE references into wikidata? (and to flag if Code is marked as different from the Wikidata entry [eg if Code is "TE" but Wikidata is storing it as "TA"])? --Tom (LT) (talk) 09:28, 14 February 2018 (UTC)
- I have imported all valid format TH/TE codes above into Wikidata. This kind of work can be achieved with QuickStatements. --Okkn (talk) 12:45, 14 February 2018 (UTC)
- Oh Fascinating work. Thank you @Okkn:. By the way, when I counted "Output" above, there are 164 times occurence of "
Code in Wikipedia:
". On the other hands, checking category prepared by Tom (Category:Anatomy infobox template using code) has 360 pages in it. I'm wondering what generates this difference... Although I don't have idea. - As information, checking category is implemented at Template:Infobox anatomy by the following code
{{#if:{{{code|}}}{{{Code|}}}|[[Category:Anatomy infobox template using code]]}}
.- @Tom (LT): TA code starts from
A
, TH starts fromH
, and TE code starts fromE
. So if there are any mistakes such kind, it will automatically appears in constraint violations pages as"Format" violations
. - Currently it seems mostly OK. --Was a bee (talk) 21:42, 14 February 2018 (UTC)
- @Was a bee: The difference in number is caused because I purposely excluded pages with {{Terminologia Anatomica}}, {{TerminologiaHistologica}} or {{TerminologiaEmbryologica}} in the Code parameter (by the python code
not param[5:].startswith("{{Terminologia")
). --Okkn (talk) 22:07, 14 February 2018 (UTC)- @Okkn: Thank you for explanation. I understand. You excluded data that have already been exported to Wikidata. Hmmm, nice code. Thanks! --Was a bee (talk) 10:18, 15 February 2018 (UTC)
- @Was a bee: The difference in number is caused because I purposely excluded pages with {{Terminologia Anatomica}}, {{TerminologiaHistologica}} or {{TerminologiaEmbryologica}} in the Code parameter (by the python code
- Oh Fascinating work. Thank you @Okkn:. By the way, when I counted "Output" above, there are 164 times occurence of "
- I have imported all valid format TH/TE codes above into Wikidata. This kind of work can be achieved with QuickStatements. --Okkn (talk) 12:45, 14 February 2018 (UTC)
- Fascinating. Looks like editors have used "Code" for a variety of uses, with the majority being TA/TH/TE storage. @Was a bee is there a way to import all the TA/TH/TE references into wikidata? (and to flag if Code is marked as different from the Wikidata entry [eg if Code is "TE" but Wikidata is storing it as "TA"])? --Tom (LT) (talk) 09:28, 14 February 2018 (UTC)
I created a tracking category and ran through every one of the 360 or so instances. Roughly, I would say about 330 were duplicates of TA/TH/TE; about 30 or so were vandalism. I removed or ported to wikidata every single instance, and Was a bee has kindly created a bot that has removed this category - I have now removed this very ambiguous parameter from the template series. --Tom (LT) (talk) 04:38, 7 April 2018 (UTC)