Template:ATC navboxes
This template uses Lua: |
{{ATC navboxes}} is used to provide a collapsed wrapper for articles about pharmaceutical products which are assigned more than one ATC code to enable each ATC code's navbox to be included without using a massive amount of space. It also enables users to include an ATC code navbox without having to look up the name of the template from the code.
This template can accept up to 10 ATC codes as unnamed parameters to be converted into navbox templates and wrapped. The ATC codes need not be in any particular order.
Examples
[edit]Single ATC code
[edit]{{ATC navboxes|A01}}
Multiple ATC codes
[edit]{{ATC navboxes|A01|B01|C01A|D01}}
Errors
[edit]Non-specific
[edit]ATC code not specific enough - please use one further character (example: instead of M01, use M01A)
This appears when a valid code is input, but the code has multiple sub-templates. The error is solved by using a more specific code, for example, replacing C01 with C01A. Expand the table below to see all codes that must be more specific than their top level code.
Invalid or no template exists
[edit]Invalid ATC code (or the ATC code does not have a template matched to it)
{{ATC navboxes|X99}}
- this appears when an invalid ATC code is input, or there is no template associated with the code. This could be because there are very few items in the code (making a separate navbox unnecessary), or because there simply hasn't been a navbox created for that code yet.
TemplateData
[edit]TemplateData for ATC navboxes
This template calls Module:ATC code to template name to translate raw ATC codes into their respective navbox templates, then wraps the navboxes in a collapsible wrapper to save space in articles.
Parameter | Description | Type | Status | |
---|---|---|---|---|
1 | 1 | First ATC code | String | required |
2 | 2 | Second ATC code | String | optional |
3 | 3 | Third ATC code | String | optional |
4 | 4 | Fourth ATC code | String | optional |
5 | 5 | Fifth ATC code | String | optional |
6 | 6 | Sixth ATC code | String | optional |
7 | 7 | Seventh ATC code | String | optional |
8 | 8 | Eighth ATC code | String | optional |
9 | 9 | Ninth ATC code | String | optional |
10 | 10 | Tenth ATC code | String | optional |