Template:ATC navboxes/doc

From blackwiki
< Template:ATC navboxes
Revision as of 08:53, 5 July 2020 by blackwiki>Berchanhimez (subst to get it out of templates with errors category)
Jump to navigation Jump to search

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

Single ATC code

{{ATC navboxes|A01}} Template:Navboxes

Multiple ATC codes

{{ATC navboxes|A01|B01|C01A|D01}} Template:Navboxes

Errors

{{ATC navboxes|C01}} - 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. Template:Navboxes

{{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 the code is unused or has no items assigned to it. Template:Navboxes

TemplateData

This is the TemplateData documentation for this template used by VisualEditor and other tools; see the monthly parameter usage report for this template.

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.

Template parameters

ParameterDescriptionTypeStatus
11

First ATC code

Stringrequired
22

Second ATC code

Stringoptional
33

Third ATC code

Stringoptional
44

Fourth ATC code

Stringoptional
55

Fifth ATC code

Stringoptional
66

Sixth ATC code

Stringoptional
77

Seventh ATC code

Stringoptional
88

Eighth ATC code

Stringoptional
99

Ninth ATC code

Stringoptional
1010

Tenth ATC code

Stringoptional