Template:Infobox drug: Difference between revisions

From RACKWiki
(Created page with "<templatestyles src="Infobox drug/styles.css" /><div class="infobox infobox-drug"> <div class="infobox-title">{{PAGENAME}}</div> <table class="table">{{#if:{{{other_names|}}}|<tr> <th class="infobox-table-section-end">Other names</th> <td class="infobox-table-section-end">{{{other_names}}}</td> </tr>}}{{#if:{{{image_file|}}}|<tr><td colspan="2" class="infobox-image"> [[File:{{{image_file}}}|320px]]</td></tr>{{#if:{{{image_caption|}}}|<tr> <td cols...")
Tag: 2017 source edit
 
(Added Unknown as an option for Addiction risk)
 
(12 intermediate revisions by one other user not shown)
Line 9: Line 9:
     <tr>
     <tr>
       <th>Health risk</th>
       <th>Health risk</th>
       <td class="infobox-health_risk health_risk-{{{health_risk}}}">{{{health_risk}}}</td>
       <td class="infobox-health-risk infobox-risk-{{{health_risk}}}">{{{health_risk}}}</td>
    </tr>
    <tr>
      <th>Addiction risk</th>
      <td class="infobox-addiction-risk infobox-risk-{{{addiction_risk}}}">{{{addiction_risk}}}</td>
     </tr>
     </tr>
     <tr>
     <tr>
       <th>Legal risk</th>
       <th>Legal risk</th>
       <td class="infobox-legal_risk legal_risk-{{{legal_risk}}}">{{{legal_risk}}}</td>
       <td class="infobox-legal-risk infobox-risk-{{{legal_risk}}}">{{{legal_risk}}}</td>
     </tr>{{#if:{{{link_psychonautwiki|}}}|{{{link_erowid|}}}|
     </tr>{{#if:{{{link_psychonautwiki|}}}{{{link_erowid|}}}|
     <tr>
     <tr>
       <th>Links</th>
       <th>External links</th>
       <td class="infobox-links">
       <td class="infobox-links">{{#if:{{{link_psychonautwiki|}}}|[{{{link_psychonautwiki}}} PsychonautWiki]<br/>}}{{#if:{{{link_erowid|}}}|[{{{link_erowid}}} Erowid]<br/>}}</td>
        {{#if:{{{link_psychonautwiki|}}}|<a href="{{{link_psychonautwiki}}}" target="_blank">PsychonautWiki</a>}}
        {{#if:{{{link_erowid|}}}|<a href="{{{link_erowid}}}" target="_blank">Erowid</a>}}
      </td>
     </tr>}}
     </tr>}}
   </table>
   </table>
</div><noinclude>
</div><includeonly>
[[Category:Drugs]]</includeonly><noinclude>
<templatedata>
<templatedata>
{
{
Line 47: Line 49:
"health_risk": {
"health_risk": {
"label": "Health risk",
"label": "Health risk",
"description": "Classify the health risk of this drug. Choose from: High, Moderate, Low.",
"description": "Classify the health risk of this drug. Choose from: High, Moderate, Mild.",
"example": "High",
"type": "line",
"required": true
},
"addiction_risk": {
"label": "Addiction risk",
"description": "Classify the addiction risk of this drug. Choose from: High, Moderate, Mild, Unknown.",
"example": "High",
"example": "High",
"type": "content",
"type": "line",
"required": true
"required": true
},
},
"legal_risk": {
"legal_risk": {
"label": "Legal risk",
"label": "Legal risk",
"description": "Classify the legal risk of this drug. Choose from: High, Moderate, Low",
"description": "Classify the legal risk of this drug. Choose from: High, Moderate, Mild.",
"example": "High",
"example": "High",
"type": "content",
"type": "line",
"required": true
"required": true
},
},
Line 79: Line 88:
"image_caption",
"image_caption",
"health_risk",
"health_risk",
"addiction_risk",
"legal_risk",
"legal_risk",
"link_psychonautwiki",
"link_psychonautwiki",

Latest revision as of 02:40, 9 February 2024

Infobox drug
Health risk {{{health_risk}}}
Addiction risk {{{addiction_risk}}}
Legal risk

This Infobox summarizes a drug at the top of the article.

[Edit template data]

Template parameters

This template prefers block formatting of parameters.

ParameterDescriptionTypeStatus
Other namesother_names

Other names for this drug

Example
Crystal, Ice, Tina
Contentoptional
Article imageimage_file

An relevant image

Example
Methamphetamine.jpg
Fileoptional
Article image captionimage_caption

A caption for the article image

Contentoptional
Health riskhealth_risk

Classify the health risk of this drug. Choose from: High, Moderate, Mild.

Example
High
Linerequired
Addiction riskaddiction_risk

Classify the addiction risk of this drug. Choose from: High, Moderate, Mild, Unknown.

Example
High
Linerequired
Legal risklegal_risk

Classify the legal risk of this drug. Choose from: High, Moderate, Mild.

Example
High
Linerequired
Link to PsychonautWiki articlelink_psychonautwiki

Provide a link to the PsychonautWiki article about this drug

Example
https://psychonautwiki.org/wiki/Methamphetamine
URLrequired
Link to Erowid articlelink_erowid

Provide a link to the Erowid article about this drug

Example
https://erowid.org/chemicals/meth/meth.shtml
URLrequired