Template:SubstanceBox: Difference between revisions

>PJosepherum
mNo edit summary
>David Hedlund
Undo revision 147278 by David Hedlund (talk)
 
(81 intermediate revisions by 10 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: SmokedDosage |
        Threshold;{{{InhaledROA_Threshold|}}},
    Threshold;{{{SmokedROA_Threshold}}},
        Light;{{{InhaledROA_Light|}}},
    Light;{{{SmokedROA_Light}}},
        Common;{{{InhaledROA_Common|}}},
    Common;{{{SmokedROA_Common}}},
        Strong;{{{InhaledROA_Strong|}}},
    Strong;{{{SmokedROA_Strong}}},
        Heavy;{{{InhaledROA_Heavy|}}}
    Heavy;{{{SmokedROA_Heavy}}}
    }}
}}
 
{{#arraydefine: SmokedDuration |
    {{#arraydefine: InhaledDuration |
    Total;{{{SmokedROA_Duration}}},
        Total;{{{InhaledROA_Duration|}}},
    Onset;{{{SmokedROA_Onset}}},
        Onset;{{{InhaledROA_Onset|}}},
    Peak;{{{SmokedROA_Peak}}},
        Come up;{{{InhaledROA_Comeup|}}},
    Offset;{{{SmokedROA_Offset}}},
        Peak;{{{InhaledROA_Peak|}}},
    Afterglow;{{{SmokedROA_Afterglow}}}
        Offset;{{{InhaledROA_Offset|}}},
}}
        After effects;{{{InhaledROA_Aftereffects|}}}
{{#arraydefine: OralDosage |
    }}
    Threshold;{{{OralROA_Threshold}}},
 
    Light;{{{OralROA_Light}}},
    {{#arraydefine: SmokedDosage |
    Common;{{{OralROA_Common}}},
        Threshold;{{{SmokedROA_Threshold|}}},
    Strong;{{{OralROA_Strong}}},
        Light;{{{SmokedROA_Light|}}},
    Heavy;{{{OralROA_Heavy}}}
        Common;{{{SmokedROA_Common|}}},
}}
        Strong;{{{SmokedROA_Strong|}}},
{{#arraydefine: OralDuration |
        Heavy;{{{SmokedROA_Heavy|}}}
    Total;{{{OralROA_Duration}}},
    }}
    Onset;{{{OralROA_Onset}}},
 
    Peak;{{{OralROA_Peak}}},
    {{#arraydefine: SmokedDuration |
    Offset;{{{OralROA_Offset}}},
        Total;{{{SmokedROA_Duration|}}},
    Afterglow;{{{OralROA_Afterglow}}}
        Onset;{{{SmokedROA_Onset|}}},
}}
        Come up;{{{SmokedROA_Comeup|}}},
{{#arraydefine: SublingualDosage |
        Peak;{{{SmokedROA_Peak|}}},
    Threshold;{{{SublingualROA_Threshold}}},
        Offset;{{{SmokedROA_Offset|}}},
    Light;{{{SublingualROA_Light}}},
        After effects;{{{SmokedROA_Aftereffects|}}}
    Common;{{{SublingualROA_Common}}},
    }}
    Strong;{{{SublingualROA_Strong}}},
 
    Heavy;{{{SublingualROA_Heavy}}}
    {{#arraydefine: OralDosage |
}}
        Threshold;{{{OralROA_Threshold|}}},
{{#arraydefine: SublingualDuration |
        Light;{{{OralROA_Light|}}},
    Total;{{{SublingualROA_Duration}}},
        Common;{{{OralROA_Common|}}},
    Onset;{{{SublingualROA_Onset}}},
        Strong;{{{OralROA_Strong|}}},
    Peak;{{{SublingualROA_Peak}}},
        Heavy;{{{OralROA_Heavy|}}}
    Offset;{{{SublingualROA_Offset}}},
    }}
    Afterglow;{{{SublingualROA_Afterglow}}}
 
}}
    {{#arraydefine: OralDuration |
{{#arraydefine: BuccalDosage |
        Total;{{{OralROA_Duration|}}},
    Threshold;{{{BuccalROA_Threshold}}},
        Onset;{{{OralROA_Onset|}}},
    Light;{{{BuccalROA_Light}}},
        Come up;{{{OralROA_Comeup|}}},
    Common;{{{BuccalROA_Common}}},
        Peak;{{{OralROA_Peak|}}},
    Strong;{{{BuccalROA_Strong}}},
        Offset;{{{OralROA_Offset|}}},
    Heavy;{{{BuccalROA_Heavy}}}
        After effects;{{{OralROA_Aftereffects|}}}
}}
    }}
{{#arraydefine: BuccalDuration |
 
    Total;{{{BuccalROA_Duration}}},
    {{#arraydefine: SublingualDosage |
    Onset;{{{BuccalROA_Onset}}},
        Threshold;{{{SublingualROA_Threshold|}}},
    Peak;{{{BuccalROA_Peak}}},
        Light;{{{SublingualROA_Light|}}},
    Offset;{{{BuccalROA_Offset}}},
        Common;{{{SublingualROA_Common|}}},
    Afterglow;{{{BuccalROA_Afterglow}}}
        Strong;{{{SublingualROA_Strong|}}},
}}
        Heavy;{{{SublingualROA_Heavy|}}}
{{#arraydefine: InsufflatedDosage |
    }}
    Threshold;{{{InsufflatedROA_Threshold}}},
 
    Light;{{{InsufflatedROA_Light}}},
    {{#arraydefine: SublingualDuration |
    Common;{{{InsufflatedROA_Common}}},
        Total;{{{SublingualROA_Duration|}}},
    Strong;{{{InsufflatedROA_Strong}}},
        Onset;{{{SublingualROA_Onset|}}},
    Heavy;{{{InsufflatedROA_Heavy}}}
        Come up;{{{SublingualROA_Comeup|}}},
}}
        Peak;{{{SublingualROA_Peak|}}},
{{#arraydefine: InsufflatedDuration |
        Offset;{{{SublingualROA_Offset|}}},
    Total;{{{InsufflatedROA_Duration}}},
        After effects;{{{SublingualROA_Aftereffects|}}}
    Onset;{{{InsufflatedROA_Onset}}},
    }}
    Peak;{{{InsufflatedROA_Peak}}},
 
    Offset;{{{InsufflatedROA_Offset}}},
    {{#arraydefine: BuccalDosage |
    Afterglow;{{{InsufflatedROA_Afterglow}}}
        Threshold;{{{BuccalROA_Threshold|}}},
}}
        Light;{{{BuccalROA_Light|}}},
{{#arraydefine: RectalDosage |
        Common;{{{BuccalROA_Common|}}},
    Threshold;{{{RectalROA_Threshold}}},
        Strong;{{{BuccalROA_Strong|}}},
    Light;{{{RectalROA_Light}}},
        Heavy;{{{BuccalROA_Heavy|}}}
    Common;{{{RectalROA_Common}}},
    }}
    Strong;{{{RectalROA_Strong}}},
 
    Heavy;{{{RectalROA_Heavy}}}
    {{#arraydefine: BuccalDuration |
}}
        Total;{{{BuccalROA_Duration|}}},
{{#arraydefine: RectalDuration |
        Onset;{{{BuccalROA_Onset|}}},
    Total;{{{RectalROA_Duration}}},
        Come up;{{{BuccalROA_Comeup|}}},
    Onset;{{{RectalROA_Onset}}},
        Peak;{{{BuccalROA_Peak|}}},
    Peak;{{{RectalROA_Peak}}},
        Offset;{{{BuccalROA_Offset|}}},
    Offset;{{{RectalROA_Offset}}},
        After effects;{{{BuccalROA_Aftereffects|}}}
    Afterglow;{{{RectalROA_Afterglow}}}
    }}
}}
 
{{#arraydefine: TransdermalDosage |
    {{#arraydefine: InsufflatedDosage |
    Threshold;{{{TransdermalROA_Threshold}}},
        Threshold;{{{InsufflatedROA_Threshold|}}},
    Light;{{{TransdermalROA_Light}}},
        Light;{{{InsufflatedROA_Light|}}},
    Common;{{{TransdermalROA_Common}}},
        Common;{{{InsufflatedROA_Common|}}},
    Strong;{{{TransdermalROA_Strong}}},
        Strong;{{{InsufflatedROA_Strong|}}},
    Heavy;{{{TransdermalROA_Heavy}}}
        Heavy;{{{InsufflatedROA_Heavy|}}}
}}
    }}
{{#arraydefine: TransdermalDuration |
 
    Total;{{{TransdermalROA_Duration}}},
    {{#arraydefine: InsufflatedDuration |
    Onset;{{{TransdermalROA_Onset}}},
        Total;{{{InsufflatedROA_Duration|}}},
    Peak;{{{TransdermalROA_Peak}}},
        Onset;{{{InsufflatedROA_Onset|}}},
    Offset;{{{TransdermalROA_Offset}}},
        Come up;{{{InsufflatedROA_Comeup|}}},
    Afterglow;{{{TransdermalROA_Afterglow}}}
        Peak;{{{InsufflatedROA_Peak|}}},
}}
        Offset;{{{InsufflatedROA_Offset|}}},
{{#arraydefine: SubcutaneousDosage |
        After effects;{{{InsufflatedROA_Aftereffects|}}}
    Threshold;{{{SubcutaneousROA_Threshold}}},
    }}
    Light;{{{SubcutaneousROA_Light}}},
 
    Common;{{{SubcutaneousROA_Common}}},
    {{#arraydefine: RectalDosage |
    Strong;{{{SubcutaneousROA_Strong}}},
        Threshold;{{{RectalROA_Threshold|}}},
    Heavy;{{{SubcutaneousROA_Heavy}}}
        Light;{{{RectalROA_Light|}}},
}}
        Common;{{{RectalROA_Common|}}},
{{#arraydefine: SubcutaneousDuration |
        Strong;{{{RectalROA_Strong|}}},
    Total;{{{SubcutaneousROA_Duration}}},
        Heavy;{{{RectalROA_Heavy|}}}
    Onset;{{{SubcutaneousROA_Onset}}},
    }}
    Peak;{{{SubcutaneousROA_Peak}}},
 
    Offset;{{{SubcutaneousROA_Offset}}},
    {{#arraydefine: RectalDuration |
    Afterglow;{{{SubcutaneousROA_Afterglow}}}
        Total;{{{RectalROA_Duration|}}},
}}
        Onset;{{{RectalROA_Onset|}}},
{{#arraydefine: IntramuscularDosage |
        Come up;{{{RectalROA_Comeup|}}},
    Threshold;{{{IntramuscularROA_Threshold}}},
        Peak;{{{RectalROA_Peak|}}},
    Light;{{{IntramuscularROA_Light}}},
        Offset;{{{RectalROA_Offset|}}},
    Common;{{{IntramuscularROA_Common}}},
        After effects;{{{RectalROA_Aftereffects|}}}
    Strong;{{{IntramuscularROA_Strong}}},
    }}
    Heavy;{{{IntramuscularROA_Heavy}}}
 
}}
    {{#arraydefine: TransdermalDosage |
{{#arraydefine: IntramuscularDuration |
        Threshold;{{{TransdermalROA_Threshold|}}},
    Total;{{{IntramuscularROA_Duration}}},
        Light;{{{TransdermalROA_Light|}}},
    Onset;{{{IntramuscularROA_Onset}}},
        Common;{{{TransdermalROA_Common|}}},
    Peak;{{{IntramuscularROA_Peak}}},
        Strong;{{{TransdermalROA_Strong|}}},
    Offset;{{{IntramuscularROA_Offset}}},
        Heavy;{{{TransdermalROA_Heavy|}}}
    Afterglow;{{{IntramuscularROA_Afterglow}}}
    }}
}}
 
{{#arraydefine: IntravenousDosage |
    {{#arraydefine: TransdermalDuration |
    Threshold;{{{IntravenousROA_Threshold}}},
        Total;{{{TransdermalROA_Duration|}}},
    Light;{{{IntravenousROA_Light}}},
        Onset;{{{TransdermalROA_Onset|}}},
    Common;{{{IntravenousROA_Common}}},
        Come up;{{{TransdermalROA_Comeup|}}},
    Strong;{{{IntravenousROA_Strong}}},
        Peak;{{{TransdermalROA_Peak|}}},
    Heavy;{{{IntravenousROA_Heavy}}}
        Offset;{{{TransdermalROA_Offset|}}},
}}
        After effects;{{{TransdermalROA_Aftereffects|}}}
{{#arraydefine: IntravenousDuration |
    }}
    Total;{{{IntravenousROA_Duration}}},
 
    Onset;{{{IntravenousROA_Onset}}},
    {{#arraydefine: SubcutaneousDosage |
    Peak;{{{IntravenousROA_Peak}}},
        Threshold;{{{SubcutaneousROA_Threshold|}}},
    Offset;{{{IntravenousROA_Offset}}},
        Light;{{{SubcutaneousROA_Light|}}},
    Afterglow;{{{IntravenousROA_Afterglow}}}
        Common;{{{SubcutaneousROA_Common|}}},
}}
        Strong;{{{SubcutaneousROA_Strong|}}},
        Heavy;{{{SubcutaneousROA_Heavy|}}}
    }}
 
    {{#arraydefine: SubcutaneousDuration |
        Total;{{{SubcutaneousROA_Duration|}}},
        Onset;{{{SubcutaneousROA_Onset|}}},
        Come up;{{{SubcutaneousROA_Comeup|}}},
        Peak;{{{SubcutaneousROA_Peak|}}},
        Offset;{{{SubcutaneousROA_Offset|}}},
        After effects;{{{SubcutaneousROA_Aftereffects|}}}
    }}
 
    {{#arraydefine: IntramuscularDosage |
        Threshold;{{{IntramuscularROA_Threshold|}}},
        Light;{{{IntramuscularROA_Light|}}},
        Common;{{{IntramuscularROA_Common|}}},
        Strong;{{{IntramuscularROA_Strong|}}},
        Heavy;{{{IntramuscularROA_Heavy|}}}
    }}
 
    {{#arraydefine: IntramuscularDuration |
        Total;{{{IntramuscularROA_Duration|}}},
        Onset;{{{IntramuscularROA_Onset|}}},
        Come up;{{{IntramuscularROA_Comeup|}}},
        Peak;{{{IntramuscularROA_Peak|}}},
        Offset;{{{IntramuscularROA_Offset|}}},
        After effects;{{{IntramuscularROA_Aftereffects|}}}
    }}
 
    {{#arraydefine: IntravenousDosage |
        Threshold;{{{IntravenousROA_Threshold|}}},
        Light;{{{IntravenousROA_Light|}}},
        Common;{{{IntravenousROA_Common|}}},
        Strong;{{{IntravenousROA_Strong|}}},
        Heavy;{{{IntravenousROA_Heavy|}}}
    }}
 
    {{#arraydefine: IntravenousDuration |
        Total;{{{IntravenousROA_Duration|}}},
        Onset;{{{IntravenousROA_Onset|}}},
        Come up;{{{IntravenousROA_Comeup|}}},
        Peak;{{{IntravenousROA_Peak|}}},
        Offset;{{{IntravenousROA_Offset|}}},
        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>
             <tr class="SubstanceImage">
                 <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 169: Line 214:
             </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 |
                    {{{CombinationImage1_Width}}} ]]
                </td>
             </tr>
             </tr>
         |}}
         |}}
Line 181: Line 229:
             </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 |
                    {{{CombinationImage2_Width}}} ]]
                </td>
             </tr>
             </tr>
         |}}
         |}}
Line 193: Line 244:
             </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 |
                    {{{CombinationImage3_Width}}} ]]
                </td>
             </tr>
             </tr>
         |}}
         |}}
     |}}
     |}}


     <!-- Molecular Structure -->
     <!-- Molecular Structure -->
     {{#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}}} ]</td>
             </tr>
             </tr>
         |}}
         |}}
Line 225: Line 276:
             </tr>
             </tr>
         |}}
         |}}
     |}}
     |}}


     <!-- Naming Convention -->
     <!-- Naming Convention -->
     {{#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>
Line 238: Line 287:
             <tr>
             <tr>
                 <th class="RowHeader">Common names</th>
                 <th class="RowHeader">Common names</th>
                 <td>''{{{NameCommon}}}''</td>
                 <td class="RowValues">''{{{NameCommon}}}''</td>
             </tr>
             </tr>
         |}}
         |}}
Line 245: Line 294:
             <tr>
             <tr>
                 <th class="RowHeader">Substitutive name</th>
                 <th class="RowHeader">Substitutive name</th>
                 <td>''{{{NameSubstitution}}}''</td>
                 <td class="RowValues">''{{{NameSubstitution}}}''</td>
             </tr>
             </tr>
         |}}
         |}}
Line 252: Line 301:
             <tr>
             <tr>
                 <th class="RowHeader">Systematic name</th>
                 <th class="RowHeader">Systematic name</th>
                 <td>''{{{NameSystematic}}}''</td>
                 <td class="RowValues">''{{{NameSystematic}}}''</td>
            </tr>
        |}}
    |}}
 
    <!-- Substance Class Membership -->
    {{#ifeq: {{{ModuleClassMembership}}} | true |
        <tr>
            <th id="ClassMembership" class="SubHeader1" colspan="2">Class Membership</th>
        </tr>
 
        {{#if: {{{EffectClass}}} |
            <tr>
                <th class="RowHeader">Psychoactive class</th>
                <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 |
Line 266: Line 334:


         <tr>
         <tr>
             <td colspan="2">
             <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 class="ROASubHeaderRow">
                        <th class="ROASubHeader" colspan="2">[[Dosage]]</th>
                    </tr>
 
                    {{#if: {{{InhaledROA_Caption}}} |
                    <!--<tr>
                        <td class="ROACaption" colspan="2">{{{InhaledROA_Caption}}}</td>
                    </tr>-->
                    |}}
 
                    {{#if: {{{InhaledROA_Bioavailability}}} |
                    <tr class="ROASectionRow">
                        <th class="ROARowHeader">[[Dosage#Bioavailability|Bioavailability]]</th>
                        <td class="RowValues">{{{InhaledROA_Bioavailability}}}</td>
                        <!--Display bioavailability -->
                    </tr>
                    |}}
 
                    {{#arrayunique: InhaledDosage}}
                    {{#loop: i | 0 | {{#arraysize: InhaledDosage}} |
                    {{#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 class="ROASubHeaderRow">
                        <th class="ROASubHeader" colspan="2">[[Duration]]</th>
                    </tr>
 
                    {{#if: {{{InhaledROA_TimelineFile}}} |
                    <tr class="ROASectionRow">
                        <td colspan="2">[[ {{{InhaledROA_TimelineFile}}} | center | {{{InhaledROA_TimelineWidth}}} ]]</td>
                        <!--Display timeline image -->
                    </tr>
                    |}}
 
                    {{#arrayunique: InhaledDuration}}
                    {{#loop: i | 0 | {{#arraysize: InhaledDuration}} |
                    {{#arraydefine: val | {{#arrayindex: InhaledDuration | {{#var: i}} }} | ; }}
                    {{#if: {{#arrayindex: val | 1 }} |
                    <tr class="ROASectionRow">
                        <th class="ROARowHeader">[[Duration#{{#arrayindex: val | 0 }}|{{#arrayindex: val | 0 }}]]</th>
                        <td class="RowValues">{{#arrayindex: val | 1 }}</td>
                    </tr>
                    |}}
                    }}
 
 
                </table>
 
                |}}


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


                    {{#ifeq: {{{SmokedROA_Collapsed}}} | true |
                {{#ifeq: {{{SmokedROA_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 class="ROAHeaderRow">
                            <th class="ROAHeader" colspan="2">[[Routes of Administration#Smoked|Smoked]]</th>
                        <th class="ROAHeader" colspan="2">[[Routes of Administration#Smoked|Smoked]]</th>
                         </tr>
                    </tr>
 
                    <tr class="ROASubHeaderRow">
                         <th class="ROASubHeader" colspan="2">[[Dosage]]</th>
                    </tr>


                        <tr>
                    {{ISBDosageChart|substance={{{MaterialTable_Title}}}|roa=Smoked}}
                            <th class="ROASubHeader" colspan="2">[[Dosage]]</th>
                        </tr>


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


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


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


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


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


                        {{#arrayunique: SmokedDuration}}
                    {{#arrayunique: SmokedDuration}}
                        {{#loop: i | 0 | {{#arraysize: SmokedDuration}} |
                    {{#loop: i | 0 | {{#arraysize: SmokedDuration}} |
                            {{#arraydefine: val | {{#arrayindex: SmokedDuration | {{#var: i}} }} | ; }}
                    {{#arraydefine: val | {{#arrayindex: SmokedDuration | {{#var: i}} }} | ; }}
                            {{#if: {{#arrayindex: val | 1 }} |
                    {{#if: {{#arrayindex: val | 1 }} |
                                <tr>
                    <tr class="ROASectionRow">
                                    <th class="ROARowHeader">[[Duration#{{#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>
                            |}}
                    |}}
                        }}
                    }}




                    </table>
                </table>


                 |}}
                 |}}
Line 336: Line 487:
                 {{#ifeq: {{{OralROA}}} | true |
                 {{#ifeq: {{{OralROA}}} | true |


                    {{#ifeq: {{{OralROA_Collapsed}}} | true |
                {{#ifeq: {{{OralROA_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 class="ROAHeaderRow">
                            <th class="ROAHeader" colspan="2">[[Routes of Administration#Oral|Oral]]</th>
                        <th class="ROAHeader" colspan="2">[[Routes of Administration#Oral|Oral]]</th>
                        </tr>
                    </tr>


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


                        {{#if: {{{OralROA_Caption}}} |
                    {{ISBDosageChart|substance={{{MaterialTable_Title}}}|roa=Oral}}
                            <tr>
                                <td class="ROACaption" colspan="2">{{{OralROA_Caption}}}</td> <!--Display notes image -->
                            </tr>
                        |}}


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


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


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


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


                        {{#arrayunique: OralDuration}}
                    {{#arrayunique: OralDuration}}
                        {{#loop: i | 0 | {{#arraysize: OralDuration}} |
                    {{#loop: i | 0 | {{#arraysize: OralDuration}} |
                            {{#arraydefine: val | {{#arrayindex: OralDuration | {{#var: i}} }} | ; }}
                    {{#arraydefine: val | {{#arrayindex: OralDuration | {{#var: i}} }} | ; }}
                            {{#if: {{#arrayindex: val | 1 }} |
                    {{#if: {{#arrayindex: val | 1 }} |
                                <tr>
                    <tr class="ROASectionRow">
                                    <th class="ROARowHeader">[[Duration#{{#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>
                            |}}
                    |}}
                        }}
                    }}


                    </table>
                </table>


                 |}}
                 |}}
Line 400: Line 550:
                 {{#ifeq: {{{BuccalROA}}} | true |
                 {{#ifeq: {{{BuccalROA}}} | true |


                    {{#ifeq: {{{BuccalROA_Collapsed}}} | true |
                {{#ifeq: {{{BuccalROA_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 class="ROAHeaderRow">
                            <th class="ROAHeader" colspan="2">[[Routes of Administration#Buccal|Buccal]]</th>
                        <th class="ROAHeader" colspan="2">[[Routes of Administration#Buccal|Buccal]]</th>
                        </tr>
                    </tr>


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


                        {{#if: {{{BuccalROA_Caption}}} |
                    {{ISBDosageChart|substance={{{MaterialTable_Title}}}|roa=Buccal}}
                            <tr>
                                <td class="ROACaption" colspan="2">{{{BuccalROA_Caption}}}</td> <!--Display notes image -->
                            </tr>
                        |}}


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


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


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


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


                        {{#arrayunique: BuccalDuration}}
                    {{#arrayunique: BuccalDuration}}
                        {{#loop: i | 0 | {{#arraysize: BuccalDuration}} |
                    {{#loop: i | 0 | {{#arraysize: BuccalDuration}} |
                            {{#arraydefine: val | {{#arrayindex: BuccalDuration | {{#var: i}} }} | ; }}
                    {{#arraydefine: val | {{#arrayindex: BuccalDuration | {{#var: i}} }} | ; }}
                            {{#if: {{#arrayindex: val | 1 }} |
                    {{#if: {{#arrayindex: val | 1 }} |
                                <tr>
                    <tr class="ROASectionRow">
                                    <th class="ROARowHeader">[[Duration#{{#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>
                            |}}
                    |}}
                        }}
                    }}


                    </table>
                </table>


                 |}}
                 |}}
Line 464: Line 613:
                 {{#ifeq: {{{SublingualROA}}} | true |
                 {{#ifeq: {{{SublingualROA}}} | true |


                    {{#ifeq: {{{SublingualROA_Collapsed}}} | true |
                {{#ifeq: {{{SublingualROA_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 class="ROAHeaderRow">
                            <th class="ROAHeader" colspan="2">[[Routes of Administration#Sublingual|Sublingual]]</th>
                        <th class="ROAHeader" colspan="2">[[Routes of Administration#Sublingual|Sublingual]]</th>
                         </tr>
                    </tr>
 
                    <tr class="ROASubHeaderRow">
                         <th class="ROASubHeader" colspan="2">[[Dosage]]</th>
                    </tr>


                        <tr>
                    {{ISBDosageChart|substance={{{MaterialTable_Title}}}|roa=Sublingual}}
                            <th class="ROASubHeader" colspan="2">[[Dosage]]</th>
                        </tr>


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


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


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


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


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


                        {{#arrayunique: SublingualDuration}}
                    {{#arrayunique: SublingualDuration}}
                        {{#loop: i | 0 | {{#arraysize: SublingualDuration}} |
                    {{#loop: i | 0 | {{#arraysize: SublingualDuration}} |
                            {{#arraydefine: val | {{#arrayindex: SublingualDuration | {{#var: i}} }} | ; }}
                    {{#arraydefine: val | {{#arrayindex: SublingualDuration | {{#var: i}} }} | ; }}
                            {{#if: {{#arrayindex: val | 1 }} |
                    {{#if: {{#arrayindex: val | 1 }} |
                                <tr>
                    <tr class="ROASectionRow">
                                    <th class="ROARowHeader">[[Duration#{{#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>
                            |}}
                    |}}
                        }}
                    }}
                    </table>
                </table>


                 |}}
                 |}}
Line 527: Line 683:
                 {{#ifeq: {{{InsufflatedROA}}} | true |
                 {{#ifeq: {{{InsufflatedROA}}} | true |


                    {{#ifeq: {{{InsufflatedROA_Collapsed}}} | true |
                {{#ifeq: {{{InsufflatedROA_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 class="ROAHeaderRow">
                            <th class="ROAHeader" colspan="2">[[Routes of Administration#Insufflated|Insufflated]]</th>
                        <th class="ROAHeader" colspan="2">[[Routes of Administration#Insufflated|Insufflated]]</th>
                        </tr>
                    </tr>


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


                        {{#if: {{{InsufflatedROA_Caption}}} |
                    {{ISBDosageChart|substance={{{MaterialTable_Title}}}|roa=Insufflated}}
                            <tr>
                                <td class="ROACaption" colspan="2">{{{InsufflatedROA_Caption}}}</td> <!--Display notes image -->
                            </tr>
                        |}}


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


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


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


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


                        {{#arrayunique: InsufflatedDuration}}
                    {{#arrayunique: InsufflatedDuration}}
                        {{#loop: i | 0 | {{#arraysize: InsufflatedDuration}} |
                    {{#loop: i | 0 | {{#arraysize: InsufflatedDuration}} |
                            {{#arraydefine: val | {{#arrayindex: InsufflatedDuration | {{#var: i}} }} | ; }}
                    {{#arraydefine: val | {{#arrayindex: InsufflatedDuration | {{#var: i}} }} | ; }}
                            {{#if: {{#arrayindex: val | 1 }} |
                    {{#if: {{#arrayindex: val | 1 }} |
                                <tr>
                    <tr class="ROASectionRow">
                                    <th class="ROARowHeader">[[Duration#{{#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>
                            |}}
                    |}}
                        }}
                    }}


                    </table>
                </table>


                 |}}
                 |}}
Line 592: Line 749:




                    {{#ifeq: {{{RectalROA_Collapsed}}} | true |
                {{#ifeq: {{{RectalROA_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 class="ROAHeaderRow">
                            <th class="ROAHeader" colspan="2">[[Routes of Administration#Rectal|Rectal]]</th>
                        <th class="ROAHeader" colspan="2">[[Routes of Administration#Rectal|Rectal]]</th>
                        </tr>
                    </tr>


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


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


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


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


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


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


                        {{#arrayunique: RectalDuration}}
                    {{#arrayunique: RectalDuration}}
                        {{#loop: i | 0 | {{#arraysize: RectalDuration}} |
                    {{#loop: i | 0 | {{#arraysize: RectalDuration}} |
                            {{#arraydefine: val | {{#arrayindex: RectalDuration | {{#var: i}} }} | ; }}
                    {{#arraydefine: val | {{#arrayindex: RectalDuration | {{#var: i}} }} | ; }}
                            {{#if: {{#arrayindex: val | 1 }} |
                    {{#if: {{#arrayindex: val | 1 }} |
                                <tr>
                    <tr class="ROASectionRow">
                                    <th class="ROARowHeader">[[Duration#{{#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>
                            |}}
                    |}}
                        }}
                    }}


                    </table>
                </table>


                 |}}
                 |}}
Line 656: Line 812:
                 {{#ifeq: {{{TransdermalROA}}} | true |
                 {{#ifeq: {{{TransdermalROA}}} | true |


                    {{#ifeq: {{{TransdermalROA_Collapsed}}} | true |
                {{#ifeq: {{{TransdermalROA_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 class="ROAHeaderRow">
                            <th class="ROAHeader" colspan="2">[[Routes of Administration#Transdermal|Transdermal]]</th>
                        <th class="ROAHeader" colspan="2">[[Routes of Administration#Transdermal|Transdermal]]</th>
                        </tr>
                    </tr>


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


                        {{#if: {{{TransdermalROA_Caption}}} |
                    {{ISBDosageChart|substance={{{MaterialTable_Title}}}|roa=Transdermal}}
                            <tr>
                                <td class="ROACaption" colspan="2">{{{TransdermalROA_Caption}}}</td> <!--Display notes image -->
                            </tr>
                        |}}


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


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


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


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


                        {{#arrayunique: TransdermalDuration}}
                    {{#arrayunique: TransdermalDuration}}
                        {{#loop: i | 0 | {{#arraysize: TransdermalDuration}} |
                    {{#loop: i | 0 | {{#arraysize: TransdermalDuration}} |
                            {{#arraydefine: val | {{#arrayindex: TransdermalDuration | {{#var: i}} }} | ; }}
                    {{#arraydefine: val | {{#arrayindex: TransdermalDuration | {{#var: i}} }} | ; }}
                            {{#if: {{#arrayindex: val | 1 }} |
                    {{#if: {{#arrayindex: val | 1 }} |
                                <tr>
                    <tr class="ROASectionRow">
                                    <th class="ROARowHeader">[[Duration#{{#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>
                            |}}
                    |}}
                        }}
                    }}


                    </table>
                </table>


                 |}}
                 |}}
Line 720: Line 877:
                 {{#ifeq: {{{SubcutaneousROA}}} | true |
                 {{#ifeq: {{{SubcutaneousROA}}} | true |


                    {{#ifeq: {{{SubcutaneousROA_Collapsed}}} | true |
                {{#ifeq: {{{SubcutaneousROA_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 class="ROAHeaderRow">
                            <th class="ROAHeader" colspan="2">[[Routes of Administration#Subcutaneous|Subcutaneous]]</th>
                        <th class="ROAHeader" colspan="2">[[Routes of Administration#Subcutaneous|Subcutaneous]]</th>
                        </tr>
                    </tr>


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


                        {{#if: {{{SubcutaneousROA_Caption}}} |
                    {{ISBDosageChart|substance={{{MaterialTable_Title}}}|roa=Subcutaneous}}
                            <tr>
                                <td class="ROACaption" colspan="2">{{{SubcutaneousROA_Caption}}}</td> <!--Display notes image -->
                            </tr>
                        |}}


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


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


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


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


                        {{#arrayunique: SubcutaneousDuration}}
                    {{#arrayunique: SubcutaneousDuration}}
                        {{#loop: i | 0 | {{#arraysize: SubcutaneousDuration}} |
                    {{#loop: i | 0 | {{#arraysize: SubcutaneousDuration}} |
                            {{#arraydefine: val | {{#arrayindex: SubcutaneousDuration | {{#var: i}} }} | ; }}
                    {{#arraydefine: val | {{#arrayindex: SubcutaneousDuration | {{#var: i}} }} | ; }}
                            {{#if: {{#arrayindex: val | 1 }} |
                    {{#if: {{#arrayindex: val | 1 }} |
                                <tr>
                    <tr class="ROASectionRow">
                                    <th class="ROARowHeader">[[Duration#{{#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>
                            |}}
                    |}}
                        }}
                    }}


                    </table>
                </table>


                 |}}
                 |}}
Line 784: Line 942:
                 {{#ifeq: {{{IntramuscularROA}}} | true |
                 {{#ifeq: {{{IntramuscularROA}}} | true |


                    {{#ifeq: {{{IntramuscularROA_Collapsed}}} | true |
                {{#ifeq: {{{IntramuscularROA_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 class="ROAHeaderRow">
                            <th class="ROAHeader" colspan="2">[[Routes of Administration#Intramuscular|Intramuscular]]</th>
                        <th class="ROAHeader" colspan="2">[[Routes of Administration#Intramuscular|Intramuscular]]</th>
                        </tr>
                    </tr>


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


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


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


                        {{#arrayunique: IntramuscularDosage}}
                    {{#arrayunique: IntramuscularDosage}}
                        {{#loop: i | 0 | {{#arraysize: IntramuscularDosage}} |
                    {{#loop: i | 0 | {{#arraysize: IntramuscularDosage}} |
                            {{#arraydefine: val | {{#arrayindex: IntramuscularDosage | {{#var: i}} }} | ; }}
                    {{#arraydefine: val | {{#arrayindex: IntramuscularDosage | {{#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">[[Dosage_classification#{{#arrayindex: val | 0 }}|{{#arrayindex: val | 0 }}]]</th>
                                    <td>{{#arrayindex: val | 1 }}</td>
                        <td class="RowValues">{{#arrayindex: val | 1 }}</td>
                                </tr>
                    </tr>
                            |}}
                    |}}
                        }}
                    }}
                        <tr>
                    <tr class="ROASubHeaderRow">
                            <th class="ROASubHeader" colspan="2">[[Duration]]</th>
                        <th class="ROASubHeader" colspan="2">[[Duration]]</th>
                        </tr>
                    </tr>


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


                        {{#arrayunique: IntramuscularDuration}}
                    {{#arrayunique: IntramuscularDuration}}
                        {{#loop: i | 0 | {{#arraysize: IntramuscularDuration}} |
                    {{#loop: i | 0 | {{#arraysize: IntramuscularDuration}} |
                            {{#arraydefine: val | {{#arrayindex: IntramuscularDuration | {{#var: i}} }} | ; }}
                    {{#arraydefine: val | {{#arrayindex: IntramuscularDuration | {{#var: i}} }} | ; }}
                            {{#if: {{#arrayindex: val | 1 }} |
                    {{#if: {{#arrayindex: val | 1 }} |
                                <tr>
                    <tr class="ROASectionRow">
                                    <th class="ROARowHeader">[[Duration#{{#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>
                            |}}
                    |}}
                        }}
                    }}


                    </table>
                </table>


                 |}}
                 |}}
Line 847: Line 1,006:
                 {{#ifeq: {{{IntravenousROA}}} | true |
                 {{#ifeq: {{{IntravenousROA}}} | true |


                    {{#ifeq: {{{IntravenousROA_Collapsed}}} | true |
                {{#ifeq: {{{IntravenousROA_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#Intravenous|Intravenous]]</th>
                             <th class="ROAHeader" colspan="2">[[Routes of Administration#Intravenous|Intravenous]]</th>
                         </tr>
                         </tr>


Line 859: Line 1,019:
                         </tr>
                         </tr>


                         {{#if: {{{IntravenousROA_Caption}}} |
                         {{ISBDosageChart|substance={{{MaterialTable_Title}}}|roa=Intravenous}}
                            <tr>
                                <td class="ROACaption" colspan="2">{{{IntravenousROA_Caption}}}</td> <!--Display notes image -->
                            </tr>
                        |}}


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


                         {{#arrayunique: IntravenousDosage}}
                         {{#arrayunique: IntravenousDosage}}
                         {{#loop: i | 0 | {{#arraysize: IntravenousDosage}} |
                         {{#loop: i | 0 | {{#arraysize: IntravenousDosage}} |
                            {{#arraydefine: val | {{#arrayindex: IntravenousDosage | {{#var: i}} }} | ; }}
                        {{#arraydefine: val | {{#arrayindex: IntravenousDosage | {{#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_classification#{{#arrayindex: val | 0 }}|{{#arrayindex: val | 0 }}]]</th>
                                    <td>{{#arrayindex: val | 1 }}</td>
                            <td class="RowValues">{{#arrayindex: val | 1 }}</td>
                                </tr>
                        </tr>
                            |}}
                        |}}
                         }}
                         }}


Line 888: Line 1,045:


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


Line 899: Line 1,059:
                                 <tr>
                                 <tr>
                                     <th class="ROARowHeader">[[Duration#{{#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>
                             |}}
                             |}}
Line 905: Line 1,065:


                     </table>
                     </table>
                 |}}
                 |}}


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