Warning
This is an unofficial archive of PsychonautWiki as of 2025-08-11T15:14:44Z. Content on this page may be outdated, incomplete, or inaccurate. Please refer to the original page for the most up-to-date information.

Template:SubstanceBox: Difference between revisions

From PsychonautWiki Archive
Jump to navigation Jump to search
>Kenan
m Dosage -> Dosage classification
>David Hedlund
Undo revision 147278 by David Hedlund (talk)
 
(39 intermediate revisions by 3 users not shown)
Line 1: Line 1:
<table ID="InfoTable" class="{{{displayClasses|}}}">
<table id="InfoTable" class="{{{displayClasses|}}}">
    <!-- RoA array declarations -->


    <!-- Routes of Administration array population -->
     {{#arraydefine: InhaledDosage |
     {{#arraydefine: InhaledDosage |
    Threshold;{{{InhaledROA_Threshold|}}},
        Threshold;{{{InhaledROA_Threshold|}}},
    Light;{{{InhaledROA_Light|}}},
        Light;{{{InhaledROA_Light|}}},
    Common;{{{InhaledROA_Common|}}},
        Common;{{{InhaledROA_Common|}}},
    Strong;{{{InhaledROA_Strong|}}},
        Strong;{{{InhaledROA_Strong|}}},
    Heavy;{{{InhaledROA_Heavy|}}}
        Heavy;{{{InhaledROA_Heavy|}}}
     }}
     }}
     {{#arraydefine: InhaledDuration |
     {{#arraydefine: InhaledDuration |
    Total;{{{InhaledROA_Duration|}}},
        Total;{{{InhaledROA_Duration|}}},
    Onset;{{{InhaledROA_Onset|}}},
        Onset;{{{InhaledROA_Onset|}}},
    Come up;{{{InhaledROA_Comeup|}}},
        Come up;{{{InhaledROA_Comeup|}}},
    Peak;{{{InhaledROA_Peak|}}},
        Peak;{{{InhaledROA_Peak|}}},
    Offset;{{{InhaledROA_Offset|}}},
        Offset;{{{InhaledROA_Offset|}}},
    After effects;{{{InhaledROA_Aftereffects|}}}
        After effects;{{{InhaledROA_Aftereffects|}}}
     }}
     }}
     {{#arraydefine: SmokedDosage |
     {{#arraydefine: SmokedDosage |
    Threshold;{{{SmokedROA_Threshold|}}},
        Threshold;{{{SmokedROA_Threshold|}}},
    Light;{{{SmokedROA_Light|}}},
        Light;{{{SmokedROA_Light|}}},
    Common;{{{SmokedROA_Common|}}},
        Common;{{{SmokedROA_Common|}}},
    Strong;{{{SmokedROA_Strong|}}},
        Strong;{{{SmokedROA_Strong|}}},
    Heavy;{{{SmokedROA_Heavy|}}}
        Heavy;{{{SmokedROA_Heavy|}}}
     }}
     }}
     {{#arraydefine: SmokedDuration |
     {{#arraydefine: SmokedDuration |
    Total;{{{SmokedROA_Duration|}}},
        Total;{{{SmokedROA_Duration|}}},
    Onset;{{{SmokedROA_Onset|}}},
        Onset;{{{SmokedROA_Onset|}}},
    Come up;{{{SmokedROA_Comeup|}}},
        Come up;{{{SmokedROA_Comeup|}}},
    Peak;{{{SmokedROA_Peak|}}},
        Peak;{{{SmokedROA_Peak|}}},
    Offset;{{{SmokedROA_Offset|}}},
        Offset;{{{SmokedROA_Offset|}}},
    After effects;{{{SmokedROA_Aftereffects|}}}
        After effects;{{{SmokedROA_Aftereffects|}}}
     }}
     }}
     {{#arraydefine: OralDosage |
     {{#arraydefine: OralDosage |
    Threshold;{{{OralROA_Threshold|}}},
        Threshold;{{{OralROA_Threshold|}}},
    Light;{{{OralROA_Light|}}},
        Light;{{{OralROA_Light|}}},
    Common;{{{OralROA_Common|}}},
        Common;{{{OralROA_Common|}}},
    Strong;{{{OralROA_Strong|}}},
        Strong;{{{OralROA_Strong|}}},
    Heavy;{{{OralROA_Heavy|}}}
        Heavy;{{{OralROA_Heavy|}}}
     }}
     }}
     {{#arraydefine: OralDuration |
     {{#arraydefine: OralDuration |
    Total;{{{OralROA_Duration|}}},
        Total;{{{OralROA_Duration|}}},
    Onset;{{{OralROA_Onset|}}},
        Onset;{{{OralROA_Onset|}}},
    Come up;{{{OralROA_Comeup|}}},
        Come up;{{{OralROA_Comeup|}}},
    Peak;{{{OralROA_Peak|}}},
        Peak;{{{OralROA_Peak|}}},
    Offset;{{{OralROA_Offset|}}},
        Offset;{{{OralROA_Offset|}}},
    After effects;{{{OralROA_Aftereffects|}}}
        After effects;{{{OralROA_Aftereffects|}}}
     }}
     }}
     {{#arraydefine: SublingualDosage |
     {{#arraydefine: SublingualDosage |
    Threshold;{{{SublingualROA_Threshold|}}},
        Threshold;{{{SublingualROA_Threshold|}}},
    Light;{{{SublingualROA_Light|}}},
        Light;{{{SublingualROA_Light|}}},
    Common;{{{SublingualROA_Common|}}},
        Common;{{{SublingualROA_Common|}}},
    Strong;{{{SublingualROA_Strong|}}},
        Strong;{{{SublingualROA_Strong|}}},
    Heavy;{{{SublingualROA_Heavy|}}}
        Heavy;{{{SublingualROA_Heavy|}}}
     }}
     }}
     {{#arraydefine: SublingualDuration |
     {{#arraydefine: SublingualDuration |
    Total;{{{SublingualROA_Duration|}}},
        Total;{{{SublingualROA_Duration|}}},
    Onset;{{{SublingualROA_Onset|}}},
        Onset;{{{SublingualROA_Onset|}}},
    Come up;{{{SublingualROA_Comeup|}}},
        Come up;{{{SublingualROA_Comeup|}}},
    Peak;{{{SublingualROA_Peak|}}},
        Peak;{{{SublingualROA_Peak|}}},
    Offset;{{{SublingualROA_Offset|}}},
        Offset;{{{SublingualROA_Offset|}}},
    After effects;{{{SublingualROA_Aftereffects|}}}
        After effects;{{{SublingualROA_Aftereffects|}}}
     }}
     }}
     {{#arraydefine: BuccalDosage |
     {{#arraydefine: BuccalDosage |
    Threshold;{{{BuccalROA_Threshold|}}},
        Threshold;{{{BuccalROA_Threshold|}}},
    Light;{{{BuccalROA_Light|}}},
        Light;{{{BuccalROA_Light|}}},
    Common;{{{BuccalROA_Common|}}},
        Common;{{{BuccalROA_Common|}}},
    Strong;{{{BuccalROA_Strong|}}},
        Strong;{{{BuccalROA_Strong|}}},
    Heavy;{{{BuccalROA_Heavy|}}}
        Heavy;{{{BuccalROA_Heavy|}}}
     }}
     }}
     {{#arraydefine: BuccalDuration |
     {{#arraydefine: BuccalDuration |
    Total;{{{BuccalROA_Duration|}}},
        Total;{{{BuccalROA_Duration|}}},
    Onset;{{{BuccalROA_Onset|}}},
        Onset;{{{BuccalROA_Onset|}}},
    Come up;{{{BuccalROA_Comeup|}}},
        Come up;{{{BuccalROA_Comeup|}}},
    Peak;{{{BuccalROA_Peak|}}},
        Peak;{{{BuccalROA_Peak|}}},
    Offset;{{{BuccalROA_Offset|}}},
        Offset;{{{BuccalROA_Offset|}}},
    After effects;{{{BuccalROA_Aftereffects|}}}
        After effects;{{{BuccalROA_Aftereffects|}}}
     }}
     }}
     {{#arraydefine: InsufflatedDosage |
     {{#arraydefine: InsufflatedDosage |
    Threshold;{{{InsufflatedROA_Threshold|}}},
        Threshold;{{{InsufflatedROA_Threshold|}}},
    Light;{{{InsufflatedROA_Light|}}},
        Light;{{{InsufflatedROA_Light|}}},
    Common;{{{InsufflatedROA_Common|}}},
        Common;{{{InsufflatedROA_Common|}}},
    Strong;{{{InsufflatedROA_Strong|}}},
        Strong;{{{InsufflatedROA_Strong|}}},
    Heavy;{{{InsufflatedROA_Heavy|}}}
        Heavy;{{{InsufflatedROA_Heavy|}}}
     }}
     }}
     {{#arraydefine: InsufflatedDuration |
     {{#arraydefine: InsufflatedDuration |
    Total;{{{InsufflatedROA_Duration|}}},
        Total;{{{InsufflatedROA_Duration|}}},
    Onset;{{{InsufflatedROA_Onset|}}},
        Onset;{{{InsufflatedROA_Onset|}}},
    Come up;{{{InsufflatedROA_Comeup|}}},
        Come up;{{{InsufflatedROA_Comeup|}}},
    Peak;{{{InsufflatedROA_Peak|}}},
        Peak;{{{InsufflatedROA_Peak|}}},
    Offset;{{{InsufflatedROA_Offset|}}},
        Offset;{{{InsufflatedROA_Offset|}}},
    After effects;{{{InsufflatedROA_Aftereffects|}}}
        After effects;{{{InsufflatedROA_Aftereffects|}}}
     }}
     }}
     {{#arraydefine: RectalDosage |
     {{#arraydefine: RectalDosage |
    Threshold;{{{RectalROA_Threshold|}}},
        Threshold;{{{RectalROA_Threshold|}}},
    Light;{{{RectalROA_Light|}}},
        Light;{{{RectalROA_Light|}}},
    Common;{{{RectalROA_Common|}}},
        Common;{{{RectalROA_Common|}}},
    Strong;{{{RectalROA_Strong|}}},
        Strong;{{{RectalROA_Strong|}}},
    Heavy;{{{RectalROA_Heavy|}}}
        Heavy;{{{RectalROA_Heavy|}}}
     }}
     }}
     {{#arraydefine: RectalDuration |
     {{#arraydefine: RectalDuration |
    Total;{{{RectalROA_Duration|}}},
        Total;{{{RectalROA_Duration|}}},
    Onset;{{{RectalROA_Onset|}}},
        Onset;{{{RectalROA_Onset|}}},
    Come up;{{{RectalROA_Comeup|}}},
        Come up;{{{RectalROA_Comeup|}}},
    Peak;{{{RectalROA_Peak|}}},
        Peak;{{{RectalROA_Peak|}}},
    Offset;{{{RectalROA_Offset|}}},
        Offset;{{{RectalROA_Offset|}}},
    After effects;{{{RectalROA_Aftereffects|}}}
        After effects;{{{RectalROA_Aftereffects|}}}
     }}
     }}
     {{#arraydefine: TransdermalDosage |
     {{#arraydefine: TransdermalDosage |
    Threshold;{{{TransdermalROA_Threshold|}}},
        Threshold;{{{TransdermalROA_Threshold|}}},
    Light;{{{TransdermalROA_Light|}}},
        Light;{{{TransdermalROA_Light|}}},
    Common;{{{TransdermalROA_Common|}}},
        Common;{{{TransdermalROA_Common|}}},
    Strong;{{{TransdermalROA_Strong|}}},
        Strong;{{{TransdermalROA_Strong|}}},
    Heavy;{{{TransdermalROA_Heavy|}}}
        Heavy;{{{TransdermalROA_Heavy|}}}
     }}
     }}
     {{#arraydefine: TransdermalDuration |
     {{#arraydefine: TransdermalDuration |
    Total;{{{TransdermalROA_Duration|}}},
        Total;{{{TransdermalROA_Duration|}}},
    Onset;{{{TransdermalROA_Onset|}}},
        Onset;{{{TransdermalROA_Onset|}}},
    Come up;{{{TransdermalROA_Comeup|}}},
        Come up;{{{TransdermalROA_Comeup|}}},
    Peak;{{{TransdermalROA_Peak|}}},
        Peak;{{{TransdermalROA_Peak|}}},
    Offset;{{{TransdermalROA_Offset|}}},
        Offset;{{{TransdermalROA_Offset|}}},
    After effects;{{{TransdermalROA_Aftereffects|}}}
        After effects;{{{TransdermalROA_Aftereffects|}}}
     }}
     }}
     {{#arraydefine: SubcutaneousDosage |
     {{#arraydefine: SubcutaneousDosage |
    Threshold;{{{SubcutaneousROA_Threshold|}}},
        Threshold;{{{SubcutaneousROA_Threshold|}}},
    Light;{{{SubcutaneousROA_Light|}}},
        Light;{{{SubcutaneousROA_Light|}}},
    Common;{{{SubcutaneousROA_Common|}}},
        Common;{{{SubcutaneousROA_Common|}}},
    Strong;{{{SubcutaneousROA_Strong|}}},
        Strong;{{{SubcutaneousROA_Strong|}}},
    Heavy;{{{SubcutaneousROA_Heavy|}}}
        Heavy;{{{SubcutaneousROA_Heavy|}}}
     }}
     }}
     {{#arraydefine: SubcutaneousDuration |
     {{#arraydefine: SubcutaneousDuration |
    Total;{{{SubcutaneousROA_Duration|}}},
        Total;{{{SubcutaneousROA_Duration|}}},
    Onset;{{{SubcutaneousROA_Onset|}}},
        Onset;{{{SubcutaneousROA_Onset|}}},
    Come up;{{{SubcutaneousROA_Comeup|}}},
        Come up;{{{SubcutaneousROA_Comeup|}}},
    Peak;{{{SubcutaneousROA_Peak|}}},
        Peak;{{{SubcutaneousROA_Peak|}}},
    Offset;{{{SubcutaneousROA_Offset|}}},
        Offset;{{{SubcutaneousROA_Offset|}}},
    After effects;{{{SubcutaneousROA_Aftereffects|}}}
        After effects;{{{SubcutaneousROA_Aftereffects|}}}
     }}
     }}
     {{#arraydefine: IntramuscularDosage |
     {{#arraydefine: IntramuscularDosage |
    Threshold;{{{IntramuscularROA_Threshold|}}},
        Threshold;{{{IntramuscularROA_Threshold|}}},
    Light;{{{IntramuscularROA_Light|}}},
        Light;{{{IntramuscularROA_Light|}}},
    Common;{{{IntramuscularROA_Common|}}},
        Common;{{{IntramuscularROA_Common|}}},
    Strong;{{{IntramuscularROA_Strong|}}},
        Strong;{{{IntramuscularROA_Strong|}}},
    Heavy;{{{IntramuscularROA_Heavy|}}}
        Heavy;{{{IntramuscularROA_Heavy|}}}
     }}
     }}
     {{#arraydefine: IntramuscularDuration |
     {{#arraydefine: IntramuscularDuration |
    Total;{{{IntramuscularROA_Duration|}}},
        Total;{{{IntramuscularROA_Duration|}}},
    Onset;{{{IntramuscularROA_Onset|}}},
        Onset;{{{IntramuscularROA_Onset|}}},
    Come up;{{{IntramuscularROA_Comeup|}}},
        Come up;{{{IntramuscularROA_Comeup|}}},
    Peak;{{{IntramuscularROA_Peak|}}},
        Peak;{{{IntramuscularROA_Peak|}}},
    Offset;{{{IntramuscularROA_Offset|}}},
        Offset;{{{IntramuscularROA_Offset|}}},
    After effects;{{{IntramuscularROA_Aftereffects|}}}
        After effects;{{{IntramuscularROA_Aftereffects|}}}
     }}
     }}
     {{#arraydefine: IntravenousDosage |
     {{#arraydefine: IntravenousDosage |
    Threshold;{{{IntravenousROA_Threshold|}}},
        Threshold;{{{IntravenousROA_Threshold|}}},
    Light;{{{IntravenousROA_Light|}}},
        Light;{{{IntravenousROA_Light|}}},
    Common;{{{IntravenousROA_Common|}}},
        Common;{{{IntravenousROA_Common|}}},
    Strong;{{{IntravenousROA_Strong|}}},
        Strong;{{{IntravenousROA_Strong|}}},
    Heavy;{{{IntravenousROA_Heavy|}}}
        Heavy;{{{IntravenousROA_Heavy|}}}
     }}
     }}
     {{#arraydefine: IntravenousDuration |
     {{#arraydefine: IntravenousDuration |
    Total;{{{IntravenousROA_Duration|}}},
        Total;{{{IntravenousROA_Duration|}}},
    Onset;{{{IntravenousROA_Onset|}}},
        Onset;{{{IntravenousROA_Onset|}}},
    Come up;{{{IntravenousROA_Comeup|}}},
        Come up;{{{IntravenousROA_Comeup|}}},
    Peak;{{{IntravenousROA_Peak|}}},
        Peak;{{{IntravenousROA_Peak|}}},
    Offset;{{{IntravenousROA_Offset|}}},
        Offset;{{{IntravenousROA_Offset|}}},
    After effects;{{{IntravenousROA_Aftereffects|}}}
        After effects;{{{IntravenousROA_Aftereffects|}}}
     }}
     }}


     <!-- Header -->
     <!-- Header -->
     <tr class="SubstanceTitle">
     <tr class="SubstanceTitle">
         <th class="Header" colspan="2">{{{MaterialTable_Title}}}</th>
         <th class="Header" colspan="2">{{{MaterialTable_Title|LSD}}}</th>
     </tr>
     </tr>


     <!-- Source -->
     <!-- Source -->
     {{#ifeq: {{{ModuleSource}}} | true |
     {{#ifeq: {{{ModuleSource}}} | true |
 
        {{#if: {{{PhotoImageFile}}} |
    {{#if: {{{PhotoImageFile}}} |
            <tr class="SubstanceImage">
    <tr>
                <td class="Image" colspan="2">[[ {{{PhotoImageFile}}} | thumb | center | {{{PhotoImageWidth}}} {{#if:
        <td class="Image" colspan="2">[[ {{{PhotoImageFile}}} | thumb | center | {{{PhotoImageWidth}}} {{#if:
                    {{{PhotoImageCaption}}} | {{!}} {{{PhotoImageCaption}}} |}} ]]
            {{{PhotoImageCaption}}} | {{!}} {{{PhotoImageCaption}}} |}} ]]
                </td>
        </td>
            </tr>
 
        |}}
    </tr>
    |}}
 
     |}}
     |}}


Line 190: Line 208:
     {{#ifeq: {{{ModuleCombination}}} | true |
     {{#ifeq: {{{ModuleCombination}}} | true |


    <!-- Component 1 -->
        <!-- Component 1 -->
    {{#if: {{{CombinationImage1_Caption}}} |
        {{#if: {{{CombinationImage1_Caption}}} |
    <tr>
            <tr>
        <td class="Caption" colspan="2">''{{{CombinationImage1_Caption}}}''</td>
                <td class="Caption" colspan="2">''{{{CombinationImage1_Caption}}}''</td>
    </tr>
            </tr>
    |}}
        |}}
    {{#if: {{{CombinationImage1_File}}} |
 
    <tr>
        {{#if: {{{CombinationImage1_File}}} |
        <td class="Image" colspan="2">[[ {{{CombinationImage1_File}}} | frameless | center |
            <tr>
            {{{CombinationImage1_Width}}} ]]
                <td class="Image" colspan="2">[[ {{{CombinationImage1_File}}} | frameless | center |
         </td>
                    {{{CombinationImage1_Width}}} ]]
    </tr>
                </td>
    |}}
            </tr>
        |}}
 
        <!-- Component 2 -->
         {{#if: {{{CombinationImage2_Caption}}} |
            <tr>
                <td class="Caption" colspan="2">''{{{CombinationImage2_Caption}}}''</td>
            </tr>
        |}}


    <!-- Component 2 -->
         {{#if: {{{CombinationImage2_File}}} |
    {{#if: {{{CombinationImage2_Caption}}} |
            <tr>
    <tr>
                <td class="Image" colspan="2">[[ {{{CombinationImage2_File}}} | frameless | center |
         <td class="Caption" colspan="2">''{{{CombinationImage2_Caption}}}''</td>
                    {{{CombinationImage2_Width}}} ]]
    </tr>
                </td>
    |}}
            </tr>
    {{#if: {{{CombinationImage2_File}}} |
        |}}
    <tr>
        <td class="Image" colspan="2">[[ {{{CombinationImage2_File}}} | frameless | center |
            {{{CombinationImage2_Width}}} ]]
        </td>
    </tr>
    |}}


    <!-- Component 3 -->
        <!-- Component 3 -->
    {{#if: {{{CombinationImage3_Caption}}} |
        {{#if: {{{CombinationImage3_Caption}}} |
    <tr>
            <tr>
        <td class="Caption" colspan="3">''{{{CombinationImage3_Caption}}}''</td>
                <td class="Caption" colspan="3">''{{{CombinationImage3_Caption}}}''</td>
    </tr>
            </tr>
    |}}
         |}}
    {{#if: {{{CombinationImage3_File}}} |
    <tr>
        <td class="Image" colspan="2">[[ {{{CombinationImage3_File}}} | frameless | center |
            {{{CombinationImage3_Width}}} ]]
         </td>
    </tr>
    |}}


        {{#if: {{{CombinationImage3_File}}} |
            <tr>
                <td class="Image" colspan="2">[[ {{{CombinationImage3_File}}} | frameless | center |
                    {{{CombinationImage3_Width}}} ]]
                </td>
            </tr>
        |}}
     |}}
     |}}


     <!-- Molecular Structure -->
     <!-- Molecular Structure -->
     {{#ifeq: {{{ModuleStructure}}} | true |
     {{#ifeq: {{{ModuleStructure}}} | true |
        <!-- Caption -->
        <!--{{#if: {{{MolecularStructureCaption}}} |
            <tr>
                <td class="Caption" colspan="2">''{{{MolecularStructureCaption}}}''</td>
            </tr>
        |}}-->


    <!-- Caption -->
         <!-- Skeletal -->
    <!--{{#if: {{{MolecularStructureCaption}}} |
        {{#if: {{{SkeletalImageFile}}} |
    <tr>
            <tr>
         <td class="Caption" colspan="2">''{{{MolecularStructureCaption}}}''</td>
                <td class="Image" colspan="2">[[ {{{SkeletalImageFile}}} | frameless | center | {{{SkeletalImageWidth}}} ]]</td>
    </tr>
            </tr>
    |}}-->
         |}}
 
    <!-- Skeletal -->
    {{#if: {{{SkeletalImageFile}}} |
    <tr>
        <td class="Image" colspan="2">[[ {{{SkeletalImageFile}}} | frameless | center | {{{SkeletalImageWidth}}} ]]</td>
        <!--<td class="Image" colspan="2">http://opsin.ch.cam.ac.uk/opsin/{{{NameSystematic}}}.png</td>-->
    </tr>
    |}}
 
    <!-- 3D -->
    {{#if: {{{3DImageFile}}} |
    <tr>
         <td class="Image" colspan="2">[[ {{{3DImageFile}}} | frameless | center | {{{3DImageWidth}}} ]]</td>
    </tr>
    |}}


        <!-- 3D -->
        {{#if: {{{3DImageFile}}} |
            <tr>
                <td class="Image" colspan="2">[[ {{{3DImageFile}}} | frameless | center | {{{3DImageWidth}}} ]]</td>
            </tr>
        |}}
     |}}
     |}}


     <!-- Naming Convention -->
     <!-- Naming Convention -->
     {{#ifeq: {{{ModuleNomenclature}}} | true |
     {{#ifeq: {{{ModuleNomenclature}}} | true |
        <tr>
            <th id="Nomenclature" class="SubHeader1" colspan="2">Chemical Nomenclature</th>
        </tr>


    <tr>
         {{#if: {{{NameCommon}}} |
         <th id="Nomenclature" class="SubHeader1" colspan="2">Chemical Nomenclature</th>
            <tr>
    </tr>
                <th class="RowHeader">Common names</th>
 
                <td class="RowValues">''{{{NameCommon}}}''</td>
    {{#if: {{{NameCommon}}} |
            </tr>
    <tr>
        |}}
        <th class="RowHeader">Common names</th>
        <td class="RowValues">''{{{NameCommon}}}''</td>
    </tr>
    |}}


    {{#if: {{{NameSubstitution}}} |
        {{#if: {{{NameSubstitution}}} |
    <tr>
            <tr>
        <th class="RowHeader">Substitutive name</th>
                <th class="RowHeader">Substitutive name</th>
        <td class="RowValues">''{{{NameSubstitution}}}''</td>
                <td class="RowValues">''{{{NameSubstitution}}}''</td>
    </tr>
            </tr>
    |}}
         |}}
 
    {{#if: {{{NameSystematic}}} |
    <tr>
        <th class="RowHeader">Systematic name</th>
         <td class="RowValues">''{{{NameSystematic}}}''</td>
    </tr>
    |}}


        {{#if: {{{NameSystematic}}} |
            <tr>
                <th class="RowHeader">Systematic name</th>
                <td class="RowValues">''{{{NameSystematic}}}''</td>
            </tr>
        |}}
     |}}
     |}}


     <!-- Substance Class Membership -->
     <!-- Substance Class Membership -->
     {{#ifeq: {{{ModuleClassMembership}}} | true |
     {{#ifeq: {{{ModuleClassMembership}}} | true |
        <tr>
            <th id="ClassMembership" class="SubHeader1" colspan="2">Class Membership</th>
        </tr>


    <tr>
         {{#if: {{{EffectClass}}} |
         <th id="ClassMembership" class="SubHeader1" colspan="2">Class Membership</th>
            <tr>
    </tr>
                <th class="RowHeader">Psychoactive class</th>
 
                <td class="RowValues">''{{{EffectClass}}}''</td>
    {{#if: {{{EffectClass}}} |
            </tr>
    <tr>
         |}}
        <th class="RowHeader">Psychoactive class</th>
        <td class="RowValues">''{{{EffectClass}}}''</td>
    </tr>
    |}}
 
    {{#if: {{{ChemicalClass}}} |
    <tr>
        <th class="RowHeader">Chemical class</th>
         <td class="RowValues">''{{{ChemicalClass}}}''</td>
    </tr>
    |}}


        {{#if: {{{ChemicalClass}}} |
            <tr>
                <th class="RowHeader">Chemical class</th>
                <td class="RowValues">''{{{ChemicalClass}}}''</td>
            </tr>
        |}}
     |}}
     |}}
     <!-- Routes of Administration -->
     <!-- Routes of Administration -->
     {{#ifeq: {{{ModuleROA}}} | true |
     {{#ifeq: {{{ModuleROA}}} | true |


    <tr>
        <tr>
        <th id="ROA" class="SubHeader1" colspan="2">[[Routes of Administration]]</th>
            <th id="ROA" class="SubHeader1" colspan="2">[[Routes of Administration]]</th>
    </tr>
        </tr>


    <tr>
        <tr>
        <td colspan="2" class="ROAHeader">
            <td colspan="2" class="ROAHeader">


            <table class="ROATable pw-safe-use" width="100%">
                <table class="ROATable pw-safe-use" width="100%">
                <tr>
                    <tr>
                    <td class="ROACaption" colspan="2">
                        <td class="ROACaption" colspan="2">
{{Preamble/SubstanceSafeUse}}
{{Preamble/SubstanceSafeUse}}
                    </td>
                        </td>
                </tr>
                    </tr>
            </table>
                </table>
 
                <!-- Inhaled -->
                {{#ifeq: {{{InhaledROA}}} | true |
 
                {{#ifeq: {{{InhaledROA_Collapsed}}} | true |
                <table class="ROATable mw-collapsible mw-collapsed" width="100%">|
                <table class="ROATable mw-collapsible" width="100%">
                    }}


            <!-- Inhaled -->
                    <tr class="ROAHeaderRow">
            {{#ifeq: {{{InhaledROA}}} | true |
                        <th class="ROAHeader" colspan="2">⇣ [[Routes of Administration#Inhaled|Inhaled]]</th>
                    </tr>


            {{#ifeq: {{{InhaledROA_Collapsed}}} | true |
                    {{ISBDosageChart|substance={{{MaterialTable_Title}}}|roa=Inhaled}}
            <table class="ROATable mw-collapsible mw-collapsed" width="100%">|
            <table class="ROATable mw-collapsible" width="100%">
                }}


                <tr>
                    <tr class="ROASubHeaderRow">
                    <th class="ROAHeader" colspan="2">[[Routes of Administration#Inhaled|Inhaled]]</th>
                        <th class="ROASubHeader" colspan="2">[[Dosage]]</th>
                </tr>
                    </tr>


                {{ISBDosageChart|substance={{{MaterialTable_Title}}}|roa=Inhaled}}
                    {{#if: {{{InhaledROA_Caption}}} |
                    <!--<tr>
                        <td class="ROACaption" colspan="2">{{{InhaledROA_Caption}}}</td>
                    </tr>-->
                    |}}


                <tr>
                    {{#if: {{{InhaledROA_Bioavailability}}} |
                    <th class="ROASubHeader" colspan="2">[[Dosage]]</th>
                    <tr class="ROASectionRow">
                </tr>
                        <th class="ROARowHeader">[[Dosage#Bioavailability|Bioavailability]]</th>
                        <td class="RowValues">{{{InhaledROA_Bioavailability}}}</td>
                        <!--Display bioavailability -->
                    </tr>
                    |}}


                {{#if: {{{InhaledROA_Caption}}} |
                    {{#arrayunique: InhaledDosage}}
                <tr>
                    {{#loop: i | 0 | {{#arraysize: InhaledDosage}} |
                    <td class="ROACaption" colspan="2">{{{InhaledROA_Caption}}}</td>
                    {{#arraydefine: val | {{#arrayindex: InhaledDosage | {{#var: i}} }} | ; }}
                     <!--Display notes image -->
                    {{#if: {{#arrayindex: val | 1 }} |
                </tr>
                    <tr class="ROASectionRow">
                |}}
                        <th class="ROARowHeader">[[Dosage_classification#{{#arrayindex: val | 0 }}|{{#arrayindex: val | 0 }}]]</th>
                        <td class="RowValues">{{#arrayindex: val | 1 }}</td>
                     </tr>
                    |}}
                    }}
 
                    <tr class="ROASubHeaderRow">
                        <th class="ROASubHeader" colspan="2">[[Duration]]</th>
                    </tr>


                {{#if: {{{InhaledROA_Bioavailability}}} |
                    {{#if: {{{InhaledROA_TimelineFile}}} |
                <tr>
                    <tr class="ROASectionRow">
                    <th class="ROARowHeader">[[Dosage#Bioavailability|Bioavailability]]</th>
                        <td colspan="2">[[ {{{InhaledROA_TimelineFile}}} | center | {{{InhaledROA_TimelineWidth}}} ]]</td>
                    <td class="RowValues">{{{InhaledROA_Bioavailability}}}</td>
                        <!--Display timeline image -->
                    <!--Display bioavailability -->
                    </tr>
                </tr>
                    |}}
                |}}


                {{#arrayunique: InhaledDosage}}
                    {{#arrayunique: InhaledDuration}}
                {{#loop: i | 0 | {{#arraysize: InhaledDosage}} |
                    {{#loop: i | 0 | {{#arraysize: InhaledDuration}} |
                {{#arraydefine: val | {{#arrayindex: InhaledDosage | {{#var: i}} }} | ; }}
                    {{#arraydefine: val | {{#arrayindex: InhaledDuration | {{#var: i}} }} | ; }}
                {{#if: {{#arrayindex: val | 1 }} |
                    {{#if: {{#arrayindex: val | 1 }} |
                <tr>
                    <tr class="ROASectionRow">
                    <th class="ROARowHeader">[[Dosage_classification#{{#arrayindex: val | 0 }}|{{#arrayindex: val | 0 }}]]</th>
                        <th class="ROARowHeader">[[Duration#{{#arrayindex: val | 0 }}|{{#arrayindex: val | 0 }}]]</th>
                    <td class="RowValues">{{#arrayindex: val | 1 }}</td>
                        <td class="RowValues">{{#arrayindex: val | 1 }}</td>
                </tr>
                    </tr>
                |}}
                    |}}
                }}
                    }}


                <tr>
                    <th class="ROASubHeader" colspan="2">[[Duration]]</th>
                </tr>


                {{#if: {{{InhaledROA_TimelineFile}}} |
                 </table>
                <tr>
                    <td colspan="2">[[ {{{InhaledROA_TimelineFile}}} | center | {{{InhaledROA_TimelineWidth}}} ]]</td>
                    <!--Display timeline image -->
                 </tr>
                |}}


                {{#arrayunique: InhaledDuration}}
                {{#loop: i | 0 | {{#arraysize: InhaledDuration}} |
                {{#arraydefine: val | {{#arrayindex: InhaledDuration | {{#var: i}} }} | ; }}
                {{#if: {{#arrayindex: val | 1 }} |
                <tr>
                    <th class="ROARowHeader">[[Duration#{{#arrayindex: val | 0 }}|{{#arrayindex: val | 0 }}]]</th>
                    <td class="RowValues">{{#arrayindex: val | 1 }}</td>
                </tr>
                 |}}
                 |}}
                }}


                <!-- Smoked -->
                {{#ifeq: {{{SmokedROA}}} | true |


            </table>
                {{#ifeq: {{{SmokedROA_Collapsed}}} | true |
                <table class="ROATable mw-collapsible mw-collapsed" width="100%">|
                <table class="ROATable mw-collapsible" width="100%">
                    }}


            |}}
                    <tr class="ROAHeaderRow">
                        <th class="ROAHeader" colspan="2">⇣ [[Routes of Administration#Smoked|Smoked]]</th>
                    </tr>


            <!-- Smoked -->
                    <tr class="ROASubHeaderRow">
            {{#ifeq: {{{SmokedROA}}} | true |
                        <th class="ROASubHeader" colspan="2">[[Dosage]]</th>
                    </tr>


            {{#ifeq: {{{SmokedROA_Collapsed}}} | true |
                    {{ISBDosageChart|substance={{{MaterialTable_Title}}}|roa=Smoked}}
            <table class="ROATable mw-collapsible mw-collapsed" width="100%">|
            <table class="ROATable mw-collapsible" width="100%">
                }}


                <tr>
                    {{#if: {{{SmokedROA_Caption}}} |
                    <th class="ROAHeader" colspan="2">[[Routes of Administration#Smoked|Smoked]]</th>
                    <!--<tr>
                </tr>
                        <td class="ROACaption" colspan="2">{{{SmokedROA_Caption}}}</td>
                    </tr>-->
                    |}}


                <tr>
                    {{#if: {{{SmokedROA_Bioavailability}}} |
                    <th class="ROASubHeader" colspan="2">[[Dosage]]</th>
                    <tr class="ROASectionRow">
                </tr>
                        <th class="ROARowHeader">[[Dosage#Bioavailability|Bioavailability]]</th>
                        <td class="RowValues">{{{SmokedROA_Bioavailability}}}</td>
                        <!--Display bioavailability -->
                    </tr>
                    |}}


                {{ISBDosageChart|substance={{{MaterialTable_Title}}}|roa=Smoked}}
                    {{#arrayunique: SmokedDosage}}
                    {{#loop: i | 0 | {{#arraysize: SmokedDosage}} |
                    {{#arraydefine: val | {{#arrayindex: SmokedDosage | {{#var: i}} }} | ; }}
                    {{#if: {{#arrayindex: val | 1 }} |
                    <tr class="ROASectionRow">
                        <th class="ROARowHeader">[[Dosage_classification#{{#arrayindex: val | 0 }}|{{#arrayindex: val | 0 }}]]</th>
                        <td class="RowValues">{{#arrayindex: val | 1 }}</td>
                    </tr>
                    |}}
                    }}


                {{#if: {{{SmokedROA_Caption}}} |
                    <tr class="ROASubHeaderRow">
                <tr>
                        <th class="ROASubHeader" colspan="2">[[Duration]]</th>
                    <td class="ROACaption" colspan="2">{{{SmokedROA_Caption}}}</td>
                     </tr>
                     <!--Display notes image -->
                </tr>
                |}}


                {{#if: {{{SmokedROA_Bioavailability}}} |
                    {{#if: {{{SmokedROA_TimelineFile}}} |
                <tr>
                    <tr class="ROASectionRow">
                    <th class="ROARowHeader">[[Dosage#Bioavailability|Bioavailability]]</th>
                        <td colspan="2">[[ {{{SmokedROA_TimelineFile}}} | center | {{{SmokedROA_TimelineWidth}}} ]]</td>
                    <td class="RowValues">{{{SmokedROA_Bioavailability}}}</td>
                        <!--Display timeline image -->
                    <!--Display bioavailability -->
                    </tr>
                </tr>
                    |}}
                |}}


                {{#arrayunique: SmokedDosage}}
                    {{#arrayunique: SmokedDuration}}
                {{#loop: i | 0 | {{#arraysize: SmokedDosage}} |
                    {{#loop: i | 0 | {{#arraysize: SmokedDuration}} |
                {{#arraydefine: val | {{#arrayindex: SmokedDosage | {{#var: i}} }} | ; }}
                    {{#arraydefine: val | {{#arrayindex: SmokedDuration | {{#var: i}} }} | ; }}
                {{#if: {{#arrayindex: val | 1 }} |
                    {{#if: {{#arrayindex: val | 1 }} |
                <tr>
                    <tr class="ROASectionRow">
                    <th class="ROARowHeader">[[Dosage_classification#{{#arrayindex: val | 0 }}|{{#arrayindex: val | 0 }}]]</th>
                        <th class="ROARowHeader">[[Duration#{{#arrayindex: val | 0 }}|{{#arrayindex: val | 0 }}]]</th>
                    <td class="RowValues">{{#arrayindex: val | 1 }}</td>
                        <td class="RowValues">{{#arrayindex: val | 1 }}</td>
                </tr>
                    </tr>
                |}}
                    |}}
                }}
                    }}


                <tr>
                    <th class="ROASubHeader" colspan="2">[[Duration]]</th>
                </tr>


                {{#if: {{{SmokedROA_TimelineFile}}} |
                 </table>
                <tr>
                    <td colspan="2">[[ {{{SmokedROA_TimelineFile}}} | center | {{{SmokedROA_TimelineWidth}}} ]]</td>
                    <!--Display timeline image -->
                 </tr>
                |}}


                {{#arrayunique: SmokedDuration}}
                {{#loop: i | 0 | {{#arraysize: SmokedDuration}} |
                {{#arraydefine: val | {{#arrayindex: SmokedDuration | {{#var: i}} }} | ; }}
                {{#if: {{#arrayindex: val | 1 }} |
                <tr>
                    <th class="ROARowHeader">[[Duration#{{#arrayindex: val | 0 }}|{{#arrayindex: val | 0 }}]]</th>
                    <td class="RowValues">{{#arrayindex: val | 1 }}</td>
                </tr>
                 |}}
                 |}}
                }}


                <!-- Oral -->
                {{#ifeq: {{{OralROA}}} | true |


            </table>
                {{#ifeq: {{{OralROA_Collapsed}}} | true |
                <table class="ROATable mw-collapsible mw-collapsed" width="100%">|
                <table class="ROATable mw-collapsible" width="100%">
                    }}


            |}}
                    <tr class="ROAHeaderRow">
                        <th class="ROAHeader" colspan="2">⇣ [[Routes of Administration#Oral|Oral]]</th>
                    </tr>


            <!-- Oral -->
                    <tr  class="ROASectionRow">
            {{#ifeq: {{{OralROA}}} | true |
                        <th class="ROASubHeader" colspan="2">[[Dosage]]</th>
                    </tr>


            {{#ifeq: {{{OralROA_Collapsed}}} | true |
                    {{ISBDosageChart|substance={{{MaterialTable_Title}}}|roa=Oral}}
            <table class="ROATable mw-collapsible mw-collapsed" width="100%">|
            <table class="ROATable mw-collapsible" width="100%">
                }}


                <tr>
                    {{#if: {{{OralROA_Bioavailability}}} |
                    <th class="ROAHeader" colspan="2">[[Routes of Administration#Oral|Oral]]</th>
                    <tr class="ROASectionRow">
                </tr>
                        <th class="ROARowHeader">[[Dosage#Bioavailability|Bioavailability]]</th>
                        <td class="RowValues">{{{OralROA_Bioavailability}}}</td>
                        <!--Display bioavailability -->
                    </tr>
                    |}}


                <tr>
                    {{#arrayunique: OralDosage}}
                    <th class="ROASubHeader" colspan="2">[[Dosage]]</th>
                    {{#loop: i | 0 | {{#arraysize: OralDosage}} |
                </tr>
                    {{#arraydefine: val | {{#arrayindex: OralDosage | {{#var: i}} }} | ; }}
                    {{#if: {{#arrayindex: val | 1 }} |
                    <tr class="ROASectionRow">
                        <th class="ROARowHeader">[[Dosage_classification#{{#arrayindex: val | 0 }}|{{#arrayindex: val | 0 }}]]</th>
                        <td class="RowValues">{{#arrayindex: val | 1 }}</td>
                    </tr>
                    |}}
                    }}


                {{ISBDosageChart|substance={{{MaterialTable_Title}}}|roa=Oral}}
                    <tr class="ROASubHeaderRow">
 
                        <th class="ROASubHeader" colspan="2">[[Duration]]</th>
                {{#if: {{{OralROA_Bioavailability}}} |
                     </tr>
                <tr>
                    <th class="ROARowHeader">[[Dosage#Bioavailability|Bioavailability]]</th>
                     <td class="RowValues">{{{OralROA_Bioavailability}}}</td>
                    <!--Display bioavailability -->
                </tr>
                |}}


                {{#arrayunique: OralDosage}}
                    {{#if: {{{OralROA_TimelineFile}}} |
                {{#loop: i | 0 | {{#arraysize: OralDosage}} |
                    <tr class="ROASectionRow">
                {{#arraydefine: val | {{#arrayindex: OralDosage | {{#var: i}} }} | ; }}
                        <td colspan="2">[[ {{{OralROA_TimelineFile}}} | center | {{{OralROA_TimelineWidth}}} ]]</td>
                {{#if: {{#arrayindex: val | 1 }} |
                        <!--Display timeline image -->
                <tr>
                    </tr>
                    <th class="ROARowHeader">[[Dosage_classification#{{#arrayindex: val | 0 }}|{{#arrayindex: val | 0 }}]]</th>
                    |}}
                    <td class="RowValues">{{#arrayindex: val | 1 }}</td>
                </tr>
                |}}
                }}


                <tr>
                    {{#arrayunique: OralDuration}}
                    <th class="ROASubHeader" colspan="2">[[Duration]]</th>
                    {{#loop: i | 0 | {{#arraysize: OralDuration}} |
                </tr>
                    {{#arraydefine: val | {{#arrayindex: OralDuration | {{#var: i}} }} | ; }}
                    {{#if: {{#arrayindex: val | 1 }} |
                    <tr class="ROASectionRow">
                        <th class="ROARowHeader">[[Duration#{{#arrayindex: val | 0 }}|{{#arrayindex: val | 0 }}]]</th>
                        <td class="RowValues">{{#arrayindex: val | 1 }}</td>
                    </tr>
                    |}}
                    }}


                {{#if: {{{OralROA_TimelineFile}}} |
                 </table>
                <tr>
                    <td colspan="2">[[ {{{OralROA_TimelineFile}}} | center | {{{OralROA_TimelineWidth}}} ]]</td>
                    <!--Display timeline image -->
                 </tr>
                |}}


                {{#arrayunique: OralDuration}}
                {{#loop: i | 0 | {{#arraysize: OralDuration}} |
                {{#arraydefine: val | {{#arrayindex: OralDuration | {{#var: i}} }} | ; }}
                {{#if: {{#arrayindex: val | 1 }} |
                <tr>
                    <th class="ROARowHeader">[[Duration#{{#arrayindex: val | 0 }}|{{#arrayindex: val | 0 }}]]</th>
                    <td class="RowValues">{{#arrayindex: val | 1 }}</td>
                </tr>
                 |}}
                 |}}
                }}


            </table>
                <!-- Buccal -->
                {{#ifeq: {{{BuccalROA}}} | true |


            |}}
                {{#ifeq: {{{BuccalROA_Collapsed}}} | true |
                <table class="ROATable mw-collapsible mw-collapsed" width="100%">|
                <table class="ROATable mw-collapsible" width="100%">
                    }}


            <!-- Buccal -->
                    <tr class="ROAHeaderRow">
            {{#ifeq: {{{BuccalROA}}} | true |
                        <th class="ROAHeader" colspan="2">⇣ [[Routes of Administration#Buccal|Buccal]]</th>
                    </tr>


            {{#ifeq: {{{BuccalROA_Collapsed}}} | true |
                    <tr class="ROASubHeaderRow">
            <table class="ROATable mw-collapsible mw-collapsed" width="100%">|
                        <th class="ROASubHeader" colspan="2">[[Dosage]]</th>
            <table class="ROATable mw-collapsible" width="100%">
                    </tr>
                }}


                <tr>
                     {{ISBDosageChart|substance={{{MaterialTable_Title}}}|roa=Buccal}}
                     <th class="ROAHeader" colspan="2">[[Routes of Administration#Buccal|Buccal]]</th>
                </tr>


                <tr>
                    {{#if: {{{BuccalROA_Bioavailability}}} |
                    <th class="ROASubHeader" colspan="2">[[Dosage]]</th>
                    <tr class="ROASectionRow">
                </tr>
                        <th class="ROARowHeader">[[Dosage#Bioavailability|Bioavailability]]</th>
                        <td class="RowValues">{{{BuccalROA_Bioavailability}}}</td>
                        <!--Display bioavailability -->
                    </tr>
                    |}}


                {{ISBDosageChart|substance={{{MaterialTable_Title}}}|roa=Buccal}}
                    {{#arrayunique: BuccalDosage}}
                    {{#loop: i | 0 | {{#arraysize: BuccalDosage}} |
                    {{#arraydefine: val | {{#arrayindex: BuccalDosage | {{#var: i}} }} | ; }}
                    {{#if: {{#arrayindex: val | 1 }} |
                    <tr class="ROASectionRow">
                        <th class="ROARowHeader">[[Dosage_classification#{{#arrayindex: val | 0 }}|{{#arrayindex: val | 0 }}]]</th>
                        <td class="RowValues">{{#arrayindex: val | 1 }}</td>
                    </tr>
                    |}}
                    }}


                {{#if: {{{BuccalROA_Bioavailability}}} |
                    <tr class="ROASubHeaderRow">
                <tr>
                        <th class="ROASubHeader" colspan="2">[[Duration]]</th>
                    <th class="ROARowHeader">[[Dosage#Bioavailability|Bioavailability]]</th>
                     </tr>
                     <td class="RowValues">{{{BuccalROA_Bioavailability}}}</td>
                    <!--Display bioavailability -->
                </tr>
                |}}


                {{#arrayunique: BuccalDosage}}
                    {{#if: {{{BuccalROA_TimelineFile}}} |
                {{#loop: i | 0 | {{#arraysize: BuccalDosage}} |
                    <tr class="ROASectionRow">
                {{#arraydefine: val | {{#arrayindex: BuccalDosage | {{#var: i}} }} | ; }}
                        <td colspan="2">[[ {{{BuccalROA_TimelineFile}}} | center | {{{BuccalROA_TimelineWidth}}} ]]</td>
                {{#if: {{#arrayindex: val | 1 }} |
                        <!--Display timeline image -->
                <tr>
                    </tr>
                    <th class="ROARowHeader">[[Dosage_classification#{{#arrayindex: val | 0 }}|{{#arrayindex: val | 0 }}]]</th>
                    |}}
                    <td class="RowValues">{{#arrayindex: val | 1 }}</td>
                </tr>
                |}}
                }}


                <tr>
                    {{#arrayunique: BuccalDuration}}
                    <th class="ROASubHeader" colspan="2">[[Duration]]</th>
                    {{#loop: i | 0 | {{#arraysize: BuccalDuration}} |
                </tr>
                    {{#arraydefine: val | {{#arrayindex: BuccalDuration | {{#var: i}} }} | ; }}
                    {{#if: {{#arrayindex: val | 1 }} |
                    <tr class="ROASectionRow">
                        <th class="ROARowHeader">[[Duration#{{#arrayindex: val | 0 }}|{{#arrayindex: val | 0 }}]]</th>
                        <td class="RowValues">{{#arrayindex: val | 1 }}</td>
                    </tr>
                    |}}
                    }}


                {{#if: {{{BuccalROA_TimelineFile}}} |
                 </table>
                <tr>
                    <td colspan="2">[[ {{{BuccalROA_TimelineFile}}} | center | {{{BuccalROA_TimelineWidth}}} ]]</td>
                    <!--Display timeline image -->
                 </tr>
                |}}


                {{#arrayunique: BuccalDuration}}
                {{#loop: i | 0 | {{#arraysize: BuccalDuration}} |
                {{#arraydefine: val | {{#arrayindex: BuccalDuration | {{#var: i}} }} | ; }}
                {{#if: {{#arrayindex: val | 1 }} |
                <tr>
                    <th class="ROARowHeader">[[Duration#{{#arrayindex: val | 0 }}|{{#arrayindex: val | 0 }}]]</th>
                    <td class="RowValues">{{#arrayindex: val | 1 }}</td>
                </tr>
                 |}}
                 |}}
                }}


            </table>
                <!-- Sublingual -->
                {{#ifeq: {{{SublingualROA}}} | true |


            |}}
                {{#ifeq: {{{SublingualROA_Collapsed}}} | true |
                <table class="ROATable mw-collapsible mw-collapsed" width="100%">|
                <table class="ROATable mw-collapsible" width="100%">
                    }}


            <!-- Sublingual -->
                    <tr class="ROAHeaderRow">
            {{#ifeq: {{{SublingualROA}}} | true |
                        <th class="ROAHeader" colspan="2">⇣ [[Routes of Administration#Sublingual|Sublingual]]</th>
                    </tr>


            {{#ifeq: {{{SublingualROA_Collapsed}}} | true |
                    <tr class="ROASubHeaderRow">
            <table class="ROATable mw-collapsible mw-collapsed" width="100%">|
                        <th class="ROASubHeader" colspan="2">[[Dosage]]</th>
            <table class="ROATable mw-collapsible" width="100%">
                    </tr>
                }}


                <tr>
                     {{ISBDosageChart|substance={{{MaterialTable_Title}}}|roa=Sublingual}}
                     <th class="ROAHeader" colspan="2">[[Routes of Administration#Sublingual|Sublingual]]</th>
                </tr>


                <tr>
                    {{#if: {{{SublingualROA_Caption}}} |
                    <th class="ROASubHeader" colspan="2">[[Dosage]]</th>
                    <!--<tr>
                </tr>
                        <td class="ROACaption" colspan="2">{{{SublingualROA_Caption}}}</td>
                    </tr>-->
                    |}}


                {{ISBDosageChart|substance={{{MaterialTable_Title}}}|roa=Sublingual}}
                    {{#if: {{{SublingualROA_Bioavailability}}} |
                    <tr class="ROASectionRow">
                        <th class="ROARowHeader">[[Dosage#Bioavailability|Bioavailability]]</th>
                        <td class="RowValues">{{{SublingualROA_Bioavailability}}}</td>
                        <!--Display bioavailability -->
                    </tr>
                    |}}


                {{#if: {{{SublingualROA_Caption}}} |
                    {{#arrayunique: SublingualDosage}}
                <tr>
                    {{#loop: i | 0 | {{#arraysize: SublingualDosage}} |
                    <td class="ROACaption" colspan="2">{{{SublingualROA_Caption}}}</td>
                    {{#arraydefine: val | {{#arrayindex: SublingualDosage | {{#var: i}} }} | ; }}
                     <!--Display notes image -->
                    {{#if: {{#arrayindex: val | 1 }} |
                </tr>
                    <tr class="ROASectionRow">
                |}}
                        <th class="ROARowHeader">[[Dosage_classification#{{#arrayindex: val | 0 }}|{{#arrayindex: val | 0 }}]]</th>
                        <td class="RowValues">{{#arrayindex: val | 1 }}</td>
                     </tr>
                    |}}
                    }}


                {{#if: {{{SublingualROA_Bioavailability}}} |
                    <tr class="ROASubHeaderRow">
                <tr>
                        <th class="ROASubHeader" colspan="2">[[Duration]]</th>
                    <th class="ROARowHeader">[[Dosage#Bioavailability|Bioavailability]]</th>
                     </tr>
                     <td class="RowValues">{{{SublingualROA_Bioavailability}}}</td>
                    <!--Display bioavailability -->
                </tr>
                |}}


                {{#arrayunique: SublingualDosage}}
                    {{#if: {{{SublingualROA_TimelineFile}}} |
                {{#loop: i | 0 | {{#arraysize: SublingualDosage}} |
                    <tr class="ROASectionRow">
                {{#arraydefine: val | {{#arrayindex: SublingualDosage | {{#var: i}} }} | ; }}
                        <td colspan="2">[[ {{{SublingualROA_TimelineFile}}} | center | {{{SublingualROA_TimelineWidth}}}
                {{#if: {{#arrayindex: val | 1 }} |
                            ]]
                <tr>
                        </td>
                    <th class="ROARowHeader">[[Dosage_classification#{{#arrayindex: val | 0 }}|{{#arrayindex: val | 0 }}]]</th>
                        <!--Display timeline image -->
                    <td class="RowValues">{{#arrayindex: val | 1 }}</td>
                    </tr>
                </tr>
                    |}}
                |}}
                }}


                <tr>
                    {{#arrayunique: SublingualDuration}}
                    <th class="ROASubHeader" colspan="2">[[Duration]]</th>
                    {{#loop: i | 0 | {{#arraysize: SublingualDuration}} |
                 </tr>
                    {{#arraydefine: val | {{#arrayindex: SublingualDuration | {{#var: i}} }} | ; }}
                    {{#if: {{#arrayindex: val | 1 }} |
                    <tr class="ROASectionRow">
                        <th class="ROARowHeader">[[Duration#{{#arrayindex: val | 0 }}|{{#arrayindex: val | 0 }}]]</th>
                        <td class="RowValues">{{#arrayindex: val | 1 }}</td>
                    </tr>
                    |}}
                    }}
                 </table>


                {{#if: {{{SublingualROA_TimelineFile}}} |
                <tr>
                    <td colspan="2">[[ {{{SublingualROA_TimelineFile}}} | center | {{{SublingualROA_TimelineWidth}}}
                        ]]
                    </td>
                    <!--Display timeline image -->
                </tr>
                 |}}
                 |}}


                 {{#arrayunique: SublingualDuration}}
                 <!-- Insufflated -->
                 {{#loop: i | 0 | {{#arraysize: SublingualDuration}} |
                 {{#ifeq: {{{InsufflatedROA}}} | true |
                {{#arraydefine: val | {{#arrayindex: SublingualDuration | {{#var: i}} }} | ; }}
                {{#if: {{#arrayindex: val | 1 }} |
                <tr>
                    <th class="ROARowHeader">[[Duration#{{#arrayindex: val | 0 }}|{{#arrayindex: val | 0 }}]]</th>
                    <td class="RowValues">{{#arrayindex: val | 1 }}</td>
                </tr>
                |}}
                }}
            </table>


            |}}
                {{#ifeq: {{{InsufflatedROA_Collapsed}}} | true |
                <table class="ROATable mw-collapsible mw-collapsed" width="100%">|
                <table class="ROATable mw-collapsible" width="100%">
                    }}


            <!-- Insufflated -->
                    <tr class="ROAHeaderRow">
            {{#ifeq: {{{InsufflatedROA}}} | true |
                        <th class="ROAHeader" colspan="2">⇣ [[Routes of Administration#Insufflated|Insufflated]]</th>
                    </tr>


            {{#ifeq: {{{InsufflatedROA_Collapsed}}} | true |
                    <tr class="ROASubHeaderRow">
            <table class="ROATable mw-collapsible mw-collapsed" width="100%">|
                        <th class="ROASubHeader" colspan="2">[[Dosage]]</th>
            <table class="ROATable mw-collapsible" width="100%">
                    </tr>
                }}


                <tr>
                     {{ISBDosageChart|substance={{{MaterialTable_Title}}}|roa=Insufflated}}
                     <th class="ROAHeader" colspan="2">[[Routes of Administration#Insufflated|Insufflated]]</th>
                </tr>


                <tr>
                    {{#if: {{{InsufflatedROA_Bioavailability}}} |
                    <th class="ROASubHeader" colspan="2">[[Dosage]]</th>
                    <tr class="ROASectionRow">
                </tr>
                        <th class="ROARowHeader">[[Dosage#Bioavailability|Bioavailability]]</th>
                        <td class="RowValues">{{{InsufflatedROA_Bioavailability}}}</td>
                        <!--Display bioavailability -->
                    </tr>
                    |}}


                {{ISBDosageChart|substance={{{MaterialTable_Title}}}|roa=Insufflated}}
                    {{#arrayunique: InsufflatedDosage}}
                    {{#loop: i | 0 | {{#arraysize: InsufflatedDosage}} |
                    {{#arraydefine: val | {{#arrayindex: InsufflatedDosage | {{#var: i}} }} | ; }}
                    {{#if: {{#arrayindex: val | 1 }} |
                    <tr class="ROASectionRow">
                        <th class="ROARowHeader">[[Dosage_classification#{{#arrayindex: val | 0 }}|{{#arrayindex: val | 0 }}]]</th>
                        <td class="RowValues">{{#arrayindex: val | 1 }}</td>
                    </tr>
                    |}}
                    }}


                {{#if: {{{InsufflatedROA_Bioavailability}}} |
                    <tr class="ROASubHeaderRow">
                <tr>
                        <th class="ROASubHeader" colspan="2">[[Duration]]</th>
                    <th class="ROARowHeader">[[Dosage#Bioavailability|Bioavailability]]</th>
                     </tr>
                     <td class="RowValues">{{{InsufflatedROA_Bioavailability}}}</td>
                    <!--Display bioavailability -->
                </tr>
                |}}


                {{#arrayunique: InsufflatedDosage}}
                    {{#if: {{{InsufflatedROA_TimelineFile}}} |
                {{#loop: i | 0 | {{#arraysize: InsufflatedDosage}} |
                    <tr class="ROASectionRow">
                {{#arraydefine: val | {{#arrayindex: InsufflatedDosage | {{#var: i}} }} | ; }}
                        <td colspan="2">[[ {{{InsufflatedROA_TimelineFile}}} | center | {{{InsufflatedROA_TimelineWidth}}}
                {{#if: {{#arrayindex: val | 1 }} |
                            ]]
                <tr>
                        </td>
                    <th class="ROARowHeader">[[Dosage_classification#{{#arrayindex: val | 0 }}|{{#arrayindex: val | 0 }}]]</th>
                        <!--Display timeline image -->
                    <td class="RowValues">{{#arrayindex: val | 1 }}</td>
                    </tr>
                </tr>
                    |}}
                |}}
                }}


                <tr>
                    {{#arrayunique: InsufflatedDuration}}
                    <th class="ROASubHeader" colspan="2">[[Duration]]</th>
                    {{#loop: i | 0 | {{#arraysize: InsufflatedDuration}} |
                </tr>
                    {{#arraydefine: val | {{#arrayindex: InsufflatedDuration | {{#var: i}} }} | ; }}
                    {{#if: {{#arrayindex: val | 1 }} |
                    <tr class="ROASectionRow">
                        <th class="ROARowHeader">[[Duration#{{#arrayindex: val | 0 }}|{{#arrayindex: val | 0 }}]]</th>
                        <td class="RowValues">{{#arrayindex: val | 1 }}</td>
                    </tr>
                    |}}
                    }}


                {{#if: {{{InsufflatedROA_TimelineFile}}} |
                 </table>
                <tr>
                    <td colspan="2">[[ {{{InsufflatedROA_TimelineFile}}} | center | {{{InsufflatedROA_TimelineWidth}}}
                        ]]
                    </td>
                    <!--Display timeline image -->
                 </tr>
                |}}


                {{#arrayunique: InsufflatedDuration}}
                {{#loop: i | 0 | {{#arraysize: InsufflatedDuration}} |
                {{#arraydefine: val | {{#arrayindex: InsufflatedDuration | {{#var: i}} }} | ; }}
                {{#if: {{#arrayindex: val | 1 }} |
                <tr>
                    <th class="ROARowHeader">[[Duration#{{#arrayindex: val | 0 }}|{{#arrayindex: val | 0 }}]]</th>
                    <td class="RowValues">{{#arrayindex: val | 1 }}</td>
                </tr>
                 |}}
                 |}}
                }}


            </table>
                <!-- Rectal -->
                {{#ifeq: {{{RectalROA}}} | true |


            |}}


            <!-- Rectal -->
                {{#ifeq: {{{RectalROA_Collapsed}}} | true |
            {{#ifeq: {{{RectalROA}}} | true |
                <table class="ROATable mw-collapsible mw-collapsed" width="100%">|
                <table class="ROATable mw-collapsible" width="100%">
                    }}


                    <tr class="ROAHeaderRow">
                        <th class="ROAHeader" colspan="2">⇣ [[Routes of Administration#Rectal|Rectal]]</th>
                    </tr>


            {{#ifeq: {{{RectalROA_Collapsed}}} | true |
                    <tr class="ROASubHeaderRow">
            <table class="ROATable mw-collapsible mw-collapsed" width="100%">|
                        <th class="ROASubHeader" colspan="2">[[Dosage]]</th>
            <table class="ROATable mw-collapsible" width="100%">
                    </tr>
                }}


                <tr>
                     {{ISBDosageChart|substance={{{MaterialTable_Title}}}|roa=Rectal}}
                     <th class="ROAHeader" colspan="2">[[Routes of Administration#Rectal|Rectal]]</th>
                </tr>


                <tr>
                    {{#if: {{{RectalROA_Bioavailability}}} |
                    <th class="ROASubHeader" colspan="2">[[Dosage]]</th>
                    <tr class="ROASectionRow">
                </tr>
                        <th class="ROARowHeader">[[Dosage#Bioavailability|Bioavailability]]</th>
                        <td class="RowValues">{{{RectalROA_Bioavailability}}}</td>
                        <!--Display bioavailability -->
                    </tr>
                    |}}


                {{ISBDosageChart|substance={{{MaterialTable_Title}}}|roa=Rectal}}
                    {{#arrayunique: RectalDosage}}
                    {{#loop: i | 0 | {{#arraysize: RectalDosage}} |
                    {{#arraydefine: val | {{#arrayindex: RectalDosage | {{#var: i}} }} | ; }}
                    {{#if: {{#arrayindex: val | 1 }} |
                    <tr class="ROASectionRow">
                        <th class="ROARowHeader">[[Dosage_classification#{{#arrayindex: val | 0 }}|{{#arrayindex: val | 0 }}]]</th>
                        <td class="RowValues">{{#arrayindex: val | 1 }}</td>
                    </tr>
                    |}}
                    }}


                {{#if: {{{RectalROA_Bioavailability}}} |
                    <tr class="ROASubHeaderRow">
                <tr>
                        <th class="ROASubHeader" colspan="2">[[Duration]]</th>
                    <th class="ROARowHeader">[[Dosage#Bioavailability|Bioavailability]]</th>
                     </tr>
                     <td class="RowValues">{{{RectalROA_Bioavailability}}}</td>
                    <!--Display bioavailability -->
                </tr>
                |}}


                {{#arrayunique: RectalDosage}}
                    {{#if: {{{RectalROA_TimelineFile}}} |
                {{#loop: i | 0 | {{#arraysize: RectalDosage}} |
                    <tr class="ROASectionRow">
                {{#arraydefine: val | {{#arrayindex: RectalDosage | {{#var: i}} }} | ; }}
                        <td colspan="2">[[ {{{RectalROA_TimelineFile}}} | center | {{{RectalROA_TimelineWidth}}} ]]</td>
                {{#if: {{#arrayindex: val | 1 }} |
                        <!--Display timeline image -->
                <tr>
                    </tr>
                    <th class="ROARowHeader">[[Dosage_classification#{{#arrayindex: val | 0 }}|{{#arrayindex: val | 0 }}]]</th>
                    |}}
                    <td class="RowValues">{{#arrayindex: val | 1 }}</td>
                </tr>
                |}}
                }}


                <tr>
                    {{#arrayunique: RectalDuration}}
                    <th class="ROASubHeader" colspan="2">[[Duration]]</th>
                    {{#loop: i | 0 | {{#arraysize: RectalDuration}} |
                </tr>
                    {{#arraydefine: val | {{#arrayindex: RectalDuration | {{#var: i}} }} | ; }}
                    {{#if: {{#arrayindex: val | 1 }} |
                    <tr class="ROASectionRow">
                        <th class="ROARowHeader">[[Duration#{{#arrayindex: val | 0 }}|{{#arrayindex: val | 0 }}]]</th>
                        <td class="RowValues">{{#arrayindex: val | 1 }}</td>
                    </tr>
                    |}}
                    }}


                {{#if: {{{RectalROA_TimelineFile}}} |
                 </table>
                <tr>
                    <td colspan="2">[[ {{{RectalROA_TimelineFile}}} | center | {{{RectalROA_TimelineWidth}}} ]]</td>
                    <!--Display timeline image -->
                 </tr>
                |}}


                {{#arrayunique: RectalDuration}}
                {{#loop: i | 0 | {{#arraysize: RectalDuration}} |
                {{#arraydefine: val | {{#arrayindex: RectalDuration | {{#var: i}} }} | ; }}
                {{#if: {{#arrayindex: val | 1 }} |
                <tr>
                    <th class="ROARowHeader">[[Duration#{{#arrayindex: val | 0 }}|{{#arrayindex: val | 0 }}]]</th>
                    <td class="RowValues">{{#arrayindex: val | 1 }}</td>
                </tr>
                 |}}
                 |}}
                }}


            </table>
                <!-- Transdermal -->
                {{#ifeq: {{{TransdermalROA}}} | true |


            |}}
                {{#ifeq: {{{TransdermalROA_Collapsed}}} | true |
                <table class="ROATable mw-collapsible mw-collapsed" width="100%">|
                <table class="ROATable mw-collapsible" width="100%">
                    }}


            <!-- Transdermal -->
                    <tr class="ROAHeaderRow">
            {{#ifeq: {{{TransdermalROA}}} | true |
                        <th class="ROAHeader" colspan="2">⇣ [[Routes of Administration#Transdermal|Transdermal]]</th>
                    </tr>


            {{#ifeq: {{{TransdermalROA_Collapsed}}} | true |
                    <tr class="ROASubHeaderRow">
            <table class="ROATable mw-collapsible mw-collapsed" width="100%">|
                        <th class="ROASubHeader" colspan="2">[[Dosage]]</th>
            <table class="ROATable mw-collapsible" width="100%">
                    </tr>
                }}


                <tr>
                     {{ISBDosageChart|substance={{{MaterialTable_Title}}}|roa=Transdermal}}
                     <th class="ROAHeader" colspan="2">[[Routes of Administration#Transdermal|Transdermal]]</th>
                </tr>


                <tr>
                    {{#if: {{{TransdermalROA_Bioavailability}}} |
                    <th class="ROASubHeader" colspan="2">[[Dosage]]</th>
                    <tr class="ROASectionRow">
                </tr>
                        <th class="ROARowHeader">[[Dosage#Bioavailability|Bioavailability]]</th>
                        <td class="RowValues">{{{TransdermalROA_Bioavailability}}}</td>
                        <!--Display bioavailability -->
                    </tr>
                    |}}


                {{ISBDosageChart|substance={{{MaterialTable_Title}}}|roa=Transdermal}}
                    {{#arrayunique: TransdermalDosage}}
                    {{#loop: i | 0 | {{#arraysize: TransdermalDosage}} |
                    {{#arraydefine: val | {{#arrayindex: TransdermalDosage | {{#var: i}} }} | ; }}
                    {{#if: {{#arrayindex: val | 1 }} |
                    <tr class="ROASectionRow">
                        <th class="ROARowHeader">[[Dosage_classification#{{#arrayindex: val | 0 }}|{{#arrayindex: val | 0 }}]]</th>
                        <td class="RowValues">{{#arrayindex: val | 1 }}</td>
                    </tr>
                    |}}
                    }}


                {{#if: {{{TransdermalROA_Bioavailability}}} |
                    <tr class="ROASubHeaderRow">
                <tr>
                        <th class="ROASubHeader" colspan="2">[[Duration]]</th>
                    <th class="ROARowHeader">[[Dosage#Bioavailability|Bioavailability]]</th>
                     </tr>
                     <td class="RowValues">{{{TransdermalROA_Bioavailability}}}</td>
                    <!--Display bioavailability -->
                </tr>
                |}}


                {{#arrayunique: TransdermalDosage}}
                    {{#if: {{{TransdermalROA_TimelineFile}}} |
                {{#loop: i | 0 | {{#arraysize: TransdermalDosage}} |
                    <tr class="ROASectionRow">
                {{#arraydefine: val | {{#arrayindex: TransdermalDosage | {{#var: i}} }} | ; }}
                        <td colspan="2">[[ {{{TransdermalROA_TimelineFile}}} | center | {{{TransdermalROA_TimelineWidth}}}
                {{#if: {{#arrayindex: val | 1 }} |
                            ]]
                <tr>
                        </td>
                    <th class="ROARowHeader">[[Dosage_classification#{{#arrayindex: val | 0 }}|{{#arrayindex: val | 0 }}]]</th>
                        <!--Display timeline image -->
                    <td class="RowValues">{{#arrayindex: val | 1 }}</td>
                    </tr>
                </tr>
                    |}}
                |}}
                }}


                <tr>
                    {{#arrayunique: TransdermalDuration}}
                    <th class="ROASubHeader" colspan="2">[[Duration]]</th>
                    {{#loop: i | 0 | {{#arraysize: TransdermalDuration}} |
                </tr>
                    {{#arraydefine: val | {{#arrayindex: TransdermalDuration | {{#var: i}} }} | ; }}
                    {{#if: {{#arrayindex: val | 1 }} |
                    <tr class="ROASectionRow">
                        <th class="ROARowHeader">[[Duration#{{#arrayindex: val | 0 }}|{{#arrayindex: val | 0 }}]]</th>
                        <td class="RowValues">{{#arrayindex: val | 1 }}</td>
                    </tr>
                    |}}
                    }}


                {{#if: {{{TransdermalROA_TimelineFile}}} |
                 </table>
                <tr>
                    <td colspan="2">[[ {{{TransdermalROA_TimelineFile}}} | center | {{{TransdermalROA_TimelineWidth}}}
                        ]]
                    </td>
                    <!--Display timeline image -->
                 </tr>
                |}}


                {{#arrayunique: TransdermalDuration}}
                {{#loop: i | 0 | {{#arraysize: TransdermalDuration}} |
                {{#arraydefine: val | {{#arrayindex: TransdermalDuration | {{#var: i}} }} | ; }}
                {{#if: {{#arrayindex: val | 1 }} |
                <tr>
                    <th class="ROARowHeader">[[Duration#{{#arrayindex: val | 0 }}|{{#arrayindex: val | 0 }}]]</th>
                    <td class="RowValues">{{#arrayindex: val | 1 }}</td>
                </tr>
                 |}}
                 |}}
                }}


            </table>
                <!-- Subcutaneous -->
                {{#ifeq: {{{SubcutaneousROA}}} | true |


            |}}
                {{#ifeq: {{{SubcutaneousROA_Collapsed}}} | true |
                <table class="ROATable mw-collapsible mw-collapsed" width="100%">|
                <table class="ROATable mw-collapsible" width="100%">
                    }}


            <!-- Subcutaneous -->
                    <tr class="ROAHeaderRow">
            {{#ifeq: {{{SubcutaneousROA}}} | true |
                        <th class="ROAHeader" colspan="2">⇣ [[Routes of Administration#Subcutaneous|Subcutaneous]]</th>
                    </tr>


            {{#ifeq: {{{SubcutaneousROA_Collapsed}}} | true |
                    <tr class="ROASubHeaderRow">
            <table class="ROATable mw-collapsible mw-collapsed" width="100%">|
                        <th class="ROASubHeader" colspan="2">[[Dosage]]</th>
            <table class="ROATable mw-collapsible" width="100%">
                    </tr>
                }}


                <tr>
                     {{ISBDosageChart|substance={{{MaterialTable_Title}}}|roa=Subcutaneous}}
                     <th class="ROAHeader" colspan="2">[[Routes of Administration#Subcutaneous|Subcutaneous]]</th>
                </tr>


                <tr>
                    {{#if: {{{SubcutaneousROA_Bioavailability}}} |
                    <th class="ROASubHeader" colspan="2">[[Dosage]]</th>
                    <tr class="ROASectionRow">
                </tr>
                        <th class="ROARowHeader">[[Dosage#Bioavailability|Bioavailability]]</th>
                        <td class="RowValues">{{{SubcutaneousROA_Bioavailability}}}</td>
                        <!--Display bioavailability -->
                    </tr>
                    |}}


                {{ISBDosageChart|substance={{{MaterialTable_Title}}}|roa=Subcutaneous}}
                    {{#arrayunique: SubcutaneousDosage}}
                    {{#loop: i | 0 | {{#arraysize: SubcutaneousDosage}} |
                    {{#arraydefine: val | {{#arrayindex: SubcutaneousDosage | {{#var: i}} }} | ; }}
                    {{#if: {{#arrayindex: val | 1 }} |
                    <tr class="ROASectionRow">
                        <th class="ROARowHeader">[[Dosage_classification#{{#arrayindex: val | 0 }}|{{#arrayindex: val | 0 }}]]</th>
                        <td class="RowValues">{{#arrayindex: val | 1 }}</td>
                    </tr>
                    |}}
                    }}


                {{#if: {{{SubcutaneousROA_Bioavailability}}} |
                    <tr class="ROASubHeaderRow">
                <tr>
                        <th class="ROASubHeader" colspan="2">[[Duration]]</th>
                    <th class="ROARowHeader">[[Dosage#Bioavailability|Bioavailability]]</th>
                     </tr>
                     <td class="RowValues">{{{SubcutaneousROA_Bioavailability}}}</td>
                    <!--Display bioavailability -->
                </tr>
                |}}


                {{#arrayunique: SubcutaneousDosage}}
                    {{#if: {{{SubcutaneousROA_TimelineFile}}} |
                {{#loop: i | 0 | {{#arraysize: SubcutaneousDosage}} |
                    <tr class="ROASectionRow">
                {{#arraydefine: val | {{#arrayindex: SubcutaneousDosage | {{#var: i}} }} | ; }}
                        <td colspan="2">[[ {{{SubcutaneousROA_TimelineFile}}} | center | {{{SubcutaneousROA_TimelineWidth}}}
                {{#if: {{#arrayindex: val | 1 }} |
                            ]]
                <tr>
                        </td>
                    <th class="ROARowHeader">[[Dosage_classification#{{#arrayindex: val | 0 }}|{{#arrayindex: val | 0 }}]]</th>
                        <!--Display timeline image -->
                    <td class="RowValues">{{#arrayindex: val | 1 }}</td>
                    </tr>
                </tr>
                    |}}
                |}}
                }}


                <tr>
                    {{#arrayunique: SubcutaneousDuration}}
                    <th class="ROASubHeader" colspan="2">[[Duration]]</th>
                    {{#loop: i | 0 | {{#arraysize: SubcutaneousDuration}} |
                </tr>
                    {{#arraydefine: val | {{#arrayindex: SubcutaneousDuration | {{#var: i}} }} | ; }}
                    {{#if: {{#arrayindex: val | 1 }} |
                    <tr class="ROASectionRow">
                        <th class="ROARowHeader">[[Duration#{{#arrayindex: val | 0 }}|{{#arrayindex: val | 0 }}]]</th>
                        <td class="RowValues">{{#arrayindex: val | 1 }}</td>
                    </tr>
                    |}}
                    }}


                {{#if: {{{SubcutaneousROA_TimelineFile}}} |
                 </table>
                <tr>
                    <td colspan="2">[[ {{{SubcutaneousROA_TimelineFile}}} | center | {{{SubcutaneousROA_TimelineWidth}}}
                        ]]
                    </td>
                    <!--Display timeline image -->
                 </tr>
                |}}


                {{#arrayunique: SubcutaneousDuration}}
                {{#loop: i | 0 | {{#arraysize: SubcutaneousDuration}} |
                {{#arraydefine: val | {{#arrayindex: SubcutaneousDuration | {{#var: i}} }} | ; }}
                {{#if: {{#arrayindex: val | 1 }} |
                <tr>
                    <th class="ROARowHeader">[[Duration#{{#arrayindex: val | 0 }}|{{#arrayindex: val | 0 }}]]</th>
                    <td class="RowValues">{{#arrayindex: val | 1 }}</td>
                </tr>
                 |}}
                 |}}
                }}


            </table>
                <!-- Intramuscular -->
                {{#ifeq: {{{IntramuscularROA}}} | true |


            |}}
                {{#ifeq: {{{IntramuscularROA_Collapsed}}} | true |
                <table class="ROATable mw-collapsible mw-collapsed" width="100%">|
                <table class="ROATable mw-collapsible" width="100%">
                    }}


            <!-- Intramuscular -->
                    <tr class="ROAHeaderRow">
            {{#ifeq: {{{IntramuscularROA}}} | true |
                        <th class="ROAHeader" colspan="2">⇣ [[Routes of Administration#Intramuscular|Intramuscular]]</th>
                    </tr>


            {{#ifeq: {{{IntramuscularROA_Collapsed}}} | true |
                    <tr class="ROASubHeaderRow">
            <table class="ROATable mw-collapsible mw-collapsed" width="100%">|
                        <th class="ROASubHeader" colspan="2">[[Dosage]]</th>
            <table class="ROATable mw-collapsible" width="100%">
                    </tr>
                }}


                <tr>
                     {{ISBDosageChart|substance={{{MaterialTable_Title}}}|roa=Intramuscular}}
                     <th class="ROAHeader" colspan="2">[[Routes of Administration#Intramuscular|Intramuscular]]</th>
                </tr>


                <tr>
                    {{#if: {{{IntramuscularROA_Bioavailability}}} |
                    <th class="ROASubHeader" colspan="2">[[Dosage]]</th>
                    <tr class="ROASectionRow">
                </tr>
                        <th class="ROARowHeader">[[Dosage#Bioavailability|Bioavailability]]</th>
                        <td class="RowValues">{{{IntramuscularROA_Bioavailability}}}</td>
                        <!--Display bioavailability -->
                    </tr>
                    |}}


                {{ISBDosageChart|substance={{{MaterialTable_Title}}}|roa=Intramuscular}}
                    {{#arrayunique: IntramuscularDosage}}
                    {{#loop: i | 0 | {{#arraysize: IntramuscularDosage}} |
                    {{#arraydefine: val | {{#arrayindex: IntramuscularDosage | {{#var: i}} }} | ; }}
                    {{#if: {{#arrayindex: val | 1 }} |
                    <tr class="ROASectionRow">
                        <th class="ROARowHeader">[[Dosage_classification#{{#arrayindex: val | 0 }}|{{#arrayindex: val | 0 }}]]</th>
                        <td class="RowValues">{{#arrayindex: val | 1 }}</td>
                    </tr>
                    |}}
                    }}
                    <tr class="ROASubHeaderRow">
                        <th class="ROASubHeader" colspan="2">[[Duration]]</th>
                    </tr>


                {{#if: {{{IntramuscularROA_Bioavailability}}} |
                    {{#if: {{{IntramuscularROA_TimelineFile}}} |
                <tr>
                    <tr class="ROASectionRow">
                    <th class="ROARowHeader">[[Dosage#Bioavailability|Bioavailability]]</th>
                        <td colspan="2">[[ {{{IntramuscularROA_TimelineFile}}} | center |
                    <td class="RowValues">{{{IntramuscularROA_Bioavailability}}}</td>
                            {{{IntramuscularROA_TimelineWidth}}} ]]
                    <!--Display bioavailability -->
                        </td>
                </tr>
                        <!--Display timeline image -->
                |}}
                    </tr>
                    |}}


                {{#arrayunique: IntramuscularDosage}}
                    {{#arrayunique: IntramuscularDuration}}
                {{#loop: i | 0 | {{#arraysize: IntramuscularDosage}} |
                    {{#loop: i | 0 | {{#arraysize: IntramuscularDuration}} |
                {{#arraydefine: val | {{#arrayindex: IntramuscularDosage | {{#var: i}} }} | ; }}
                    {{#arraydefine: val | {{#arrayindex: IntramuscularDuration | {{#var: i}} }} | ; }}
                {{#if: {{#arrayindex: val | 1 }} |
                    {{#if: {{#arrayindex: val | 1 }} |
                <tr>
                    <tr class="ROASectionRow">
                    <th class="ROARowHeader">[[Dosage_classification#{{#arrayindex: val | 0 }}|{{#arrayindex: val | 0 }}]]</th>
                        <th class="ROARowHeader">[[Duration#{{#arrayindex: val | 0 }}|{{#arrayindex: val | 0 }}]]</th>
                    <td class="RowValues">{{#arrayindex: val | 1 }}</td>
                        <td class="RowValues">{{#arrayindex: val | 1 }}</td>
                </tr>
                    </tr>
                |}}
                    |}}
                }}
                    }}
                <tr>
                    <th class="ROASubHeader" colspan="2">[[Duration]]</th>
                </tr>


                {{#if: {{{IntramuscularROA_TimelineFile}}} |
                 </table>
                <tr>
                    <td colspan="2">[[ {{{IntramuscularROA_TimelineFile}}} | center |
                        {{{IntramuscularROA_TimelineWidth}}} ]]
                    </td>
                    <!--Display timeline image -->
                 </tr>
                |}}


                {{#arrayunique: IntramuscularDuration}}
                {{#loop: i | 0 | {{#arraysize: IntramuscularDuration}} |
                {{#arraydefine: val | {{#arrayindex: IntramuscularDuration | {{#var: i}} }} | ; }}
                {{#if: {{#arrayindex: val | 1 }} |
                <tr>
                    <th class="ROARowHeader">[[Duration#{{#arrayindex: val | 0 }}|{{#arrayindex: val | 0 }}]]</th>
                    <td class="RowValues">{{#arrayindex: val | 1 }}</td>
                </tr>
                 |}}
                 |}}
                }}


            </table>
                <!-- Intravenous -->
                {{#ifeq: {{{IntravenousROA}}} | true |


            |}}
                {{#ifeq: {{{IntravenousROA_Collapsed}}} | true |
                    <table class="ROATable mw-collapsible mw-collapsed" width="100%">|
                    <table class="ROATable mw-collapsible" width="100%">
                        }}


            <!-- Intravenous -->
                        <tr>
            {{#ifeq: {{{IntravenousROA}}} | true |
                            <th class="ROAHeader" colspan="2">⇣ [[Routes of Administration#Intravenous|Intravenous]]</th>
                        </tr>


            {{#ifeq: {{{IntravenousROA_Collapsed}}} | true |
                        <tr>
            <table class="ROATable mw-collapsible mw-collapsed" width="100%">|
                            <th class="ROASubHeader" colspan="2">[[Dosage]]</th>
            <table class="ROATable mw-collapsible" width="100%">
                        </tr>
                }}


                <tr>
                        {{ISBDosageChart|substance={{{MaterialTable_Title}}}|roa=Intravenous}}
                    <th class="ROAHeader" colspan="2">[[Routes of Administration#Intravenous|Intravenous]]</th>
                </tr>


                <tr>
                        {{#if: {{{IntravenousROA_Bioavailability}}} |
                    <th class="ROASubHeader" colspan="2">[[Dosage]]</th>
                        <tr class="ROASectionRow">
                </tr>
                            <th class="ROARowHeader">[[Dosage#Bioavailability|Bioavailability]]</th>
                            <td class="RowValues">{{{IntravenousROA_Bioavailability}}}</td>
                            <!--Display bioavailability -->
                        </tr>
                        |}}


                {{ISBDosageChart|substance={{{MaterialTable_Title}}}|roa=Intravenous}}
                        {{#arrayunique: IntravenousDosage}}
                        {{#loop: i | 0 | {{#arraysize: IntravenousDosage}} |
                        {{#arraydefine: val | {{#arrayindex: IntravenousDosage | {{#var: i}} }} | ; }}
                        {{#if: {{#arrayindex: val | 1 }} |
                        <tr>
                            <th class="ROARowHeader">[[Dosage_classification#{{#arrayindex: val | 0 }}|{{#arrayindex: val | 0 }}]]</th>
                            <td class="RowValues">{{#arrayindex: val | 1 }}</td>
                        </tr>
                        |}}
                        }}


                {{#if: {{{IntravenousROA_Bioavailability}}} |
                        <tr>
                <tr>
                            <th class="ROASubHeader" colspan="2">[[Duration]]</th>
                    <th class="ROARowHeader">[[Dosage#Bioavailability|Bioavailability]]</th>
                        </tr>
                    <td class="RowValues">{{{IntravenousROA_Bioavailability}}}</td>
                    <!--Display bioavailability -->
                </tr>
                |}}


                {{#arrayunique: IntravenousDosage}}
                        {{#if: {{{IntravenousROA_TimelineFile}}} |
                {{#loop: i | 0 | {{#arraysize: IntravenousDosage}} |
                        <tr>
                {{#arraydefine: val | {{#arrayindex: IntravenousDosage | {{#var: i}} }} | ; }}
                            <td colspan="2">[[ {{{IntravenousROA_TimelineFile}}} | center | {{{IntravenousROA_TimelineWidth}}}
                {{#if: {{#arrayindex: val | 1 }} |
                                ]]
                <tr>
                            </td>
                    <th class="ROARowHeader">[[Dosage_classification#{{#arrayindex: val | 0 }}|{{#arrayindex: val | 0 }}]]</th>
                            <!--Display timeline image -->
                    <td class="RowValues">{{#arrayindex: val | 1 }}</td>
                        </tr>
                </tr>
                        |}}
                |}}
                }}


                <tr>
                        {{#arrayunique: IntravenousDuration}}
                    <th class="ROASubHeader" colspan="2">[[Duration]]</th>
                        {{#loop: i | 0 | {{#arraysize: IntravenousDuration}} |
                </tr>
                            {{#arraydefine: val | {{#arrayindex: IntravenousDuration | {{#var: i}} }} | ; }}
                            {{#if: {{#arrayindex: val | 1 }} |
                                <tr>
                                    <th class="ROARowHeader">[[Duration#{{#arrayindex: val | 0 }}|{{#arrayindex: val | 0 }}]]</th>
                                    <td class="RowValues">{{#arrayindex: val | 1 }}</td>
                                </tr>
                            |}}
                        }}


                {{#if: {{{IntravenousROA_TimelineFile}}} |
                     </table>
                <tr>
                    <td colspan="2">[[ {{{IntravenousROA_TimelineFile}}} | center | {{{IntravenousROA_TimelineWidth}}}
                        ]]
                     </td>
                    <!--Display timeline image -->
                </tr>
                 |}}
                 |}}


                 {{#arrayunique: IntravenousDuration}}
                 <table class="ROATable pw-disclaimer" width="100%">
                {{#loop: i | 0 | {{#arraysize: IntravenousDuration}} |
                    <tr>
                {{#arraydefine: val | {{#arrayindex: IntravenousDuration | {{#var: i}} }} | ; }}
                        <td class="ROACaption" colspan="2">
                {{#if: {{#arrayindex: val | 1 }} |
{{Preamble/SubstanceDisclaimer}}
                <tr>
                        </td>
                    <th class="ROARowHeader">[[Duration#{{#arrayindex: val | 0 }}|{{#arrayindex: val | 0 }}]]</th>
                     </tr>
                     <td class="RowValues">{{#arrayindex: val | 1 }}</td>
                </table>
                </tr>
            </td>
                |}}
        </tr>
                }}
    |}}


            </table>
    {{#arraydefine: uncertaininteractions
            |}}
    | {{#ask:[[:{{{MaterialTable_Title|LSD}}}]]
        |?UncertainInteraction
        |headers=hide
        |format=list
        |mainlabel=-
        |link=none
      }}
    }}


            <table class="ROATable pw-disclaimer" width="100%">
    {{#arraydefine: unsafeinteractions
                <tr>
    | {{#ask:[[:{{{MaterialTable_Title|LSD}}}]]
                    <td class="ROACaption" colspan="2">
        |?UnsafeInteraction
{{Preamble/SubstanceDisclaimer}}
        |headers=hide
                    </td>
        |format=list
                </tr>
        |mainlabel=-
            </table>
        |link=none
      }}
    }}


         </td>
    {{#arraydefine: dangerousinteractions
    </tr>
    | {{#ask:[[:{{{MaterialTable_Title|LSD}}}]]
 
         |?DangerousInteraction
    |}}
        |headers=hide
</table><noinclude>{{documentation}}<!-- Add categories and interwikis to the /doc sub-page --></noinclude>
        |format=list
        |mainlabel=-
        |link=none
      }}
    }} {{#ifeq: {{#arraysize:uncertaininteractions}} | 0 | {{#ifeq: {{#arraysize:unsafeinteractions}} | 0 | {{#ifeq: {{#arraysize:dangerousinteractions}} | 0 ||
                <tr><th id="Interactions" class="SubHeader1" colspan="2">[[#Dangerous interactions|Interactions]]</th></tr>
            }}| <tr><th id="Interactions" class="SubHeader1" colspan="2">[[#Dangerous interactions|Interactions]]</th></tr>
        }}| <tr><th id="Interactions" class="SubHeader1" colspan="2">[[#Dangerous interactions|Interactions]]</th></tr> }} {{#arrayprint:uncertaininteractions||@@@@|
        <tr><th class="ROASubHeader SBInteractionLabel SBInteractionUncertain" colspan="2">@@@@</th></tr> }} {{#arrayprint:unsafeinteractions||@@@@|
        <tr><th class="ROASubHeader SBInteractionLabel SBInteractionUnsafe" colspan="2">@@@@</th></tr> }} {{#arrayprint:dangerousinteractions||@@@@|
        <tr><th class="ROASubHeader SBInteractionLabel SBInteractionDangerous" colspan="2">@@@@</th></tr> }}
</table>
<noinclude>{{documentation}}<!-- Add categories and interwikis to the /doc sub-page --></noinclude>

Latest revision as of 15:11, 24 August 2021

LSD
Interactions
Tricyclic antidepressants
Ritonavir
Lithium
Documentation icon Documentationviewedithistory⧼Code-rev-purge-link⧽

This documentation is transcluded from Template:SubstanceBox/doc.

About

An example of the template with all features enabled is available at Template:SubstanceBox/Example. Please direct any queries to Apx, or comment on the template's discussion page.

In an attempt to standardise the format of the substance index, we have created a modular template structure which should cover most use cases. For each table created, please create a subpage on Template:SubstanceBox using the same tile as the substance article for simplicity. The template's wiki markup code can be found at Template:SubstanceBox/SourceCode. View source and copy the entire text over to the newly created subpage.

You may omit almost any value; however, please do not remove entire fields from the list as this may break compatibility. Any images referenced must also specify their width in pixels.

Table Properties

    |MaterialTable_MaxWidth=auto
    |MaterialTable_Title={{PAGENAME}}

These properties define the table's properties. If you find that the table is unnecessarily wide, please set MaterialTable_MaxWidth to a reasonable value, maybe a few pixels wider than the largest image included. The MaterialTable_Title property can usually be left as is, except when the article's title is not a sufficient heading for the table.

Modules

    |ModuleSource=true
    |ModuleCombination=true
    |ModuleStructure=true
    |ModuleNomenclature=true
    |ModuleROA=true

There are several optional modules included in the template, as explained below. Please set any unused modules to false, but do not remove the field as this may break compatibility.

Source

    |PhotoImageFile=
    |PhotoImageWidth=
    |PhotoImageCaption=

The source module creates an image thumbnail and caption for use on articles which describe herbs, plants and combinations of substances. Please upload only licenced photos of acceptable quality, and include a link to the source. Do not omit any fields if this module is used.

Combination

    |CombinationImage1_Caption=
    |CombinationImage1_File=
    |CombinationImage1_Width=

    |CombinationImage2_Caption=
    |CombinationImage2_File=
    |CombinationImage2_Width=

    |CombinationImage3_Caption=
    |CombinationImage3_File=
    |CombinationImage3_Width=

The combination module is intended for materials which contain multiple active ingredients such as plants, herbs, OTC medication, and breakdowns of drug combinations. Up to three images can be presented in this module, all with optional captions. You must include the image's width in pixels for it to render correctly. If three images is insufficient, please contact PJosepherum. Do not remove any unused fields from the list as this may break compatibility.

Structure

    |MolecularStructureCaption=
    |SkeletalImageFile=
    |SkeletalImageWidth=
    |3DImageFile=
    |3DImageWidth=

The structure module allows for a skeletal diagram and 3D image, both of which are optional. MolecularStructureCaption is intended to indicate factors such as chirality of the active enantiomer, or any other comments. Please specify the image width in pixels if included.

Nomenclature

    |NameCommon=
    |NameSubstitution=
    |NameSystematic=

The nomenclature module is intended for single molecules only. All fields are optional, any values that are omitted will simply not appear in the table. NameCommon can be set as a comma separated list to specify multiple names. Please verify the substitution and systemic names if used.

For example:

  • NameCommon = O-Acetylpsilocybin, 4-AcO-DMT
  • NameSubstitution = 4-Acetoxy-Dimethyltryptamine
  • NameSystematic = 2-(1H-indol-3-yl)-N,N-dimethylethanamine

ClassMembership

    |ChemicalClass=
    |EffectClass=

The ClassMembership module displays a substance's chemical classification and the classification of its most obvious effect.

For example:

Dosage/Duration per ROA

    |SmokedROA=false
    |SmokedROA_Collapsed=true
    |SmokedROA_Caption=
    |SmokedROA_Bioavailability=
    |SmokedROA_Threshold=< x mg
    |SmokedROA_Light=x - x mg
    |SmokedROA_Common=x - x mg
    |SmokedROA_Strong=x - x mg
    |SmokedROA_Heavy= >  mg
    |SmokedROA_TimelineFile=
    |SmokedROA_TimelineWidth=
    |SmokedROA_Duration=x - x hours
    |SmokedROA_Onset=x minutes
    |SmokedROA_Comeup=x minutes
    |SmokedROA_Peak=x hours
    |SmokedROA_Offset=x hours
    |SmokedROA_After Effects=x hours

This isn't perfect and really I should translate the whole thing into a LUA module, but for now we have this nice looking expandable dosage/duration table for all likely routes of administration.

All fields are now optional. For ease of modification, please keep the entire template structure intact, removing only the values following =. xxxROA_Collapsed is set to true by default; however, this should be disabled for the first ROA, or the most popular; whichever feels right.

The xxxROA_Caption is standard but can be customised if necessary. Please assume no tolerance while sourcing dosage information. For standardisation, use angle brackets < > and tildes ~ for estimations rather than + or - symbols.

There is a cool feature included whereby we can create a xxxROA_TimelineFile image to upload and include in the table. Erowid's are suitable; however, we would like to generate them at a later date in a consistent format. Any images included must have widths specified.

Do your best judgement with durations. Since they will vary amongst subjects, feel free to denote estimations again using angle brackets < >, tildes ~, or a dash -. Any value omitted will not appear in the table; however, please do not remove any of the fields from the template as this may break compatibility.

The list of currently included routes of administration are as follows;

  • Inhaled
  • Smoked
  • Oral
  • Sublingual
  • Buccal
  • Insufflated
  • Rectal
  • Transdermal
  • Subcutaneous
  • Intramuscular
  • Intravenous

Support

Read again from the top. If you're still confused, please contact PJosepherum or leave a note on the discussion page.

Subpages

See also

Template:BotanyBox