Template:Infobox drug: Difference between revisions
From MicrasWiki
Jump to navigationJump to search
(Try a thing) Tag: Reverted |
Tag: Rollback |
||
Line 3: | Line 3: | ||
<div class="infobox-header" style="font-size: 110%; font-weight: bold; text-align: center; padding: 2px; background-color: #e9e9e9;">{{{name|{{PAGENAME}}}}}</div> | <div class="infobox-header" style="font-size: 110%; font-weight: bold; text-align: center; padding: 2px; background-color: #e9e9e9;">{{{name|{{PAGENAME}}}}}</div> | ||
{{#if:{{{image|}}}|<div class="infobox-image" style="display: block; width: 220px; margin: auto;">[[File:{{{image}}}|220px|alt={{{alt|}}}|{{{caption|}}}]]</div>}} | {{#if:{{{image|}}}|<div class="infobox-image" style="display: block; width: 220px; margin: auto;">[[File:{{{image}}}|220px|alt={{{alt|}}}|{{{caption|}}}]]</div>}} | ||
{{#if:{{{caption|}}}|<div class="infobox-caption" style="text-align: center; padding: 0; margin-top: 2px;">{{{caption}}}</div>}} | {{#if:{{{caption|}}}|<div class="infobox-caption" style="text-align: center; padding: 0; margin-top: 2px;">{{{caption}}}</div>}} | ||
<table class="infobox-table" style="width: 100%; border-spacing: 2px; margin-top: 2px;"> | |||
{{#if:{{{street_name|}}}|<tr><td class="infobox-label" style="font-weight: bold;">Street Name</td><td class="infobox-data">{{{street_name}}}</td></tr>}} | {{#if:{{{street_name|}}}|<tr><td class="infobox-label" style="font-weight: bold;">Street Name</td><td class="infobox-data">{{{street_name}}}</td></tr>}} | ||
{{#if:{{{other_names|}}}|<tr><td class="infobox-label" style="font-weight: bold;">Other Names</td><td class="infobox-data">{{{other_names}}}</td></tr>}} | {{#if:{{{other_names|}}}|<tr><td class="infobox-label" style="font-weight: bold;">Other Names</td><td class="infobox-data">{{{other_names}}}</td></tr>}} |
Revision as of 17:06, 20 February 2024
This template is used to create an infobox for drug-related articles. Here's how to use this template:
{{Infobox drug | name = | street_name = | other_names = | image = | caption = | type = | source = | legal_status = | treats = | government_agency_approved = | related_research_institutions = | related_pharmaceutical_company = | frequency_of_administration = | uses = | administration = | effects = | side_effects = | discovered = | by = }}
- name - The official name of the drug.
- street_name - Common street names for the drug.
- other_names - Any other names the drug is known by.
- image - (Optional) An image of the drug. Format: FileName.jpg
- caption - (Optional) Caption for the image.
- type - Type of drug (e.g., Stimulant, Depressant).
- source - The source from which the drug is derived.
- legal_status - Legal status of the drug (e.g., Controlled Substance).
- treats - What the drug is used to treat.
- government_agency_approved - Which government agency approved the drug.
- related_research_institutions - Any research institutions related to the drug.
- related_pharmaceutical_company - The pharmaceutical company associated with the drug.
- frequency_of_administration - How often the drug needs to be administered.
- uses - Primary uses of the drug (e.g., Medicinal, Recreational).
- administration - How the drug is administered (e.g., Oral, Inhalation).
- effects - Main effects of the drug.
- side_effects - Known side effects.
- discovered - When the drug was discovered.
- by - Who discovered the drug.
Each article using this template will be automatically categorized under.
Editors can experiment in this template's sandbox (create) and testcases (create) pages. Subpages of this template. |