{{Drugbox/sandbox | legal_UN = N I IV | legal_US = List I | legal_EU = designer drug}}
{{Drugbox/sandbox | legal_UN = N I III | legal_US = List I OTC | legal_EU = category 1 precursor}}
{{Drugbox/sandbox | legal_UN = N II III | legal_US = List I Rx | legal_EU = category 2 precursor}}
{{Drugbox/sandbox | legal_UN = N I | legal_US = List II | legal_EU = category 3 precursor}}
{{Drugbox/sandbox | legal_UN = N II | legal_US = List II OTC}}
{{Drugbox/sandbox | legal_UN = P I | legal_US = List II Rx}}
{{Drugbox/sandbox | legal_UN = P II | legal_US = List I CMEA OTC}}
{{Drugbox/sandbox | legal_UN = P III | legal_US = List I CMEA}}
{{Drugbox/sandbox | legal_UN = P IV | legal_US = Non-standard legal status}}
{{Drugbox/sandbox | legal_UN = Pre I}}
{{Drugbox/sandbox | legal_UN = Pre II}}
Documentation (comments):
| legal_US = <!-- OTC, Rx-only, Schedule I/II/III/IV/V, DEA I/II, DEA I/II OTC, DEA I/II Rx -->
| legal_UN = <!-- N I, N II, N I III, N II III, N I IV, P I, P II, P III, P IV, Pre I, Pre II -->
| legal_EU = <!-- designer drug, category 1 precursor, category 2 precursor, category 3 precursor -->
{{#if:{{{legal_US|}}} |
{{#switch: {{{legal_US|}}}
| otc | OTC = [[Over-the-counter drug|OTC]]
| {{Unicode|℞}}-only | {{Unicode|℞}} | rx | Rx | rx-only | Rx-only = [[Prescription drug|{{Unicode|℞}}<small>-only</small>]]
| Schedule I = [[Controlled_Substances_Act#Schedule_I_drugs|Schedule I]]{{#ifeq: {{NAMESPACE}}| {{ns:0}} |[[Category:United States controlled drugs]]}}
| Schedule II = [[Controlled_Substances_Act#Schedule_II_drugs|Schedule II]]{{#ifeq: {{NAMESPACE}}| {{ns:0}} |[[Category:United States controlled drugs]]}}
| Schedule III = [[Controlled_Substances_Act#Schedule_III_drugs|Schedule III]]{{#ifeq: {{NAMESPACE}}| {{ns:0}} |[[Category:United States controlled drugs]]}}
| Schedule IV = [[Controlled_Substances_Act#Schedule_IV_drugs|Schedule IV]]{{#ifeq: {{NAMESPACE}}| {{ns:0}} |[[Category:United States controlled drugs]]}}
| Schedule V = [[Controlled_Substances_Act#Schedule_V_drugs|Schedule V]]{{#ifeq: {{NAMESPACE}}| {{ns:0}} |[[Category:United States controlled drugs]]}}
| DEA I = [[DEA list of chemicals#List I chemicals|DEA List I]]{{#ifeq: {{NAMESPACE}}| {{ns:0}} |[[Category:United States regulated drug precursors]]}}
| DEA II = [[DEA list of chemicals#List II chemicals|DEA List II]]{{#ifeq: {{NAMESPACE}}| {{ns:0}} |[[Category:United States regulated drug precursors]]}}
| DEA I OTC = [[DEA list of chemicals#List I chemicals|DEA List I]] [[Over-the-counter drug|OTC]]{{#ifeq: {{NAMESPACE}}| {{ns:0}} |[[Category:United States regulated drug precursors]]}}
| DEA II OTC = [[DEA list of chemicals#List II chemicals|DEA List II]] [[Over-the-counter drug|OTC]]{{#ifeq: {{NAMESPACE}}| {{ns:0}} |[[Category:United States regulated drug precursors]]}}
| DEA I {{Unicode|℞}}-only | DEA I {{Unicode|℞}} | DEA I RX | DEA I Rx = [[DEA list of chemicals#List I chemicals|DEA List I]] [[Prescription drug|{{Unicode|℞}}<small>-only</small>]]{{#ifeq: {{NAMESPACE}}| {{ns:0}} |[[Category:United States regulated drug precursors]]}}
| DEA II {{Unicode|℞}}-only | DEA II {{Unicode|℞}} | DEA II RX | DEA II Rx = [[DEA list of chemicals#List II chemicals|DEA List II]] [[Prescription drug|{{Unicode|℞}}<small>-only</small>]]{{#ifeq: {{NAMESPACE}}| {{ns:0}} |[[Category:United States regulated drug precursors]]}}
| ?
}}{{sp}}<small>([[United States|US]])</small>{{sp}}
}}{{#if:{{{legal_UN|}}} |
{{#switch: {{{legal_UN|}}}
| N I | Narcotic Schedule I = [[Single Convention on Narcotic Drugs|Narcotic Schedule I]]{{#ifeq: {{NAMESPACE}}| {{ns:0}} |[[Category:United Nations controlled drugs]]}}
| N II | Narcotic Schedule II = [[Single Convention on Narcotic Drugs|Narcotic Schedule II]]{{#ifeq: {{NAMESPACE}}| {{ns:0}} |[[Category:United Nations controlled drugs]]}}
| N I III | Narcotic Schedules I and III = [[Single Convention on Narcotic Drugs|Narcotic Schedule I and III]]{{#ifeq: {{NAMESPACE}}| {{ns:0}} |[[Category:United Nations controlled drugs]]}}
| N II III | Narcotic Schedules II and III = [[Single Convention on Narcotic Drugs|Narcotic Schedules II and III]]{{#ifeq: {{NAMESPACE}}| {{ns:0}} |[[Category:United Nations controlled drugs]]}}
| N I IV | Narcotic Schedules I and IV = [[Single Convention on Narcotic Drugs|Narcotic Schedules I and IV]]{{#ifeq: {{NAMESPACE}}| {{ns:0}} |[[Category:United Nations controlled drugs]]}}
| P I | Psychotropic Schedule I = [[Convention on Psychotropic Substances|Psychotropic Schedule I]]{{#ifeq: {{NAMESPACE}}| {{ns:0}} |[[Category:United Nations controlled drugs]]}}
| P II | Psychotropic Schedule II = [[Convention on Psychotropic Substances|Psychotropic Schedule II]]{{#ifeq: {{NAMESPACE}}| {{ns:0}} |[[Category:United Nations controlled drugs]]}}
| P III | Psychotropic Schedule III = [[Convention on Psychotropic Substances|Psychotropic Schedule III]]{{#ifeq: {{NAMESPACE}}| {{ns:0}} |[[Category:United Nations controlled drugs]]}}
| P IV | Psychotropic Schedule IV = [[Convention on Psychotropic Substances|Psychotropic Schedule IV]]{{#ifeq: {{NAMESPACE}}| {{ns:0}} |[[Category:United Nations controlled drugs]]}}
| Pre I | Precursors Table I = [[United Nations Convention Against Illicit Traffic in Narcotic Drugs and Psychotropic Substances|Precursors Table I]]{{#ifeq: {{NAMESPACE}}| {{ns:0}} |[[Category:United Nations regulated drug precursors]]}}
| Pre II | Precursor Table II = [[United Nations Convention Against Illicit Traffic in Narcotic Drugs and Psychotropic Substances|Precursors Table II]]{{#ifeq: {{NAMESPACE}}| {{ns:0}} |[[Category:United Nations regulated drug precursors]]}}
| ?
}}{{sp}}<small>([[United Nations|UN]])</small>{{sp}}
}}{{#if:{{{legal_EU|}}} |
{{#switch: {{{legal_EU|}}}
| designer drug | Designer drug = [[European Council decisions on designer drugs|Recommended for scheduling]]{{#ifeq: {{NAMESPACE}}| {{ns:0}} |[[Category:Designer drugs recommended for scheduling by the European Council]]}}
| category 1 precursor | Category 1 precursor | Category 1 Precursor = [[European law on drug precursors#Category 1 Precursors|Category 1 Precursor]]{{#ifeq: {{NAMESPACE}}| {{ns:0}} |[[Category:European Union regulated drug precursors]]}}
| category 2 precursor | Category 2 precursor | Category 2 Precursor = [[European law on drug precursors#Category 2 Precursors|Category 2 Precursor]]{{#ifeq: {{NAMESPACE}}| {{ns:0}} |[[Category:European Union regulated drug precursors]]}}
| category 3 precursor | Category 3 precursor | Category 3 Precursor = [[European law on drug precursors#Category 3 Precursors|Category 3 Precursor]]{{#ifeq: {{NAMESPACE}}| {{ns:0}} |[[Category:European Union regulated drug precursors]]}}
| ?
}}{{sp}}<small>([[European Union|EU]])</small>{{sp}}
}}{{#if:{{{legal_status|}}} |
{{#switch: {{{legal_status|}}}
| rx | RX | Rx | rx-only | Rx-only = {{Unicode|℞}} P<small>rescription only</small>
| {{{legal_status}}}
}}
}}{{#if:{{{legal_AU|}}}{{{legal_CA|}}}{{{legal_UK|}}}{{{legal_US|}}}{{{legal_UN|}}}{{{legal_EU|}}}{{{legal_status|}}} | | ? }}