Template:Infobox drug: Difference between revisions
From MicrasWiki
Jump to navigationJump to search
(Created page with "<includeonly> <div class="infobox" style="width: 22em; font-size: 88%; border: 1px solid #aaa; margin: 0 0 1em 1em; background-color: #f9f9f9;"> <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"><center>[[File:{{{image}}}|220px|alt={{{alt|}}}|{{{caption|}}}]]</center></div>}} {{#if:{{{caption|}}}|<div c...") |
(Destroy the newlines) |
||
(5 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
<includeonly> | <includeonly> | ||
<div class="infobox" style="width: 22em; font-size: 88%; border: 1px solid #aaa; margin: 0 0 1em 1em; background-color: #f9f9f9;"> | <div class="infobox" style="width: 22em; font-size: 88%; border: 1px solid #aaa; margin: 0 0 1em 1em; background-color: #f9f9f9; padding: 0;"> | ||
<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" | {{#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-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;"> | <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:{{{type|}}}|<tr><td class="infobox-label" style="font-weight: bold;">Type</td><td class="infobox-data">{{{type}}}</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:{{{source|}}}|<tr><td class="infobox-label" style="font-weight: bold;">Source</td><td class="infobox-data">{{{source}}}</td></tr>}} | -->{{#if:{{{type|}}}|<tr><td class="infobox-label" style="font-weight: bold;">Type</td><td class="infobox-data">{{{type}}}</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:{{{source|}}}|<tr><td class="infobox-label" style="font-weight: bold;">Source</td><td class="infobox-data">{{{source}}}</td></tr>}}<!-- | ||
{{#if:{{{ | -->{{#if:{{{legal_status|}}}|<tr><td class="infobox-label" style="font-weight: bold;">Legal Status</td><td class="infobox-data">{{{legal_status}}}</td></tr>}}<!-- | ||
{{#if:{{{administration|}}}|<tr><td class="infobox-label" style="font-weight: bold;">Administration</td><td class="infobox-data">{{{administration}}}</td></tr>}} | -->{{#if:{{{treats|}}}|<tr><td class="infobox-label" style="font-weight: bold;">Treats</td><td class="infobox-data">{{{treats}}}</td></tr>}}<!-- | ||
{{#if:{{{effects|}}}|<tr><td class="infobox-label" style="font-weight: bold;">Effects</td><td class="infobox-data">{{{effects}}}</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:{{{side_effects|}}}|<tr><td class="infobox-label" style="font-weight: bold;">Side Effects</td><td class="infobox-data">{{{side_effects}}}</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:{{{discovered|}}}|<tr><td class="infobox-label" style="font-weight: bold;">Discovered</td><td class="infobox-data">{{{discovered}}}</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:{{{by|}}}|<tr><td class="infobox-label" style="font-weight: bold;">Discovered By</td><td class="infobox-data">{{{by}}}</td></tr>}} | -->{{#if:{{{administration|}}}|<tr><td class="infobox-label" style="font-weight: bold;">Administration</td><td class="infobox-data">{{{administration}}}</td></tr>}}<!-- | ||
</table> | -->{{#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:{{{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:{{{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>}}<!-- | |||
--></table> | |||
</div> | </div> | ||
[[Category:Drugs]] | [[Category:Drugs]] | ||
Line 28: | Line 34: | ||
| name = | | name = | ||
| street_name = | | street_name = | ||
| other_names = | |||
| image = | | image = | ||
| caption = | | caption = | ||
Line 33: | Line 40: | ||
| source = | | source = | ||
| legal_status = | | legal_status = | ||
| treats = | |||
| government_agency_approved = | |||
| related_research_institutions = | |||
| related_pharmaceutical_company = | |||
| frequency_of_administration = | |||
| uses = | | uses = | ||
| administration = | | administration = | ||
Line 44: | Line 56: | ||
* '''name''' - The official name of the drug. | * '''name''' - The official name of the drug. | ||
* '''street_name''' - Common street names for 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 | * '''image''' - (Optional) An image of the drug. Format: FileName.jpg | ||
* '''caption''' - (Optional) Caption for the image. | * '''caption''' - (Optional) Caption for the image. | ||
Line 49: | Line 62: | ||
* '''source''' - The source from which the drug is derived. | * '''source''' - The source from which the drug is derived. | ||
* '''legal_status''' - Legal status of the drug (e.g., Controlled Substance). | * '''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). | * '''uses''' - Primary uses of the drug (e.g., Medicinal, Recreational). | ||
* '''administration''' - How the drug is administered (e.g., Oral, Inhalation). | * '''administration''' - How the drug is administered (e.g., Oral, Inhalation). |
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. |