Template:SubstanceBox: Difference between revisions

>PJosepherum
mNo edit summary
>PJosepherum
mNo edit summary
Line 1: Line 1:
<table ID="MaterialTable" style="max-width: {{{MaterialTable_MaxWidth}}};">
<table ID="MaterialTable" style="max-width: {{{MaterialTable_MaxWidth}}};">


<!-- Routes of Administration array population -->
    <!-- Routes of Administration array population -->
{{#arraydefine: SmokedDosage |
    {{#arraydefine: InhaledDosage |
    Threshold;{{{InhaledROA_Threshold}}},
    Light;{{{InhaledROA_Light}}},
    Common;{{{InhaledROA_Common}}},
    Strong;{{{InhaledROA_Strong}}},
    Heavy;{{{InhaledROA_Heavy}}}
    }}
    {{#arraydefine: InhaledDuration |
    Total;{{{InhaledROA_Duration}}},
    Onset;{{{InhaledROA_Onset}}},
    Comeup;{{{InhaledROA_Comeup}}},
    Peak;{{{InhaledROA_Peak}}},
    Offset;{{{InhaledROA_Offset}}},
    Afterglow;{{{InhaledROA_Afterglow}}}
    }}
    {{#arraydefine: SmokedDosage |
     Threshold;{{{SmokedROA_Threshold}}},
     Threshold;{{{SmokedROA_Threshold}}},
     Light;{{{SmokedROA_Light}}},
     Light;{{{SmokedROA_Light}}},
Line 8: Line 23:
     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}}},
     Peak;{{{SmokedROA_Peak}}},
     Peak;{{{SmokedROA_Peak}}},
     Offset;{{{SmokedROA_Offset}}},
     Offset;{{{SmokedROA_Offset}}},
     Afterglow;{{{SmokedROA_Afterglow}}}
     Afterglow;{{{SmokedROA_Afterglow}}}
}}
    }}
{{#arraydefine: OralDosage |
    {{#arraydefine: OralDosage |
     Threshold;{{{OralROA_Threshold}}},
     Threshold;{{{OralROA_Threshold}}},
     Light;{{{OralROA_Light}}},
     Light;{{{OralROA_Light}}},
Line 22: Line 38:
     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}}},
     Peak;{{{OralROA_Peak}}},
     Peak;{{{OralROA_Peak}}},
     Offset;{{{OralROA_Offset}}},
     Offset;{{{OralROA_Offset}}},
     Afterglow;{{{OralROA_Afterglow}}}
     Afterglow;{{{OralROA_Afterglow}}}
}}
    }}
{{#arraydefine: SublingualDosage |
    {{#arraydefine: SublingualDosage |
     Threshold;{{{SublingualROA_Threshold}}},
     Threshold;{{{SublingualROA_Threshold}}},
     Light;{{{SublingualROA_Light}}},
     Light;{{{SublingualROA_Light}}},
Line 36: Line 53:
     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}}},
     Peak;{{{SublingualROA_Peak}}},
     Peak;{{{SublingualROA_Peak}}},
     Offset;{{{SublingualROA_Offset}}},
     Offset;{{{SublingualROA_Offset}}},
     Afterglow;{{{SublingualROA_Afterglow}}}
     Afterglow;{{{SublingualROA_Afterglow}}}
}}
    }}
{{#arraydefine: BuccalDosage |
    {{#arraydefine: BuccalDosage |
     Threshold;{{{BuccalROA_Threshold}}},
     Threshold;{{{BuccalROA_Threshold}}},
     Light;{{{BuccalROA_Light}}},
     Light;{{{BuccalROA_Light}}},
Line 50: Line 68:
     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}}},
     Peak;{{{BuccalROA_Peak}}},
     Peak;{{{BuccalROA_Peak}}},
     Offset;{{{BuccalROA_Offset}}},
     Offset;{{{BuccalROA_Offset}}},
     Afterglow;{{{BuccalROA_Afterglow}}}
     Afterglow;{{{BuccalROA_Afterglow}}}
}}
    }}
{{#arraydefine: InsufflatedDosage |
    {{#arraydefine: InsufflatedDosage |
     Threshold;{{{InsufflatedROA_Threshold}}},
     Threshold;{{{InsufflatedROA_Threshold}}},
     Light;{{{InsufflatedROA_Light}}},
     Light;{{{InsufflatedROA_Light}}},
Line 64: Line 83:
     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}}},
     Peak;{{{InsufflatedROA_Peak}}},
     Peak;{{{InsufflatedROA_Peak}}},
     Offset;{{{InsufflatedROA_Offset}}},
     Offset;{{{InsufflatedROA_Offset}}},
     Afterglow;{{{InsufflatedROA_Afterglow}}}
     Afterglow;{{{InsufflatedROA_Afterglow}}}
}}
    }}
{{#arraydefine: RectalDosage |
    {{#arraydefine: RectalDosage |
     Threshold;{{{RectalROA_Threshold}}},
     Threshold;{{{RectalROA_Threshold}}},
     Light;{{{RectalROA_Light}}},
     Light;{{{RectalROA_Light}}},
Line 78: Line 98:
     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}}},
     Peak;{{{RectalROA_Peak}}},
     Peak;{{{RectalROA_Peak}}},
     Offset;{{{RectalROA_Offset}}},
     Offset;{{{RectalROA_Offset}}},
     Afterglow;{{{RectalROA_Afterglow}}}
     Afterglow;{{{RectalROA_Afterglow}}}
}}
    }}
{{#arraydefine: TransdermalDosage |
    {{#arraydefine: TransdermalDosage |
     Threshold;{{{TransdermalROA_Threshold}}},
     Threshold;{{{TransdermalROA_Threshold}}},
     Light;{{{TransdermalROA_Light}}},
     Light;{{{TransdermalROA_Light}}},
Line 92: Line 113:
     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}}},
     Peak;{{{TransdermalROA_Peak}}},
     Peak;{{{TransdermalROA_Peak}}},
     Offset;{{{TransdermalROA_Offset}}},
     Offset;{{{TransdermalROA_Offset}}},
     Afterglow;{{{TransdermalROA_Afterglow}}}
     Afterglow;{{{TransdermalROA_Afterglow}}}
}}
    }}
{{#arraydefine: SubcutaneousDosage |
    {{#arraydefine: SubcutaneousDosage |
     Threshold;{{{SubcutaneousROA_Threshold}}},
     Threshold;{{{SubcutaneousROA_Threshold}}},
     Light;{{{SubcutaneousROA_Light}}},
     Light;{{{SubcutaneousROA_Light}}},
Line 106: Line 128:
     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}}},
     Peak;{{{SubcutaneousROA_Peak}}},
     Peak;{{{SubcutaneousROA_Peak}}},
     Offset;{{{SubcutaneousROA_Offset}}},
     Offset;{{{SubcutaneousROA_Offset}}},
     Afterglow;{{{SubcutaneousROA_Afterglow}}}
     Afterglow;{{{SubcutaneousROA_Afterglow}}}
}}
    }}
{{#arraydefine: IntramuscularDosage |
    {{#arraydefine: IntramuscularDosage |
     Threshold;{{{IntramuscularROA_Threshold}}},
     Threshold;{{{IntramuscularROA_Threshold}}},
     Light;{{{IntramuscularROA_Light}}},
     Light;{{{IntramuscularROA_Light}}},
Line 120: Line 143:
     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}}},
     Peak;{{{IntramuscularROA_Peak}}},
     Peak;{{{IntramuscularROA_Peak}}},
     Offset;{{{IntramuscularROA_Offset}}},
     Offset;{{{IntramuscularROA_Offset}}},
     Afterglow;{{{IntramuscularROA_Afterglow}}}
     Afterglow;{{{IntramuscularROA_Afterglow}}}
}}
    }}
{{#arraydefine: IntravenousDosage |
    {{#arraydefine: IntravenousDosage |
     Threshold;{{{IntravenousROA_Threshold}}},
     Threshold;{{{IntravenousROA_Threshold}}},
     Light;{{{IntravenousROA_Light}}},
     Light;{{{IntravenousROA_Light}}},
Line 134: Line 158:
     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}}},
     Peak;{{{IntravenousROA_Peak}}},
     Peak;{{{IntravenousROA_Peak}}},
     Offset;{{{IntravenousROA_Offset}}},
     Offset;{{{IntravenousROA_Offset}}},
     Afterglow;{{{IntravenousROA_Afterglow}}}
     Afterglow;{{{IntravenousROA_Afterglow}}}
}}
    }}


     <!-- Header -->
     <!-- Header -->
Line 151: Line 176:
     {{#ifeq: {{{ModuleSource}}} | true |
     {{#ifeq: {{{ModuleSource}}} | true |


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


            </tr>
    </tr>
        |}}
    |}}


     |}}
     |}}
Line 163: Line 190:
     {{#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}}} |
    {{#if: {{{CombinationImage1_File}}} |
            <tr>
    <tr>
                <td class="Image" colspan="2">[[ {{{CombinationImage1_File}}} | frameless | center | {{{CombinationImage1_Width}}} ]]</td>
        <td class="Image" colspan="2">[[ {{{CombinationImage1_File}}} | frameless | center |
            </tr>
            {{{CombinationImage1_Width}}} ]]
        |}}
        </td>
    </tr>
    |}}


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


     |}}
     |}}
Line 204: Line 237:
     {{#ifeq: {{{ModuleStructure}}} | true |
     {{#ifeq: {{{ModuleStructure}}} | true |


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


        <!-- Skeletal -->
    <!-- Skeletal -->
        {{#if: {{{SkeletalImageFile}}} |
    {{#if: {{{SkeletalImageFile}}} |
            <tr>
    <tr>
                <td class="Image" colspan="2">[[ {{{SkeletalImageFile}}} | frameless | center | {{{SkeletalImageWidth}}} ]]</td>
        <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>-->
        <!--<td class="Image" colspan="2">http://opsin.ch.cam.ac.uk/opsin/{{{NameSystematic}}}.png</td>-->
            </tr>
    </tr>
        |}}
    |}}


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


     |}}
     |}}
Line 231: Line 264:
     {{#ifeq: {{{ModuleNomenclature}}} | true |
     {{#ifeq: {{{ModuleNomenclature}}} | true |


        <tr>
    <tr>
            <th id="Nomenclature" class="SubHeader1" colspan="2">Chemical Nomenclature</th>
        <th id="Nomenclature" class="SubHeader1" colspan="2">Chemical Nomenclature</th>
        </tr>
    </tr>


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


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


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


     |}}
     |}}
Line 261: Line 294:
     {{#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">
        <td colspan="2">


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


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


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


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


                        {{#if: {{{SmokedROA_Caption}}} |
                {{#if: {{{InhaledROA_Caption}}} |
                            <tr>
                <tr>
                                <td class="ROACaption" colspan="2">{{{SmokedROA_Caption}}}</td> <!--Display notes image -->
                    <td class="ROACaption" colspan="2">{{{InhaledROA_Caption}}}</td>
                            </tr>
                    <!--Display notes image -->
                        |}}
                </tr>
                |}}


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


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


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


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


                        {{#arrayunique: SmokedDuration}}
            </table>
                        {{#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>
                            |}}
                        }}


            |}}


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


            {{#ifeq: {{{SmokedROA_Collapsed}}} | true |
            <table class="ROATable mw-collapsible mw-collapsed" width="100%">|
            <table class="ROATable mw-collapsible" width="100%">
                }}
                <tr>
                    <th class="ROAHeader" colspan="2">[[Routes of Administration#Smoked|Smoked]]</th>
                </tr>
                <tr>
                    <th class="ROASubHeader" colspan="2">[[Dosage]]</th>
                </tr>
                {{#if: {{{SmokedROA_Caption}}} |
                <tr>
                    <td class="ROACaption" colspan="2">{{{SmokedROA_Caption}}}</td>
                    <!--Display notes image -->
                </tr>
                 |}}
                 |}}


                <!-- Oral -->
                 {{#if: {{{SmokedROA_Bioavailability}}} |
                 {{#ifeq: {{{OralROA}}} | true |
                <tr>
                    <th class="ROARowHeader">[[Dosage#Bioavailability|Bioavailability]]</th>
                    <td>{{{SmokedROA_Bioavailability}}}</td>
                    <!--Display bioavailability -->
                </tr>
                |}}


                    {{#ifeq: {{{OralROA_Collapsed}}} | true |
                {{#arrayunique: SmokedDosage}}
                        <table class="ROATable mw-collapsible mw-collapsed" width="100%">|<table class="ROATable mw-collapsible" width="100%">
                {{#loop: i | 0 | {{#arraysize: SmokedDosage}} |
                     }}
                {{#arraydefine: val | {{#arrayindex: SmokedDosage | {{#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>
                <tr>
                            <th class="ROAHeader" colspan="2">[[Routes of Administration#Oral|Oral]]</th>
                    <th class="ROASubHeader" colspan="2">[[Duration]]</th>
                        </tr>
                </tr>


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


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


                        {{#if: {{{OralROA_Bioavailability}}} |
                            <tr>
                                <th class="ROARowHeader">[[Dosage#Bioavailability|Bioavailability]]</th>
                                <td>{{{OralROA_Bioavailability}}}</td> <!--Display bioavailability -->
                            </tr>
                        |}}


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


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


                        {{#arrayunique: OralDuration}}
            {{#ifeq: {{{OralROA_Collapsed}}} | true |
                        {{#loop: i | 0 | {{#arraysize: OralDuration}} |
            <table class="ROATable mw-collapsible mw-collapsed" width="100%">|
                            {{#arraydefine: val | {{#arrayindex: OralDuration | {{#var: i}} }} | ; }}
            <table class="ROATable mw-collapsible" width="100%">
                            {{#if: {{#arrayindex: val | 1 }} |
                }}
                                <tr>
                                    <th class="ROARowHeader">[[Duration#{{#arrayindex: val | 0 }}|{{#arrayindex: val | 0 }}]]</th>
                                    <td>{{#arrayindex: val | 1 }}</td>
                                </tr>
                            |}}
                        }}


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


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


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


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


                        <tr>
                {{#if: {{{OralROA_TimelineFile}}} |
                            <th class="ROAHeader" colspan="2">[[Routes of Administration#Buccal|Buccal]]</th>
                <tr>
                        </tr>
                    <td colspan="2">[[ {{{OralROA_TimelineFile}}} | center | {{{OralROA_TimelineWidth}}} ]]</td>
                    <!--Display timeline image -->
                </tr>
                |}}


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


                        {{#if: {{{BuccalROA_Caption}}} |
            </table>
                            <tr>
                                <td class="ROACaption" colspan="2">{{{BuccalROA_Caption}}}</td> <!--Display notes image -->
                            </tr>
                        |}}


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


                        {{#arrayunique: BuccalDosage}}
            <!-- Buccal -->
                        {{#loop: i | 0 | {{#arraysize: BuccalDosage}} |
            {{#ifeq: {{{BuccalROA}}} | true |
                            {{#arraydefine: val | {{#arrayindex: BuccalDosage | {{#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>
            {{#ifeq: {{{BuccalROA_Collapsed}}} | true |
                            <th class="ROASubHeader" colspan="2">[[Duration]]</th>
            <table class="ROATable mw-collapsible mw-collapsed" width="100%">|
                        </tr>
            <table class="ROATable mw-collapsible" width="100%">
                }}


                        {{#if: {{{BuccalROA_TimelineFile}}} |
                <tr>
                            <tr>
                    <th class="ROAHeader" colspan="2">[[Routes of Administration#Buccal|Buccal]]</th>
                                <td colspan="2">[[ {{{BuccalROA_TimelineFile}}} | center | {{{BuccalROA_TimelineWidth}}} ]]</td> <!--Display timeline image -->
                </tr>
                            </tr>
                        |}}


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


                     </table>
                {{#if: {{{BuccalROA_Caption}}} |
                <tr>
                    <td class="ROACaption" colspan="2">{{{BuccalROA_Caption}}}</td>
                     <!--Display notes image -->
                </tr>
                |}}


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


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


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


                        <tr>
                {{#if: {{{BuccalROA_TimelineFile}}} |
                            <th class="ROAHeader" colspan="2">[[Routes of Administration#Sublingual|Sublingual]]</th>
                <tr>
                        </tr>
                    <td colspan="2">[[ {{{BuccalROA_TimelineFile}}} | center | {{{BuccalROA_TimelineWidth}}} ]]</td>
                    <!--Display timeline image -->
                </tr>
                |}}


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


                        {{#if: {{{SublingualROA_Caption}}} |
            </table>
                            <tr>
                                <td class="ROACaption" colspan="2">{{{SublingualROA_Caption}}}</td> <!--Display notes image -->
                            </tr>
                        |}}


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


                        {{#arrayunique: SublingualDosage}}
            <!-- Sublingual -->
                        {{#loop: i | 0 | {{#arraysize: SublingualDosage}} |
            {{#ifeq: {{{SublingualROA}}} | true |
                            {{#arraydefine: val | {{#arrayindex: SublingualDosage | {{#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>
            {{#ifeq: {{{SublingualROA_Collapsed}}} | true |
                            <th class="ROASubHeader" colspan="2">[[Duration]]</th>
            <table class="ROATable mw-collapsible mw-collapsed" width="100%">|
                        </tr>
            <table class="ROATable mw-collapsible" width="100%">
                }}


                        {{#if: {{{SublingualROA_TimelineFile}}} |
                <tr>
                            <tr>
                    <th class="ROAHeader" colspan="2">[[Routes of Administration#Sublingual|Sublingual]]</th>
                                <td colspan="2">[[ {{{SublingualROA_TimelineFile}}} | center | {{{SublingualROA_TimelineWidth}}} ]]</td> <!--Display timeline image -->
                </tr>
                            </tr>
                        |}}


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


                {{#if: {{{SublingualROA_Caption}}} |
                <tr>
                    <td class="ROACaption" colspan="2">{{{SublingualROA_Caption}}}</td>
                    <!--Display notes image -->
                </tr>
                 |}}
                 |}}


                <!-- Insufflated -->
                 {{#if: {{{SublingualROA_Bioavailability}}} |
                 {{#ifeq: {{{InsufflatedROA}}} | true |
                <tr>
                    <th class="ROARowHeader">[[Dosage#Bioavailability|Bioavailability]]</th>
                    <td>{{{SublingualROA_Bioavailability}}}</td>
                    <!--Display bioavailability -->
                </tr>
                |}}


                    {{#ifeq: {{{InsufflatedROA_Collapsed}}} | true |
                {{#arrayunique: SublingualDosage}}
                        <table class="ROATable mw-collapsible mw-collapsed" width="100%">|<table class="ROATable mw-collapsible" width="100%">
                {{#loop: i | 0 | {{#arraysize: SublingualDosage}} |
                     }}
                {{#arraydefine: val | {{#arrayindex: SublingualDosage | {{#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>
                <tr>
                            <th class="ROAHeader" colspan="2">[[Routes of Administration#Insufflated|Insufflated]]</th>
                    <th class="ROASubHeader" colspan="2">[[Duration]]</th>
                        </tr>
                </tr>


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


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


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


                        {{#arrayunique: InsufflatedDosage}}
            <!-- Insufflated -->
                        {{#loop: i | 0 | {{#arraysize: InsufflatedDosage}} |
            {{#ifeq: {{{InsufflatedROA}}} | true |
                            {{#arraydefine: val | {{#arrayindex: InsufflatedDosage | {{#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>
            {{#ifeq: {{{InsufflatedROA_Collapsed}}} | true |
                            <th class="ROASubHeader" colspan="2">[[Duration]]</th>
            <table class="ROATable mw-collapsible mw-collapsed" width="100%">|
                        </tr>
            <table class="ROATable mw-collapsible" width="100%">
                }}


                        {{#if: {{{InsufflatedROA_TimelineFile}}} |
                <tr>
                            <tr>
                    <th class="ROAHeader" colspan="2">[[Routes of Administration#Insufflated|Insufflated]]</th>
                                <td colspan="2">[[ {{{InsufflatedROA_TimelineFile}}} | center | {{{InsufflatedROA_TimelineWidth}}} ]]</td> <!--Display timeline image -->
                </tr>
                            </tr>
                        |}}


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


                     </table>
                {{#if: {{{InsufflatedROA_Caption}}} |
                <tr>
                    <td class="ROACaption" colspan="2">{{{InsufflatedROA_Caption}}}</td>
                     <!--Display notes image -->
                </tr>
                |}}


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


                 <!-- Rectal -->
                 {{#arrayunique: InsufflatedDosage}}
                 {{#ifeq: {{{RectalROA}}} | true |
                {{#loop: i | 0 | {{#arraysize: InsufflatedDosage}} |
                {{#arraydefine: val | {{#arrayindex: InsufflatedDosage | {{#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>
                    <th class="ROASubHeader" colspan="2">[[Duration]]</th>
                </tr>


                    {{#ifeq: {{{RectalROA_Collapsed}}} | true |
                {{#if: {{{InsufflatedROA_TimelineFile}}} |
                        <table class="ROATable mw-collapsible mw-collapsed" width="100%">|<table class="ROATable mw-collapsible" width="100%">
                <tr>
                    }}
                    <td colspan="2">[[ {{{InsufflatedROA_TimelineFile}}} | center | {{{InsufflatedROA_TimelineWidth}}}
                        ]]
                    </td>
                    <!--Display timeline image -->
                </tr>
                |}}


                        <tr>
                {{#arrayunique: InsufflatedDuration}}
                            <th class="ROAHeader" colspan="2">[[Routes of Administration#Rectal|Rectal]]</th>
                {{#loop: i | 0 | {{#arraysize: InsufflatedDuration}} |
                        </tr>
                {{#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>
                |}}
                }}


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


                        {{#if: {{{RectalROA_Caption}}} |
            |}}
                            <tr>
                                <td class="ROACaption" colspan="2">{{{RectalROA_Caption}}}</td> <!--Display notes image -->
                            </tr>
                        |}}


                        {{#if: {{{RectalROA_Bioavailability}}} |
            <!-- Rectal -->
                            <tr>
            {{#ifeq: {{{RectalROA}}} | true |
                                <th class="ROARowHeader">[[Dosage#Bioavailability|Bioavailability]]</th>
                                <td>{{{RectalROA_Bioavailability}}}</td> <!--Display bioavailability -->
                            </tr>
                        |}}


                        {{#arrayunique: RectalDosage}}
                        {{#loop: i | 0 | {{#arraysize: RectalDosage}} |
                            {{#arraydefine: val | {{#arrayindex: RectalDosage | {{#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>
            {{#ifeq: {{{RectalROA_Collapsed}}} | true |
                            <th class="ROASubHeader" colspan="2">[[Duration]]</th>
            <table class="ROATable mw-collapsible mw-collapsed" width="100%">|
                        </tr>
            <table class="ROATable mw-collapsible" width="100%">
                }}


                        {{#if: {{{RectalROA_TimelineFile}}} |
                <tr>
                            <tr>
                    <th class="ROAHeader" colspan="2">[[Routes of Administration#Rectal|Rectal]]</th>
                                <td colspan="2">[[ {{{RectalROA_TimelineFile}}} | center | {{{RectalROA_TimelineWidth}}} ]]</td> <!--Display timeline image -->
                </tr>
                            </tr>
                        |}}


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


                     </table>
                {{#if: {{{RectalROA_Caption}}} |
                <tr>
                    <td class="ROACaption" colspan="2">{{{RectalROA_Caption}}}</td>
                     <!--Display notes image -->
                </tr>
                |}}


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


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


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


                        <tr>
                {{#if: {{{RectalROA_TimelineFile}}} |
                            <th class="ROAHeader" colspan="2">[[Routes of Administration#Transdermal|Transdermal]]</th>
                <tr>
                        </tr>
                    <td colspan="2">[[ {{{RectalROA_TimelineFile}}} | center | {{{RectalROA_TimelineWidth}}} ]]</td>
                    <!--Display timeline image -->
                </tr>
                |}}


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


                        {{#if: {{{TransdermalROA_Caption}}} |
            </table>
                            <tr>
                                <td class="ROACaption" colspan="2">{{{TransdermalROA_Caption}}}</td> <!--Display notes image -->
                            </tr>
                        |}}


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


                        {{#arrayunique: TransdermalDosage}}
            <!-- Transdermal -->
                        {{#loop: i | 0 | {{#arraysize: TransdermalDosage}} |
            {{#ifeq: {{{TransdermalROA}}} | true |
                            {{#arraydefine: val | {{#arrayindex: TransdermalDosage | {{#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>
            {{#ifeq: {{{TransdermalROA_Collapsed}}} | true |
                            <th class="ROASubHeader" colspan="2">[[Duration]]</th>
            <table class="ROATable mw-collapsible mw-collapsed" width="100%">|
                        </tr>
            <table class="ROATable mw-collapsible" width="100%">
                }}


                        {{#if: {{{TransdermalROA_TimelineFile}}} |
                <tr>
                            <tr>
                    <th class="ROAHeader" colspan="2">[[Routes of Administration#Transdermal|Transdermal]]</th>
                                <td colspan="2">[[ {{{TransdermalROA_TimelineFile}}} | center | {{{TransdermalROA_TimelineWidth}}} ]]</td> <!--Display timeline image -->
                </tr>
                            </tr>
                        |}}


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


                     </table>
                {{#if: {{{TransdermalROA_Caption}}} |
                <tr>
                    <td class="ROACaption" colspan="2">{{{TransdermalROA_Caption}}}</td>
                     <!--Display notes image -->
                </tr>
                |}}


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


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


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


                        <tr>
                {{#if: {{{TransdermalROA_TimelineFile}}} |
                            <th class="ROAHeader" colspan="2">[[Routes of Administration#Subcutaneous|Subcutaneous]]</th>
                <tr>
                        </tr>
                    <td colspan="2">[[ {{{TransdermalROA_TimelineFile}}} | center | {{{TransdermalROA_TimelineWidth}}}
                        ]]
                    </td>
                    <!--Display timeline image -->
                </tr>
                |}}


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


                        {{#if: {{{SubcutaneousROA_Caption}}} |
            </table>
                            <tr>
                                <td class="ROACaption" colspan="2">{{{SubcutaneousROA_Caption}}}</td> <!--Display notes image -->
                            </tr>
                        |}}


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


                        {{#arrayunique: SubcutaneousDosage}}
            <!-- Subcutaneous -->
                        {{#loop: i | 0 | {{#arraysize: SubcutaneousDosage}} |
            {{#ifeq: {{{SubcutaneousROA}}} | true |
                            {{#arraydefine: val | {{#arrayindex: SubcutaneousDosage | {{#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>
            {{#ifeq: {{{SubcutaneousROA_Collapsed}}} | true |
                            <th class="ROASubHeader" colspan="2">[[Duration]]</th>
            <table class="ROATable mw-collapsible mw-collapsed" width="100%">|
                        </tr>
            <table class="ROATable mw-collapsible" width="100%">
                }}


                        {{#if: {{{SubcutaneousROA_TimelineFile}}} |
                <tr>
                            <tr>
                    <th class="ROAHeader" colspan="2">[[Routes of Administration#Subcutaneous|Subcutaneous]]</th>
                                <td colspan="2">[[ {{{SubcutaneousROA_TimelineFile}}} | center | {{{SubcutaneousROA_TimelineWidth}}} ]]</td> <!--Display timeline image -->
                </tr>
                            </tr>
                        |}}


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


                     </table>
                {{#if: {{{SubcutaneousROA_Caption}}} |
                <tr>
                    <td class="ROACaption" colspan="2">{{{SubcutaneousROA_Caption}}}</td>
                     <!--Display notes image -->
                </tr>
                |}}


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


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


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


                        <tr>
                {{#if: {{{SubcutaneousROA_TimelineFile}}} |
                            <th class="ROAHeader" colspan="2">[[Routes of Administration#Intramuscular|Intramuscular]]</th>
                <tr>
                        </tr>
                    <td colspan="2">[[ {{{SubcutaneousROA_TimelineFile}}} | center | {{{SubcutaneousROA_TimelineWidth}}}
                        ]]
                    </td>
                    <!--Display timeline image -->
                </tr>
                |}}


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


                        {{#if: {{{IntramuscularROA_Caption}}} |
            </table>
                            <tr>
                                <td class="ROACaption" colspan="2">{{{IntramuscularROA_Caption}}}</td> <!--Display notes image -->
                            </tr>
                        |}}


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


                        {{#arrayunique: IntramuscularDosage}}
            <!-- Intramuscular -->
                        {{#loop: i | 0 | {{#arraysize: IntramuscularDosage}} |
            {{#ifeq: {{{IntramuscularROA}}} | true |
                            {{#arraydefine: val | {{#arrayindex: IntramuscularDosage | {{#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>
                            <th class="ROASubHeader" colspan="2">[[Duration]]</th>
                        </tr>


                        {{#if: {{{IntramuscularROA_TimelineFile}}} |
            {{#ifeq: {{{IntramuscularROA_Collapsed}}} | true |
                            <tr>
            <table class="ROATable mw-collapsible mw-collapsed" width="100%">|
                                <td colspan="2">[[ {{{IntramuscularROA_TimelineFile}}} | center | {{{IntramuscularROA_TimelineWidth}}} ]]</td> <!--Display timeline image -->
            <table class="ROATable mw-collapsible" width="100%">
                            </tr>
                }}
                        |}}


                        {{#arrayunique: IntramuscularDuration}}
                <tr>
                        {{#loop: i | 0 | {{#arraysize: IntramuscularDuration}} |
                    <th class="ROAHeader" colspan="2">[[Routes of Administration#Intramuscular|Intramuscular]]</th>
                            {{#arraydefine: val | {{#arrayindex: IntramuscularDuration | {{#var: i}} }} | ; }}
                </tr>
                            {{#if: {{#arrayindex: val | 1 }} |
                                <tr>
                                    <th class="ROARowHeader">[[Duration#{{#arrayindex: val | 0 }}|{{#arrayindex: val | 0 }}]]</th>
                                    <td>{{#arrayindex: val | 1 }}</td>
                                </tr>
                            |}}
                        }}


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


                {{#if: {{{IntramuscularROA_Caption}}} |
                <tr>
                    <td class="ROACaption" colspan="2">{{{IntramuscularROA_Caption}}}</td>
                    <!--Display notes image -->
                </tr>
                 |}}
                 |}}


                <!-- Intravenous -->
                 {{#if: {{{IntramuscularROA_Bioavailability}}} |
                 {{#ifeq: {{{IntravenousROA}}} | true |
                <tr>
                    <th class="ROARowHeader">[[Dosage#Bioavailability|Bioavailability]]</th>
                    <td>{{{IntramuscularROA_Bioavailability}}}</td>
                    <!--Display bioavailability -->
                </tr>
                |}}


                    {{#ifeq: {{{IntravenousROA_Collapsed}}} | true |
                {{#arrayunique: IntramuscularDosage}}
                        <table class="ROATable mw-collapsible mw-collapsed" width="100%">|<table class="ROATable mw-collapsible" width="100%">
                {{#loop: i | 0 | {{#arraysize: IntramuscularDosage}} |
                    }}
                {{#arraydefine: val | {{#arrayindex: IntramuscularDosage | {{#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>
                    <th class="ROASubHeader" colspan="2">[[Duration]]</th>
                </tr>


                        <tr>
                {{#if: {{{IntramuscularROA_TimelineFile}}} |
                            <th class="ROAHeader" colspan="2">[[Routes of Administration#Intravenous|Intravenous]]</th>
                <tr>
                        </tr>
                    <td colspan="2">[[ {{{IntramuscularROA_TimelineFile}}} | center |
                        {{{IntramuscularROA_TimelineWidth}}} ]]
                    </td>
                    <!--Display timeline image -->
                </tr>
                |}}


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


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


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


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


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


                        {{#if: {{{IntravenousROA_TimelineFile}}} |
                {{#arrayunique: IntravenousDosage}}
                            <tr>
                {{#loop: i | 0 | {{#arraysize: IntravenousDosage}} |
                                <td colspan="2">[[ {{{IntravenousROA_TimelineFile}}} | center | {{{IntravenousROA_TimelineWidth}}} ]]</td> <!--Display timeline image -->
                {{#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>
                |}}
                }}


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


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


                {{#arrayunique: IntravenousDuration}}
                {{#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>


             </td>
             |}}
        </tr>
 
        </td>
    </tr>


     |}}
     |}}
</table><noinclude>{{documentation}}<!-- Add categories and interwikis to the /doc sub-page --></noinclude>
</table><noinclude>{{documentation}}<!-- Add categories and interwikis to the /doc sub-page --></noinclude>