User:Was a bee/Code for IDs
Current code
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
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
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]}} }}
Content Disclaimer
Informasi ini disarikan dari Wikipedia dan disajikan kembali untuk tujuan edukasi. Konten tersedia di bawah lisensi CC BY-SA 3.0. Kami tidak bertanggung jawab atas ketidakakuratan data yang bersumber dari kontribusi publik tersebut.
- The information displayed on this website is sourced in part or in whole from Wikipedia and has been adapted for the purpose of restating it. We strive to provide accurate and relevant information, however:
- There is no guarantee of absolute accuracy. Wikipedia is an open, collaborative project that can be edited by anyone, so information is subject to change.
- It is not intended to constitute professional advice. The content displayed is for informational and educational purposes only. For important decisions (e.g., medical, legal, or financial), please consult a professional.
- Content copyright. Wikipedia is licensed under the Creative Commons Attribution-ShareAlike License (CC BY-SA). This means that content may be reused with appropriate attribution and shared under a similar license.
- Responsible use. Any risk arising from the use of information from this website is entirely the responsibility of the user.