Template:Substance: Difference between revisions
Template page
More actions
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|}}}}}}} | ||
{| class="wikitable infobox-substance" | |||
| Prodrug of | |||
| Molar mass | |||
| SMILES | |||
| IUPAC name | |||
| Legal status DE | |||
| Legal status AT | |||
| Legal status CH | |||
| Legal status US | |||
| Legal status UK | |||
| Legal status NL | |||
| Legal status RU | |||
| Legal status 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}}}]] | ||
}} | }} | ||
{{#if:{{{prodrug_of|}}}| | {{#if:{{{prodrug_of|}}}| | ||
|- | |- | ||
! | ! Prodrug of | ||
| [[Substance:{{{prodrug_of}}}|{{{prodrug_of}}}]] | | [[Substance:{{{prodrug_of}}}|{{{prodrug_of}}}]] | ||
}} | }} | ||
{{#if:{{{formula|}}}| | {{#if:{{{formula|}}}| | ||
|- | |- | ||
! | ! Formula | ||
| {{{formula}}} | | {{{formula}}} | ||
}} | }} | ||
{{#if:{{{molar_mass|}}}| | {{#if:{{{molar_mass|}}}| | ||
|- | |- | ||
! | ! Molar mass | ||
| {{{molar_mass}}} g/mol | | {{{molar_mass}}} g/mol | ||
}} | }} | ||
{{#if:{{{cas|}}}| | {{#if:{{{cas|}}}| | ||
|- | |- | ||
! | ! CAS number | ||
| {{{cas}}} | | {{{cas}}} | ||
}} | }} | ||
{{#if:{{{iupac|}}}| | {{#if:{{{iupac|}}}| | ||
|- | |- | ||
! | ! IUPAC name | ||
| <small>{{{iupac}}}</small> | | <small>{{{iupac}}}</small> | ||
}} | }} | ||
{{#if:{{{smiles|}}}| | {{#if:{{{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 | ||
| {{{legal_de}}} | | {{{legal_de}}} | ||
}} | }} | ||
{{#if:{{{legal_at|}}}| | {{#if:{{{legal_at|}}}| | ||
|- | |- | ||
! | ! Austria | ||
| {{{legal_at}}} | | {{{legal_at}}} | ||
}} | }} | ||
{{#if:{{{legal_ch|}}}| | {{#if:{{{legal_ch|}}}| | ||
|- | |- | ||
! | ! Switzerland | ||
| {{{legal_ch}}} | | {{{legal_ch}}} | ||
}} | }} | ||
{{#if:{{{legal_us|}}}| | {{#if:{{{legal_us|}}}| | ||
|- | |- | ||
! | ! United States | ||
| {{{legal_us}}} | | {{{legal_us}}} | ||
}} | }} | ||
{{#if:{{{legal_uk|}}}| | {{#if:{{{legal_uk|}}}| | ||
|- | |- | ||
! | ! United Kingdom | ||
| {{{legal_uk}}} | | {{{legal_uk}}} | ||
}} | }} | ||
{{#if:{{{legal_nl|}}}| | {{#if:{{{legal_nl|}}}| | ||
|- | |- | ||
! | ! Netherlands | ||
| {{{legal_nl}}} | | {{{legal_nl}}} | ||
}} | }} | ||
{{#if:{{{legal_ru|}}}| | {{#if:{{{legal_ru|}}}| | ||
|- | |- | ||
! | ! Russia | ||
| {{{legal_ru}}} | | {{{legal_ru}}} | ||
}} | }} | ||
{{#if:{{{legal_by|}}}| | {{#if:{{{legal_by|}}}| | ||
|- | |- | ||
! | ! 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.
| Parameter | Description | Type | Status | |
|---|---|---|---|---|
| Name | name | Display name. Defaults to page name. | String | suggested |
| Image | image | Filename without the File: prefix. | File | suggested |
| Image caption | image_caption | no description | String | optional |
| Substance class | class | Pharmacological class, e.g. Benzodiazepine, Opioid, Stimulant. | String | suggested |
| Prodrug of | prodrug_of | Active substance this is a prodrug of (bare name, no namespace). | String | optional |
| Molecular formula | formula | Use <sub> tags for subscripts. | String | optional |
| Molar mass (g/mol) | molar_mass | no description | Number | optional |
| CAS number | cas | no description | String | optional |
| IUPAC name | iupac | no description | String | optional |
| SMILES | smiles | no description | String | optional |
| Legal status — Germany | legal_de | no description | String | optional |
| Legal status — Austria | legal_at | no description | String | optional |
| Legal status — Switzerland | legal_ch | no description | String | optional |
| Legal status — United States | legal_us | no description | String | optional |
| Legal status — United Kingdom | legal_uk | no description | String | optional |
| Legal status — Netherlands | legal_nl | no description | String | optional |
| Legal status — Russia | legal_ru | no description | String | optional |
| Legal status — Belarus | legal_by | no description | String | optional |