Template:Infobox drug: Difference between revisions
From MicrasWiki
Jump to navigationJump to search
No edit summary |
(Destroy the newlines) |
||
(2 intermediate revisions by the same user not shown) | |||
Line 5: | Line 5: | ||
{{#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;"> | <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>}}<!-- | ||
{{#if:{{{type|}}}|<tr><td class="infobox-label" style="font-weight: bold;">Type</td><td class="infobox-data">{{{type}}}</td></tr>}} | -->{{#if:{{{type|}}}|<tr><td class="infobox-label" style="font-weight: bold;">Type</td><td class="infobox-data">{{{type}}}</td></tr>}}<!-- | ||
{{#if:{{{source|}}}|<tr><td class="infobox-label" style="font-weight: bold;">Source</td><td class="infobox-data">{{{source}}}</td></tr>}} | -->{{#if:{{{source|}}}|<tr><td class="infobox-label" style="font-weight: bold;">Source</td><td class="infobox-data">{{{source}}}</td></tr>}}<!-- | ||
{{#if:{{{legal_status|}}}|<tr><td class="infobox-label" style="font-weight: bold;">Legal Status</td><td class="infobox-data">{{{legal_status}}}</td></tr>}} | -->{{#if:{{{legal_status|}}}|<tr><td class="infobox-label" style="font-weight: bold;">Legal Status</td><td class="infobox-data">{{{legal_status}}}</td></tr>}}<!-- | ||
{{#if:{{{treats|}}}|<tr><td class="infobox-label" style="font-weight: bold;">Treats</td><td class="infobox-data">{{{treats}}}</td></tr>}} | -->{{#if:{{{treats|}}}|<tr><td class="infobox-label" style="font-weight: bold;">Treats</td><td class="infobox-data">{{{treats}}}</td></tr>}}<!-- | ||
{{#if:{{{government_agency_approved|}}}|<tr><td class="infobox-label" style="font-weight: bold;">Approved By</td><td class="infobox-data">{{{government_agency_approved}}}</td></tr>}} | -->{{#if:{{{government_agency_approved|}}}|<tr><td class="infobox-label" style="font-weight: bold;">Approved By</td><td class="infobox-data">{{{government_agency_approved}}}</td></tr>}}<!-- | ||
{{#if:{{{related_research_institutions|}}}|<tr><td class="infobox-label" style="font-weight: bold;">Research Institutions</td><td class="infobox-data">{{{related_research_institutions}}}</td></tr>}} | -->{{#if:{{{related_research_institutions|}}}|<tr><td class="infobox-label" style="font-weight: bold;">Research Institutions</td><td class="infobox-data">{{{related_research_institutions}}}</td></tr>}}<!-- | ||
{{#if:{{{related_pharmaceutical_company|}}}|<tr><td class="infobox-label" style="font-weight: bold;">Pharmaceutical Company</td><td class="infobox-data">{{{related_pharmaceutical_company}}}</td></tr>}} | -->{{#if:{{{related_pharmaceutical_company|}}}|<tr><td class="infobox-label" style="font-weight: bold;">Pharmaceutical Company</td><td class="infobox-data">{{{related_pharmaceutical_company}}}</td></tr>}}<!-- | ||
{{#if:{{{administration|}}}|<tr><td class="infobox-label" style="font-weight: bold;">Administration</td><td class="infobox-data">{{{administration}}}</td></tr>}} | -->{{#if:{{{administration|}}}|<tr><td class="infobox-label" style="font-weight: bold;">Administration</td><td class="infobox-data">{{{administration}}}</td></tr>}}<!-- | ||
{{#if:{{{frequency_of_administration|}}}|<tr><td class="infobox-label" style="font-weight: bold;">Frequency of Administration</td><td class="infobox-data">{{{frequency_of_administration}}}</td></tr>}} | -->{{#if:{{{frequency_of_administration|}}}|<tr><td class="infobox-label" style="font-weight: bold;">Frequency of Administration</td><td class="infobox-data">{{{frequency_of_administration}}}</td></tr>}}<!-- | ||
{{#if:{{{uses|}}}|<tr><td class="infobox-label" style="font-weight: bold;">Uses</td><td class="infobox-data">{{{uses}}}</td></tr>}} | -->{{#if:{{{uses|}}}|<tr><td class="infobox-label" style="font-weight: bold;">Uses</td><td class="infobox-data">{{{uses}}}</td></tr>}}<!-- | ||
{{#if:{{{effects|}}}|<tr><td class="infobox-label" style="font-weight: bold;">Effects</td><td class="infobox-data">{{{effects}}}</td></tr>}} | -->{{#if:{{{effects|}}}|<tr><td class="infobox-label" style="font-weight: bold;">Effects</td><td class="infobox-data">{{{effects}}}</td></tr>}}<!-- | ||
{{#if:{{{side_effects|}}}|<tr><td class="infobox-label" style="font-weight: bold;">Side Effects</td><td class="infobox-data">{{{side_effects}}}</td></tr>}} | -->{{#if:{{{side_effects|}}}|<tr><td class="infobox-label" style="font-weight: bold;">Side Effects</td><td class="infobox-data">{{{side_effects}}}</td></tr>}}<!-- | ||
{{#if:{{{discovered|}}}|<tr><td class="infobox-label" style="font-weight: bold;">Discovered</td><td class="infobox-data">{{{discovered}}}</td></tr>}} | -->{{#if:{{{discovered|}}}|<tr><td class="infobox-label" style="font-weight: bold;">Discovered</td><td class="infobox-data">{{{discovered}}}</td></tr>}}<!-- | ||
{{#if:{{{by|}}}|<tr><td class="infobox-label" style="font-weight: bold;">Discovered By</td><td class="infobox-data">{{{by}}}</td></tr>}} | -->{{#if:{{{by|}}}|<tr><td class="infobox-label" style="font-weight: bold;">Discovered By</td><td class="infobox-data">{{{by}}}</td></tr>}}<!-- | ||
</table> | --></table> | ||
</div> | </div> | ||
[[Category:Drugs]] | [[Category:Drugs]] |
Latest revision as of 17:46, 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. |