User:Was a bee/Code for IDs
Appearance
Current code
[edit]As of 2020-08-29, code for the anatomy identifiers (here after IDs) in {{Infobox anatomy}} is as follows. (Link to the revision[1])
For TA98, using getTAValue function in the Module:Wikidata and {{TA98}}, code is as follows.
| label50 = [[Terminologia Anatomica|TA]] | data50 = {{main other |{{#if:{{#property:P1323}} |{{#invoke:Wikidata|getTAValue}}}} |{{#if:{{{TA98|{{#property:P1323}}}}}|{{TA98|{{{TA98|{{#property:P1323}}}}}}}}} }}
For other IDs, codes are like this.
{{TerminologiaEmbryologica}} and {{FMA}} are used. {{Str rep}} and {{Str mid}} are for text processing)
| label51 = [[Terminologia Histologica|TH]] | data51 = {{#if:{{{TH|{{#property:P1694}}}}} |[https://www.unifr.ch/ifaa/Public/EntryPage/ViewTH/THh{{Str rep|{{Str mid|{{{TH|{{#property:P1694}}}}}|2|4}}|.|}}.html {{{TH|{{#property:P1694}}}}}]}} | label52 = [[Terminologia Embryologica|TE]] | data52 = {{#if:{{{TE|{{#property:P1693}}}}} | {{TerminologiaEmbryologica|{{{TE|{{#property:P1693}} }}} }} }} | label53 = [[Foundational Model of Anatomy|FMA]] | data53 = {{#if:{{{FMA|{{#property:P1402}}}}}| {{FMA|{{{FMA|{{#property:P1402}}}}}|noprefix=1}}}}
Code for TA2
[edit]By using {{wd}}, code can be as follows. (This code supports multiple IDs. Some pages have multiple IDs. Currently about 100 pages.)
| label?? = [[Terminologia Anatomica 2|TA2]] | data?? = {{#if:{{#property:P7173}} | {{wikidata|properties|P7173|format=\[https://ta2viewer.openanatomy.org/?id=%p %p\][%s]}} }}
Code for FMA
[edit]Current code for FMA doesn't support multiple IDs. But some pages have multiple IDs (29 pages). For example "muscle". By using {{wd}}, code can be as follows. This code can handle multiple IDs.
| label53 = [[Foundational Model of Anatomy|FMA]] | data53 = {{#if:{{#property:P1402}} | {{wikidata|properties|P1402|format=\[https://bioportal.bioontology.org/ontologies/FMA/?p=classes&conceptid=http\%3A\%2F\%2Fpurl.org\%2Fsig\%2Font\%2Ffma\%2Ffma%p&jump\_to\_nav=true %p\][%s]}} }}