Share to: share facebook share twitter share wa share telegram print page

Template talk:Infobox anatomy/Archive 2

Archive 1Archive 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.
--Okkn (talk) 06:31, 14 February 2018 (UTC)

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 from H, and TE code starts from E. 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)

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)

Prefix: a b c d e f g h i j k l m n o p q r s t u v w x y z 0 1 2 3 4 5 6 7 8 9

Portal di Ensiklopedia Dunia

Kembali kehalaman sebelumnya