Toggle menu
Toggle preferences menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

Template:Substance: Difference between revisions

Template page
Created page with "<noinclude> Infobox for substance articles. Automatically annotates the page with Semantic MediaWiki properties. <templatedata> { "description": "Infobox for psychoactive substance articles.", "params": { "name": { "label": "Name", "description": "Display name. Defaults to page name.", "type": "string", "suggested": true }, "image": { "label": "Image", "description":..."
 
No edit summary
Line 66: Line 66:
}
}
</templatedata>
</templatedata>
</noinclude><includeonly>{{#set:
</noinclude><includeonly>{{#if:{{{class|}}}|{{#set:Substance class={{{class|}}}}}}}{{#if:{{{prodrug_of|}}}|{{#set:Prodrug of={{{prodrug_of|}}}}}}}{{#if:{{{molar_mass|}}}|{{#set:Molar mass={{{molar_mass|}}}}}}}{{#if:{{{smiles|}}}|{{#set:SMILES={{{smiles|}}}}}}}{{#if:{{{iupac|}}}|{{#set:IUPAC name={{{iupac|}}}}}}}{{#if:{{{legal_de|}}}|{{#set:Legal status DE={{{legal_de|}}}}}}}{{#if:{{{legal_at|}}}|{{#set:Legal status AT={{{legal_at|}}}}}}}{{#if:{{{legal_ch|}}}|{{#set:Legal status CH={{{legal_ch|}}}}}}}{{#if:{{{legal_us|}}}|{{#set:Legal status US={{{legal_us|}}}}}}}{{#if:{{{legal_uk|}}}|{{#set:Legal status UK={{{legal_uk|}}}}}}}{{#if:{{{legal_nl|}}}|{{#set:Legal status NL={{{legal_nl|}}}}}}}{{#if:{{{legal_ru|}}}|{{#set:Legal status RU={{{legal_ru|}}}}}}}{{#if:{{{legal_by|}}}|{{#set:Legal status BY={{{legal_by|}}}}}}}
  Substance class = {{{class|}}}
{| class="wikitable infobox-substance"
| Prodrug of       = {{{prodrug_of|}}}
| Molar mass       = {{{molar_mass|}}}
| SMILES           = {{{smiles|}}}
| IUPAC name       = {{{iupac|}}}
| Legal status DE = {{{legal_de|}}}
| Legal status AT = {{{legal_at|}}}
| Legal status CH = {{{legal_ch|}}}
| Legal status US = {{{legal_us|}}}
| Legal status UK = {{{legal_uk|}}}
| Legal status NL = {{{legal_nl|}}}
| Legal status RU = {{{legal_ru|}}}
| Legal status BY = {{{legal_by|}}}
}}{| class="wikitable infobox-substance"
! colspan="2" class="infobox-substance__title" | {{{name|{{PAGENAME}}}}}
! colspan="2" class="infobox-substance__title" | {{{name|{{PAGENAME}}}}}
{{#if:{{{image|}}}|
{{#if:{{{image|}}}|
Line 92: Line 79:
{{#if:{{{class|}}}|
{{#if:{{{class|}}}|
|-
|-
! | Class
! Class
| [[{{{class}}}]]
| [[{{{class}}}]]
}}
}}
{{#if:{{{prodrug_of|}}}|
{{#if:{{{prodrug_of|}}}|
|-
|-
! | Prodrug of
! Prodrug of
| [[Substance:{{{prodrug_of}}}|{{{prodrug_of}}}]]
| [[Substance:{{{prodrug_of}}}|{{{prodrug_of}}}]]
}}
}}
{{#if:{{{formula|}}}|
{{#if:{{{formula|}}}|
|-
|-
! | Formula
! Formula
| {{{formula}}}
| {{{formula}}}
}}
}}
{{#if:{{{molar_mass|}}}|
{{#if:{{{molar_mass|}}}|
|-
|-
! | Molar mass
! Molar mass
| {{{molar_mass}}} g/mol
| {{{molar_mass}}} g/mol
}}
}}
{{#if:{{{cas|}}}|
{{#if:{{{cas|}}}|
|-
|-
! | CAS number
! CAS number
| {{{cas}}}
| {{{cas}}}
}}
}}
{{#if:{{{iupac|}}}|
{{#if:{{{iupac|}}}|
|-
|-
! | IUPAC name
! IUPAC name
| <small>{{{iupac}}}</small>
| <small>{{{iupac}}}</small>
}}
}}
{{#if:{{{smiles|}}}|
{{#if:{{{smiles|}}}|
|-
|-
! | SMILES
! SMILES
| <small style="word-break:break-all">{{{smiles}}}</small>
| <small style="word-break:break-all">{{{smiles}}}</small>
}}
}}
Line 131: Line 118:
{{#if:{{{legal_de|}}}|
{{#if:{{{legal_de|}}}|
|-
|-
! | Germany
! Germany
| {{{legal_de}}}
| {{{legal_de}}}
}}
}}
{{#if:{{{legal_at|}}}|
{{#if:{{{legal_at|}}}|
|-
|-
! | Austria
! Austria
| {{{legal_at}}}
| {{{legal_at}}}
}}
}}
{{#if:{{{legal_ch|}}}|
{{#if:{{{legal_ch|}}}|
|-
|-
! | Switzerland
! Switzerland
| {{{legal_ch}}}
| {{{legal_ch}}}
}}
}}
{{#if:{{{legal_us|}}}|
{{#if:{{{legal_us|}}}|
|-
|-
! | United States
! United States
| {{{legal_us}}}
| {{{legal_us}}}
}}
}}
{{#if:{{{legal_uk|}}}|
{{#if:{{{legal_uk|}}}|
|-
|-
! | United Kingdom
! United Kingdom
| {{{legal_uk}}}
| {{{legal_uk}}}
}}
}}
{{#if:{{{legal_nl|}}}|
{{#if:{{{legal_nl|}}}|
|-
|-
! | Netherlands
! Netherlands
| {{{legal_nl}}}
| {{{legal_nl}}}
}}
}}
{{#if:{{{legal_ru|}}}|
{{#if:{{{legal_ru|}}}|
|-
|-
! | Russia
! Russia
| {{{legal_ru}}}
| {{{legal_ru}}}
}}
}}
{{#if:{{{legal_by|}}}|
{{#if:{{{legal_by|}}}|
|-
|-
! | Belarus
! Belarus
| {{{legal_by}}}
| {{{legal_by}}}
}}
}}
|}</includeonly>
|}</includeonly>

Revision as of 14:18, 12 May 2026

Infobox for substance articles. Automatically annotates the page with Semantic MediaWiki properties.

Infobox for psychoactive substance articles.

Template parameters[Edit template data]

This template prefers block formatting of parameters.

ParameterDescriptionTypeStatus
Namename

Display name. Defaults to page name.

Stringsuggested
Imageimage

Filename without the File: prefix.

Filesuggested
Image captionimage_caption

no description

Stringoptional
Substance classclass

Pharmacological class, e.g. Benzodiazepine, Opioid, Stimulant.

Stringsuggested
Prodrug ofprodrug_of

Active substance this is a prodrug of (bare name, no namespace).

Stringoptional
Molecular formulaformula

Use <sub> tags for subscripts.

Stringoptional
Molar mass (g/mol)molar_mass

no description

Numberoptional
CAS numbercas

no description

Stringoptional
IUPAC nameiupac

no description

Stringoptional
SMILESsmiles

no description

Stringoptional
Legal status — Germanylegal_de

no description

Stringoptional
Legal status — Austrialegal_at

no description

Stringoptional
Legal status — Switzerlandlegal_ch

no description

Stringoptional
Legal status — United Stateslegal_us

no description

Stringoptional
Legal status — United Kingdomlegal_uk

no description

Stringoptional
Legal status — Netherlandslegal_nl

no description

Stringoptional
Legal status — Russialegal_ru

no description

Stringoptional
Legal status — Belaruslegal_by

no description

Stringoptional