模板:ICD11
| File:Lua-Logo.svg | 此模板使用Lua语言: |
此模板的目的是直接链接到世界卫生组织(WHO)ICD-11的线上版本。
参数及使用方法[编辑]
模板会显示ICD-11代码,链接到ICD-11网站的对应网页。
网页可由其网址有唯一不重复的linkID来识别:
- 例如,in
https://icd.who.int/browse11/l-m/en#/http://id.who.int/icd/entity/123456789,linkID为粗体文字
模板可以用一个或是二个引数:
{{ICD11|code}}
{{ICD11|code|linkID}}
- code是完整的ICD-11代码(强制)
- linkID是url列最后的数字(不强制)
示例[编辑]
The ICD-11 code 5B81 is for "Obesity". In that case, the WHO website URL will be:
Using this template, it will show the WHO website external link as follows:
- 5B81:
{{ICD11|5B81|149403041}}: 5B81
However, the linkID may be omitted; then the template will display the ICD-11 code linked by using a lookup table in Lua:
- 5B81:
{{ICD11|5B81}}: 5B81
TemplateData[编辑]
<templatedata> { "params": { "1": { "label": "Code", "description": "The ICD-11 codea", "example": "5B81, for Obesity", "type": "string", "required": true }, "2": { "description": "The 9-character number at the end of URL", "example": "149403041, for Obesity", "type": "number", "suggested": true } }, "description": "This template displays an ICD-11 code, linked to its entry in the ICD-11 website." } </templatedata>