模板:ICD11/doc

维基百科,自由的百科全书
跳转到导航 跳转到搜索

此模板的目的是直接链接到世界卫生组织(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[编辑]

以下是该模板的模板数据,适用于可视化编辑器等工具。

ICD11模板数据

<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>

参见[编辑]