Template:ATC navboxes/doc

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.

Non-specific
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
Invalid ATC code (or the ATC code does not have a template matched to it)

- 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
{ "description": "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.", "params": { "1": {   "label": "1", "description": "First ATC code", "type": "string", "required": true }, "2": {    "label": "2", "description": "Second ATC code", "type": "string", "required": false }, "3": {    "label": "3", "description": "Third ATC code", "type": "string", "required": false }, "4": {    "label": "4", "description": "Fourth ATC code", "type": "string", "required": false }, "5": {    "label": "5", "description": "Fifth ATC code", "type": "string", "required": false }, "6": {    "label": "6", "description": "Sixth ATC code", "type": "string", "required": false }, "7": {    "label": "7", "description": "Seventh ATC code", "type": "string", "required": false }, "8": {    "label": "8", "description": "Eighth ATC code", "type": "string", "required": false }, "9": {    "label": "9", "description": "Ninth ATC code", "type": "string", "required": false }, "10": {    "label": "10", "description": "Tenth ATC code", "type": "string", "required": false } }}