Difference between revisions of "Template:ATC navboxes/doc"
blackwiki>Berchanhimez (subst to get it out of templates with errors category) |
blackwiki>Berchanhimez (fix and note which codes must be more specific) |
||
| Line 16: | Line 16: | ||
====Errors==== | ====Errors==== | ||
| − | + | =====Non-specific===== | |
| − | { | + | {{font|ATC code not specific enough - please use one further character (example: instead of M01, use M01A)|size=120%|color=red}} |
| − | | | + | |
| − | | | + | 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. |
| − | | | + | |
| − | {{ | + | {| class="wikitable mw-collapsible autocollapse" style="width:50%" |
| − | | {{ | + | |+ List of ATC codes that are not specific enough to parse in this template |
| − | | | + | |- |
| − | }} | + | ! Non-specific<br />ATC code !! colspan=2| Alternative<br />more specific<br />codes |
| − | {{ | + | |- |
| − | | {{ | + | | rowspan=2 | A02 || A02A || {{tl|Antacids}} |
| − | | | + | |- |
| − | }} | + | | | A02B || {{tl|Drugs for peptic ulcer and GORD}} |
| − | {{ | + | |- |
| − | | {{ | + | | rowspan=4 | C01 || C01A || {{tl|Cardiac glycosides}} |
| − | | | + | |- |
| − | }} | + | | | C01B || {{tl|Antiarrhythmic agents}} |
| − | {{ | + | |- |
| − | | {{ | + | | | C01C || {{tl|Cardiac stimulants excluding cardiac glycosides}} |
| − | | | + | |- |
| − | }} | + | | | C01D || {{tl|Vasodilators used in cardiac diseases}} |
| − | {{ | + | |- |
| − | | {{ | + | | rowspan=5 | G02 || G02A || {{tl|Uterotonics}} |
| − | | | + | |- |
| − | }} | + | | | G02B || {{tl|Birth control methods}} (with G03A) |
| − | {{ | + | |- |
| − | | {{ | + | | | G02CA || {{tl|Labor repressants}} |
| − | | | + | |- |
| − | }} | + | | | G02CB || rowspan=2 | {{tl|Prolactin inhibitors and anti-inflammatory products for vaginal administration}} |
| − | {{ | + | |- |
| − | | {{ | + | | | G02CC |
| − | | | + | |- |
| − | }} | + | | rowspan=3 | G02C || G02CA || {{tl|Labor repressants}} |
| − | {{ | + | |- |
| − | | {{ | + | | | G02CB || rowspan=2 | {{tl|Prolactin inhibitors and anti-inflammatory products for vaginal administration}} |
| − | | | + | |- |
| − | }} | + | | | G02CC |
| − | {{ | + | |- |
| − | | {{ | + | | rowspan=3 | G03 || G03A || {{tl|Birth control methods}} (with G02B) |
| − | | | + | |- |
| − | }} | + | | | G03G || {{tl|GnRH and gonadotropins}} |
| − | {{ | + | |- |
| − | | {{ | + | | | G03X || {{tl|Other sex hormones and modulators of the genital system}} |
| − | | | + | |- |
| − | } | + | | rowspan=3 | G04 || G04B || {{tl|Urologicals, including antispasmodics}}, see also G04BE below. |
| − | }} | + | |- |
| + | | | G04BE || {{tl|Drugs for erectile dysfunction and premature ejaculation}} | ||
| + | |- | ||
| + | | | G04C || {{tl|Drugs used in benign prostatic hypertrophy}} | ||
| + | |- | ||
| + | | rowspan=9 | J01 || J01A || rowspan=4 | {{tl|Protein synthesis inhibitor antibiotics}} | ||
| + | |- | ||
| + | | | J01B | ||
| + | |- | ||
| + | | | J01F | ||
| + | |- | ||
| + | | | J01G | ||
| + | |- | ||
| + | | | J01C || rowspan=2 | {{tl|Cell wall disruptive antibiotics}} | ||
| + | |- | ||
| + | | | J01D | ||
| + | |- | ||
| + | | | J01E || rowspan=2 | {{tl|Nucleic acid inhibitors}} | ||
| + | |- | ||
| + | | | J01M | ||
| + | |- | ||
| + | | | J01X || {{tl|Other antibacterials}} | ||
| + | |- | ||
| + | | rowspan=2 | M01 || M01A || contained within {{tl|Anti-inflammatory products}} | ||
| + | |- | ||
| + | | | M01C || {{tl|Antirheumatic products}} | ||
| + | |- | ||
| + | | rowspan=2 | N01 || N01A || {{tl|General anesthetics}} | ||
| + | |- | ||
| + | | | N01B || {{tl|Local anesthetics}} | ||
| + | |- | ||
| + | | rowspan=3 | N02 || N02A || rowspan=2 | {{tl|Analgesics}} | ||
| + | |- | ||
| + | | | N02B | ||
| + | |- | ||
| + | | | N02C || {{tl|Antimigraine preparations}} | ||
| + | |- | ||
| + | | rowspan=3 | N05 || N05A || {{tl|Antipsychotics}} | ||
| + | |- | ||
| + | | | N05B || {{tl|Anxiolytics}} | ||
| + | |- | ||
| + | | | N05C || {{tl|Hypnotics and sedatives}} | ||
| + | |- | ||
| + | | rowspan=3 | N06 || N06A || {{tl|Antidepressants}} | ||
| + | |- | ||
| + | | | N06B || Contained within {{tl|Stimulants}} | ||
| + | |- | ||
| + | | | N06D || {{tl|Anti-dementia drugs}} | ||
| + | |- | ||
| + | | rowspan=4 | N07 || N07A || Contained within {{tl|Cholinergics}} | ||
| + | |- | ||
| + | | | N07B || {{tl|Drugs used in addictive disorders}} | ||
| + | |- | ||
| + | | | N07C || {{tl|Antivertigo preparations}} | ||
| + | |- | ||
| + | | | N07X || {{tl|Other nervous system drugs}} | ||
| + | |- | ||
| + | | rowspan=5 | S01 || S01A || {{tl|Ophthalmological anti-infectives}} | ||
| + | |- | ||
| + | | | S01E || {{tl|Antiglaucoma preparations and miotics}} | ||
| + | |- | ||
| + | | | S01F || {{tl|Mydriatics and cycloplegics}} | ||
| + | |- | ||
| + | | | S01H || {{tl|Local anesthetics}} | ||
| + | |- | ||
| + | | | S01L || {{tl|Ocular vascular disorder agents}} | ||
| + | |- | ||
| + | | rowspan=11 | V03/V03A || V03AB || {{tl|Antidotes}} | ||
| + | |- | ||
| + | | | V03AC || {{tl|Chelating agents}} | ||
| + | |- | ||
| + | | | V03AE || {{tl|Drugs for treatment of hyperkalemia and hyperphosphatemia}} | ||
| + | |- | ||
| + | | | V03AF || {{tl|Detoxifying agents for antineoplastic treatment}} | ||
| + | |- | ||
| + | | | V03AG || rowspan=7 | {{tl|Other therapeutic products}} (needs expanding) | ||
| + | |- | ||
| + | | | V03AH | ||
| + | |- | ||
| + | | | V03AK | ||
| + | |- | ||
| + | | | V03AM | ||
| + | |- | ||
| + | | | V03AN | ||
| + | |- | ||
| + | | | V03AX | ||
| + | |- | ||
| + | | | V03AZ | ||
| + | |} | ||
| + | |||
| + | |||
| + | =====Invalid or no template exists===== | ||
| + | {{font|Invalid ATC code (or the ATC code does not have a template matched to it)|size=120%|color=red}} | ||
<code><nowiki>{{ATC navboxes|X99}}</nowiki></code> - 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. | <code><nowiki>{{ATC navboxes|X99}}</nowiki></code> - 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. | ||
| − | + | ||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
==TemplateData== | ==TemplateData== | ||
| Line 176: | Line 224: | ||
} | } | ||
}}</templatedata> | }}</templatedata> | ||
| − | |||
| − | |||
Revision as of 09:19, 5 July 2020
| This is a documentation subpage for Template:ATC navboxes. It contains usage information, categories and other content that is not part of the original template page. |
| 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.
Contents
Examples
Single ATC code
{{ATC navboxes|A01}}
Template:Navboxes
Multiple ATC codes
{{ATC navboxes|A01|B01|C01A|D01}}
Template:Navboxes
Errors
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)
{{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.
TemplateData
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 |