Template:SubstanceBox: Difference between revisions

>Pastakhov
insert empty value if variable is not defined. (fix showing rows with variable names)
>David Hedlund
Undo revision 147278 by David Hedlund (talk)
 
(72 intermediate revisions by 9 users not shown)
Line 1: Line 1:
<table ID="MaterialTable" style="max-width: {{{MaterialTable_MaxWidth}}};">
<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|}}},
    Comeup;{{{InhaledROA_Comeup|}}},
        Come up;{{{InhaledROA_Comeup|}}},
    Peak;{{{InhaledROA_Peak|}}},
        Peak;{{{InhaledROA_Peak|}}},
    Offset;{{{InhaledROA_Offset|}}},
        Offset;{{{InhaledROA_Offset|}}},
    Afterglow;{{{InhaledROA_Afterglow|}}}
        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|}}},
    Comeup;{{{SmokedROA_Comeup|}}},
        Come up;{{{SmokedROA_Comeup|}}},
    Peak;{{{SmokedROA_Peak|}}},
        Peak;{{{SmokedROA_Peak|}}},
    Offset;{{{SmokedROA_Offset|}}},
        Offset;{{{SmokedROA_Offset|}}},
    Afterglow;{{{SmokedROA_Afterglow|}}}
        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|}}},
    Comeup;{{{OralROA_Comeup|}}},
        Come up;{{{OralROA_Comeup|}}},
    Peak;{{{OralROA_Peak|}}},
        Peak;{{{OralROA_Peak|}}},
    Offset;{{{OralROA_Offset|}}},
        Offset;{{{OralROA_Offset|}}},
    Afterglow;{{{OralROA_Afterglow|}}}
        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|}}},
    Comeup;{{{SublingualROA_Comeup|}}},
        Come up;{{{SublingualROA_Comeup|}}},
    Peak;{{{SublingualROA_Peak|}}},
        Peak;{{{SublingualROA_Peak|}}},
    Offset;{{{SublingualROA_Offset|}}},
        Offset;{{{SublingualROA_Offset|}}},
    Afterglow;{{{SublingualROA_Afterglow|}}}
        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|}}},
    Comeup;{{{BuccalROA_Comeup|}}},
        Come up;{{{BuccalROA_Comeup|}}},
    Peak;{{{BuccalROA_Peak|}}},
        Peak;{{{BuccalROA_Peak|}}},
    Offset;{{{BuccalROA_Offset|}}},
        Offset;{{{BuccalROA_Offset|}}},
    Afterglow;{{{BuccalROA_Afterglow|}}}
        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|}}},
    Comeup;{{{InsufflatedROA_Comeup|}}},
        Come up;{{{InsufflatedROA_Comeup|}}},
    Peak;{{{InsufflatedROA_Peak|}}},
        Peak;{{{InsufflatedROA_Peak|}}},
    Offset;{{{InsufflatedROA_Offset|}}},
        Offset;{{{InsufflatedROA_Offset|}}},
    Afterglow;{{{InsufflatedROA_Afterglow|}}}
        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|}}},
    Comeup;{{{RectalROA_Comeup|}}},
        Come up;{{{RectalROA_Comeup|}}},
    Peak;{{{RectalROA_Peak|}}},
        Peak;{{{RectalROA_Peak|}}},
    Offset;{{{RectalROA_Offset|}}},
        Offset;{{{RectalROA_Offset|}}},
    Afterglow;{{{RectalROA_Afterglow|}}}
        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|}}},
    Comeup;{{{TransdermalROA_Comeup|}}},
        Come up;{{{TransdermalROA_Comeup|}}},
    Peak;{{{TransdermalROA_Peak|}}},
        Peak;{{{TransdermalROA_Peak|}}},
    Offset;{{{TransdermalROA_Offset|}}},
        Offset;{{{TransdermalROA_Offset|}}},
    Afterglow;{{{TransdermalROA_Afterglow|}}}
        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|}}},
    Comeup;{{{SubcutaneousROA_Comeup|}}},
        Come up;{{{SubcutaneousROA_Comeup|}}},
    Peak;{{{SubcutaneousROA_Peak|}}},
        Peak;{{{SubcutaneousROA_Peak|}}},
    Offset;{{{SubcutaneousROA_Offset|}}},
        Offset;{{{SubcutaneousROA_Offset|}}},
    Afterglow;{{{SubcutaneousROA_Afterglow|}}}
        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|}}},
    Comeup;{{{IntramuscularROA_Comeup|}}},
        Come up;{{{IntramuscularROA_Comeup|}}},
    Peak;{{{IntramuscularROA_Peak|}}},
        Peak;{{{IntramuscularROA_Peak|}}},
    Offset;{{{IntramuscularROA_Offset|}}},
        Offset;{{{IntramuscularROA_Offset|}}},
    Afterglow;{{{IntramuscularROA_Afterglow|}}}
        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|}}},
    Comeup;{{{IntravenousROA_Comeup|}}},
        Come up;{{{IntravenousROA_Comeup|}}},
    Peak;{{{IntravenousROA_Peak|}}},
        Peak;{{{IntravenousROA_Peak|}}},
    Offset;{{{IntravenousROA_Offset|}}},
        Offset;{{{IntravenousROA_Offset|}}},
    Afterglow;{{{IntravenousROA_Afterglow|}}}
        After effects;{{{IntravenousROA_Aftereffects|}}}
     }}
     }}


     <!-- Header -->
     <!-- Header -->
     <tr>
     <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>
            </tr>
        |}}
 
        {{#if: {{{NameSubstitution}}} |
            <tr>
                <th class="RowHeader">Substitutive name</th>
                <td class="RowValues">''{{{NameSubstitution}}}''</td>
            </tr>
        |}}


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


     {{#if: {{{NameSubstitution}}} |
    <!-- Substance Class Membership -->
    <tr>
     {{#ifeq: {{{ModuleClassMembership}}} | true |
        <th class="RowHeader">Substitutive name</th>
        <tr>
         <td>''{{{NameSubstitution}}}''</td>
            <th id="ClassMembership" class="SubHeader1" colspan="2">Class Membership</th>
    </tr>
         </tr>
    |}}


    {{#if: {{{NameSystematic}}} |
        {{#if: {{{EffectClass}}} |
    <tr>
            <tr>
        <th class="RowHeader">Systematic name</th>
                <th class="RowHeader">Psychoactive class</th>
        <td>''{{{NameSystematic}}}''</td>
                <td class="RowValues">''{{{EffectClass}}}''</td>
    </tr>
            </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>
            <td colspan="2" class="ROAHeader">
 
                <table class="ROATable pw-safe-use" width="100%">
                    <tr>
                        <td class="ROACaption" colspan="2">
{{Preamble/SubstanceSafeUse}}
                        </td>
                    </tr>
                </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%">
                    }}
 
                    <tr class="ROAHeaderRow">
                        <th class="ROAHeader" colspan="2">⇣ [[Routes of Administration#Inhaled|Inhaled]]</th>
                    </tr>
 
                    {{ISBDosageChart|substance={{{MaterialTable_Title}}}|roa=Inhaled}}


    <tr>
                    <tr class="ROASubHeaderRow">
        <td colspan="2">
                        <th class="ROASubHeader" colspan="2">[[Dosage]]</th>
                    </tr>


            <!-- Inhaled -->
                    {{#if: {{{InhaledROA_Caption}}} |
            {{#ifeq: {{{InhaledROA}}} | true |
                    <!--<tr>
                        <td class="ROACaption" colspan="2">{{{InhaledROA_Caption}}}</td>
                    </tr>-->
                    |}}


            {{#ifeq: {{{InhaledROA_Collapsed}}} | true |
                    {{#if: {{{InhaledROA_Bioavailability}}} |
            <table class="ROATable mw-collapsible mw-collapsed" width="100%">|
                    <tr class="ROASectionRow">
            <table class="ROATable mw-collapsible" width="100%">
                        <th class="ROARowHeader">[[Dosage#Bioavailability|Bioavailability]]</th>
                }}
                        <td class="RowValues">{{{InhaledROA_Bioavailability}}}</td>
                        <!--Display bioavailability -->
                    </tr>
                    |}}


                <tr>
                    {{#arrayunique: InhaledDosage}}
                    <th class="ROAHeader" colspan="2">[[Routes of Administration#Inhaled|Inhaled]]</th>
                    {{#loop: i | 0 | {{#arraysize: InhaledDosage}} |
                </tr>
                    {{#arraydefine: val | {{#arrayindex: InhaledDosage | {{#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>
                    <tr class="ROASubHeaderRow">
                    <th class="ROASubHeader" colspan="2">[[Dosage]]</th>
                        <th class="ROASubHeader" colspan="2">[[Duration]]</th>
                </tr>
                    </tr>


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


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


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


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


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


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


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


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


            |}}
                    <tr class="ROASubHeaderRow">
                        <th class="ROASubHeader" colspan="2">[[Dosage]]</th>
                    </tr>


            <!-- Smoked -->
                    {{ISBDosageChart|substance={{{MaterialTable_Title}}}|roa=Smoked}}
            {{#ifeq: {{{SmokedROA}}} | true |


            {{#ifeq: {{{SmokedROA_Collapsed}}} | true |
                    {{#if: {{{SmokedROA_Caption}}} |
            <table class="ROATable mw-collapsible mw-collapsed" width="100%">|
                    <!--<tr>
            <table class="ROATable mw-collapsible" width="100%">
                        <td class="ROACaption" colspan="2">{{{SmokedROA_Caption}}}</td>
                }}
                    </tr>-->
                    |}}


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


                <tr>
                    {{#arrayunique: SmokedDosage}}
                    <th class="ROASubHeader" colspan="2">[[Dosage]]</th>
                    {{#loop: i | 0 | {{#arraysize: SmokedDosage}} |
                </tr>
                    {{#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>{{{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#{{#arrayindex: val | 0 }}|{{#arrayindex: val | 0 }}]]</th>
                        <th class="ROARowHeader">[[Duration#{{#arrayindex: val | 0 }}|{{#arrayindex: val | 0 }}]]</th>
                    <td>{{#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>{{#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>
                    |}}
                    }}


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


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


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


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


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


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


            </table>
                {{#ifeq: {{{BuccalROA_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#Buccal|Buccal]]</th>
                    </tr>


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


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


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


                <tr>
                    {{#arrayunique: BuccalDosage}}
                    <th class="ROASubHeader" colspan="2">[[Dosage]]</th>
                    {{#loop: i | 0 | {{#arraysize: BuccalDosage}} |
                </tr>
                    {{#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_Caption}}} |
                    <tr class="ROASubHeaderRow">
                <tr>
                        <th class="ROASubHeader" colspan="2">[[Duration]]</th>
                    <td class="ROACaption" colspan="2">{{{BuccalROA_Caption}}}</td>
                     </tr>
                     <!--Display notes image -->
                </tr>
                |}}


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


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


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


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


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


            </table>
                {{#ifeq: {{{SublingualROA_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#Sublingual|Sublingual]]</th>
                    </tr>


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


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


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


                <tr>
                    {{#if: {{{SublingualROA_Bioavailability}}} |
                    <th class="ROASubHeader" colspan="2">[[Dosage]]</th>
                    <tr class="ROASectionRow">
                </tr>
                        <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>{{{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#{{#arrayindex: val | 0 }}|{{#arrayindex: val | 0 }}]]</th>
                        <!--Display timeline image -->
                    <td>{{#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>{{#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>
                    |}}


                {{#if: {{{InsufflatedROA_Caption}}} |
                    {{#arrayunique: InsufflatedDosage}}
                <tr>
                    {{#loop: i | 0 | {{#arraysize: InsufflatedDosage}} |
                    <td class="ROACaption" colspan="2">{{{InsufflatedROA_Caption}}}</td>
                    {{#arraydefine: val | {{#arrayindex: InsufflatedDosage | {{#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: {{{InsufflatedROA_Bioavailability}}} |
                    <tr class="ROASubHeaderRow">
                <tr>
                        <th class="ROASubHeader" colspan="2">[[Duration]]</th>
                    <th class="ROARowHeader">[[Dosage#Bioavailability|Bioavailability]]</th>
                     </tr>
                     <td>{{{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#{{#arrayindex: val | 0 }}|{{#arrayindex: val | 0 }}]]</th>
                        <!--Display timeline image -->
                    <td>{{#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>{{#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>
                    |}}


                {{#if: {{{RectalROA_Caption}}} |
                    {{#arrayunique: RectalDosage}}
                <tr>
                    {{#loop: i | 0 | {{#arraysize: RectalDosage}} |
                    <td class="ROACaption" colspan="2">{{{RectalROA_Caption}}}</td>
                    {{#arraydefine: val | {{#arrayindex: RectalDosage | {{#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: {{{RectalROA_Bioavailability}}} |
                    <tr class="ROASubHeaderRow">
                <tr>
                        <th class="ROASubHeader" colspan="2">[[Duration]]</th>
                    <th class="ROARowHeader">[[Dosage#Bioavailability|Bioavailability]]</th>
                     </tr>
                     <td>{{{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#{{#arrayindex: val | 0 }}|{{#arrayindex: val | 0 }}]]</th>
                    |}}
                    <td>{{#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>{{#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>
                    |}}


                {{#if: {{{TransdermalROA_Caption}}} |
                    {{#arrayunique: TransdermalDosage}}
                <tr>
                    {{#loop: i | 0 | {{#arraysize: TransdermalDosage}} |
                    <td class="ROACaption" colspan="2">{{{TransdermalROA_Caption}}}</td>
                    {{#arraydefine: val | {{#arrayindex: TransdermalDosage | {{#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: {{{TransdermalROA_Bioavailability}}} |
                    <tr class="ROASubHeaderRow">
                <tr>
                        <th class="ROASubHeader" colspan="2">[[Duration]]</th>
                    <th class="ROARowHeader">[[Dosage#Bioavailability|Bioavailability]]</th>
                     </tr>
                     <td>{{{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#{{#arrayindex: val | 0 }}|{{#arrayindex: val | 0 }}]]</th>
                        <!--Display timeline image -->
                    <td>{{#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>{{#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>
                    |}}


                {{#if: {{{SubcutaneousROA_Caption}}} |
                    {{#arrayunique: SubcutaneousDosage}}
                <tr>
                    {{#loop: i | 0 | {{#arraysize: SubcutaneousDosage}} |
                    <td class="ROACaption" colspan="2">{{{SubcutaneousROA_Caption}}}</td>
                    {{#arraydefine: val | {{#arrayindex: SubcutaneousDosage | {{#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: {{{SubcutaneousROA_Bioavailability}}} |
                    <tr class="ROASubHeaderRow">
                <tr>
                        <th class="ROASubHeader" colspan="2">[[Duration]]</th>
                    <th class="ROARowHeader">[[Dosage#Bioavailability|Bioavailability]]</th>
                     </tr>
                     <td>{{{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#{{#arrayindex: val | 0 }}|{{#arrayindex: val | 0 }}]]</th>
                        <!--Display timeline image -->
                    <td>{{#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>{{#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>
                    |}}


                {{#if: {{{IntramuscularROA_Caption}}} |
                    {{#arrayunique: IntramuscularDosage}}
                <tr>
                    {{#loop: i | 0 | {{#arraysize: IntramuscularDosage}} |
                    <td class="ROACaption" colspan="2">{{{IntramuscularROA_Caption}}}</td>
                    {{#arraydefine: val | {{#arrayindex: IntramuscularDosage | {{#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: {{{IntramuscularROA_Bioavailability}}} |
                    {{#if: {{{IntramuscularROA_TimelineFile}}} |
                <tr>
                    <tr class="ROASectionRow">
                    <th class="ROARowHeader">[[Dosage#Bioavailability|Bioavailability]]</th>
                        <td colspan="2">[[ {{{IntramuscularROA_TimelineFile}}} | center |
                    <td>{{{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#{{#arrayindex: val | 0 }}|{{#arrayindex: val | 0 }}]]</th>
                        <th class="ROARowHeader">[[Duration#{{#arrayindex: val | 0 }}|{{#arrayindex: val | 0 }}]]</th>
                    <td>{{#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>{{#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>
                        |}}


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


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


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


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


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


             </table>
                <table class="ROATable pw-disclaimer" width="100%">
                    <tr>
                        <td class="ROACaption" colspan="2">
{{Preamble/SubstanceDisclaimer}}
                        </td>
                    </tr>
                </table>
             </td>
        </tr>
    |}}


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


         </td>
    {{#arraydefine: unsafeinteractions
     </tr>
    | {{#ask:[[:{{{MaterialTable_Title|LSD}}}]]
         |?UnsafeInteraction
        |headers=hide
        |format=list
        |mainlabel=-
        |link=none
      }}
     }}


     |}}
     {{#arraydefine: dangerousinteractions
</table><noinclude>{{documentation}}<!-- Add categories and interwikis to the /doc sub-page --></noinclude>
    | {{#ask:[[:{{{MaterialTable_Title|LSD}}}]]
        |?DangerousInteraction
        |headers=hide
        |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>