Actions

Template

Template:Infobox drug

From W8MD weight loss and sleep centers

   Template documentation
   No documentation subpage exists yet.
   You can create documentation for this template at Template:Infobox drug/doc.
   Suggested documentation sections:
   * == Usage ==
   * == Parameters ==
   * == Examples ==
   * == See also ==
   * <includeonly>[[Category:Templates]]</includeonly>

Documentation helper template for displaying template documentation subpages


Template:Documentation is a helper template used on template pages to display documentation from a separate documentation subpage, usually named /doc.

This follows the common MediaWiki pattern of keeping template code separate from explanatory documentation. MediaWiki templates are transcluded using double braces, and documentation subpages make it easier to protect or maintain template code while still allowing usage notes, examples, and categories to be edited separately.

Usage

Place this at the bottom of a template page, outside the active template code:

<noinclude>
{{Documentation}}
</noinclude>

A typical template page should look like this:

<includeonly>
Template code goes here.
</includeonly><noinclude>
{{Documentation}}
</noinclude>

Custom documentation page

By default, this template transcludes documentation from:

{{FULLPAGENAME}}/doc

You can also specify a custom documentation page:

{{Documentation|Template:Example/doc}}

Recommended /doc page structure

A good documentation subpage usually includes:

== Usage ==
== Parameters ==
== Examples ==
== See also ==
<includeonly>
[[Category:Templates]]
</includeonly>

Why use documentation subpages?

Documentation subpages are useful because they:

  • Keep template code clean and easier to maintain.
  • Allow categories to be placed on the documentation page instead of inside active template code.
  • Allow usage examples and parameter explanations without affecting template output.
  • Make protected templates easier to document.
  • Reduce accidental edits to working template code.

Notes

  • Add template categories to the /doc page, not the main template page.
  • Place categories inside <includeonly>...</includeonly> on the documentation page.
  • Use <noinclude>{{Documentation}}</noinclude> at the bottom of templates.
  • Use <nowiki>...</nowiki> or <pre>...</pre> when showing template code examples.

See also


Usage

This template creates a right-aligned infobox for drug, medication, prescription medication, anti-obesity medication, GLP-1 receptor agonist, diabetes medication, and related pharmaceutical articles.

{{Infobox drug
| drug_name         = Tirzepatide
| image             = [[File:Tirzepatide structure.svg|250px]]
| caption           = Structure of [[tirzepatide]]
| tradename         = [[Zepbound]], [[Mounjaro]]
| generic_name      = [[Tirzepatide]]
| drug_class        = [[Dual GIP and GLP-1 receptor agonist]], [[incretin therapy]]
| routes_of_administration = [[Subcutaneous injection]]
| uses              = [[Chronic weight management]], [[type 2 diabetes]], [[obstructive sleep apnea]]
| indications       = [[Obesity]], [[overweight]] with weight-related conditions, [[type 2 diabetes]]
| mechanism         = Activates [[GIP receptor]] and [[GLP-1 receptor]] pathways
| frequency         = Once weekly
| dosage_forms      = Single-dose injection pen or vial, depending on product and market
| pregnancy_category= Consult physician; not recommended during pregnancy unless specifically advised
| breastfeeding     = Consult physician
| contraindications = Personal or family history of [[medullary thyroid carcinoma]] or [[Multiple endocrine neoplasia syndrome type 2]]
| side_effects      = [[Nausea]], [[diarrhea]], [[vomiting]], [[constipation]], abdominal pain
| serious_side_effects = [[Pancreatitis]], [[gallbladder disease]], serious allergic reaction, kidney injury, severe gastrointestinal disease
| interactions      = [[Insulin]], [[sulfonylurea]]s, oral medications affected by delayed gastric emptying
| legal_status      = Prescription-only medication
| manufacturer      = [[Eli Lilly and Company]]
| approval_status   = FDA-approved for specific indications depending on brand
| fda_approval      = See prescribing information
| related           = [[Semaglutide]], [[Wegovy]], [[Ozempic]], [[Liraglutide]], [[Saxenda]]
| synonyms          = Dual incretin agonist
}}

Blank template

{{Infobox drug
| drug_name         = 
| image             = 
| caption           = 
| tradename         = 
| generic_name      = 
| drug_class        = 
| routes_of_administration = 
| uses              = 
| indications       = 
| mechanism         = 
| frequency         = 
| dosage_forms      = 
| pregnancy_category= 
| breastfeeding     = 
| contraindications = 
| side_effects      = 
| serious_side_effects = 
| interactions      = 
| legal_status      = 
| manufacturer      = 
| approval_status   = 
| fda_approval      = 
| related           = 
| synonyms          = 
}}

See also