Jump to content
 







Main menu
   


Navigation  



Main page
Contents
Current events
Random article
About Wikipedia
Contact us
Donate
 




Contribute  



Help
Learn to edit
Community portal
Recent changes
Upload file
 








Search  

































Create account

Log in
 









Create account
 Log in
 




Pages for logged out editors learn more  



Contributions
Talk
 



















Contents

   



(Top)
 


1 Examples  



1.1  Single ATC code  





1.2  Multiple ATC codes  





1.3  Errors  



1.3.1  Non-specific  





1.3.2  Invalid or no template exists  









2 TemplateData  














Template:ATC navboxes







 

Edit links
 









Template
Talk
 

















Read
Edit
View history
 








Tools
   


Actions  



Read
Edit
View history
 




General  



What links here
Related changes
Upload file
Special pages
Permanent link
Page information
Get shortened URL
Download QR code
Wikidata item
 




Print/export  



Download as PDF
Printable version
 
















Appearance
   

 






From Wikipedia, the free encyclopedia
 


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

List of ATC codes that are not specific enough to parse in this template
Non-specific
ATC code
Alternative
more specific
codes
A02 A02A {{Antacids}}
A02B {{Drugs for peptic ulcer and GORD}}
C01 C01A {{Cardiac glycosides}}
C01B {{Antiarrhythmic agents}}
C01C {{Cardiac stimulants excluding cardiac glycosides}}
C01D {{Vasodilators used in cardiac diseases}}
G02 G02A {{Uterotonics}}
G02B {{Birth control methods}} (with G03A)
G02CA {{Labor repressants}}
G02CB {{Prolactin inhibitors and anti-inflammatory products for vaginal administration}}
G02CC
G02C G02CA {{Labor repressants}}
G02CB {{Prolactin inhibitors and anti-inflammatory products for vaginal administration}}
G02CC
G03 G03A {{Birth control methods}} (with G02B)
G03G {{GnRH and gonadotropins}}
G03X {{Other sex hormones and modulators of the genital system}}
G04 G04B {{Urologicals, including antispasmodics}}, see also G04BE below.
G04BE {{Drugs for erectile dysfunction and premature ejaculation}}
G04C {{Drugs used in benign prostatic hypertrophy}}
J01 J01A {{Protein synthesis inhibitor antibiotics}}
J01B
J01F
J01G
J01C {{Cell wall disruptive antibiotics}}
J01D
J01E {{Nucleic acid inhibitors}}
J01M
J01X {{Other antibacterials}}
M01 M01A contained within {{Anti-inflammatory products}}
M01C {{Antirheumatic products}}
N01 N01A {{General anesthetics}}
N01B {{Local anesthetics}}
N02 N02A {{Analgesics}}
N02B
N02C {{Antimigraine preparations}}
N05 N05A {{Antipsychotics}}
N05B {{Anxiolytics}}
N05C {{Hypnotics and sedatives}}
N06 N06A {{Antidepressants}}
N06B Contained within {{Stimulants}}
N06D {{Anti-dementia drugs}}
N07 N07A Contained within {{Cholinergics}}
N07B {{Drugs used in addictive disorders}}
N07C {{Antivertigo preparations}}
N07X {{Other nervous system drugs}}
S01 S01A {{Ophthalmological anti-infectives}}
S01E {{Antiglaucoma preparations and miotics}}
S01F {{Mydriatics and cycloplegics}}
S01H {{Local anesthetics}}
S01L {{Ocular vascular disorder agents}}
V03/V03A V03AB {{Antidotes}}
V03AC {{Chelating agents}}
V03AE {{Drugs for treatment of hyperkalemia and hyperphosphatemia}}
V03AF {{Detoxifying agents for antineoplastic treatment}}
V03AG {{Other therapeutic products}} (needs expanding)
V03AH
V03AK
V03AM
V03AN
V03AX
V03AZ


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]
This is the TemplateData for this template used by TemplateWizard, VisualEditor and other tools. See a monthly parameter usage report for Template:ATC navboxes in articles based on its 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.

Template parameters[Edit template data]

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

Retrieved from "https://en.wikipedia.org/w/index.php?title=Template:ATC_navboxes&oldid=966135774"

Category: 
Lua-based templates
Hidden categories: 
Navboxes using background colours
Templates using TemplateData
Uncategorized pages
All uncategorized pages
 



This page was last edited on 5 July 2020, at 08:18 (UTC).

Text is available under the Creative Commons Attribution-ShareAlike License 4.0; additional terms may apply. By using this site, you agree to the Terms of Use and Privacy Policy. Wikipedia® is a registered trademark of the Wikimedia Foundation, Inc., a non-profit organization.



Privacy policy

About Wikipedia

Disclaimers

Contact Wikipedia

Code of Conduct

Developers

Statistics

Cookie statement

Mobile view



Wikimedia Foundation
Powered by MediaWiki