Template:BotanyBox: Difference between revisions

>PJosepherum
mNo edit summary
>White
RowValues class added to rows
 
(35 intermediate revisions by 3 users not shown)
Line 1: Line 1:
<table ID="BotanyTable" style="max-width: {{{BotanyTable_MaxWidth}}};">
<table ID="InfoTable" style="max-width: {{{BotanyTable_MaxWidth|300}}};">


     <!-- Header -->
     <!-- Header -->
Line 6: Line 6:
     </tr>
     </tr>


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


     <!-- Taxonomical naming Convention -->
     <!-- Taxonomical naming Convention -->
Line 23: Line 23:


         <tr>
         <tr>
             <th id="TaxonomicalNomenclature" class="SubHeader1" colspan="2">Taxonomical nomenclature<th>
             <th id="TaxonomicalNomenclature" class="SubHeader1" colspan="2">Taxonomical nomenclature</th>
         </tr>
         </tr>


         {{#if: {{{NameTaxonomy̜Kingdom}}} |
         {{#if: {{{NameTaxonomy̜Kingdom|}}} |
                 <tr>
                 <tr>
                         <th class="RowHeader">Kingdom</th>
                         <th class="RowHeader">Kingdom</th>
                         <td>''{{{NameTaxonomy̜Kingdom}}}''</td>
                         <td class="RowValues">''{{{NameTaxonomy̜Kingdom}}}''</td>
                 </>
                 </tr>
        |}}
        {{#if: {{{NameTaxonomyPhylum|}}} |
                <tr>
                        <th class="RowHeader">Phylum</th>
                        <td class="RowValues">''{{{NameTaxonomyPhylum}}}''</td>
                </tr>
         |}}
         |}}
         {{#if: {{{NameTaxonomy̜Unranked1}}} |
         {{#if: {{{NameTaxonomyClass|}}} |
                 <tr>
                 <tr>
                         <th class="RowHeader">(unranked)</th>
                         <th class="RowHeader">Class</th>
                         <td>''{{{NameTaxonomy̜Unranked1}}}''</td>
                         <td class="RowValues">''{{{NameTaxonomyClass}}}''</td>
                 </>
                 </tr>
         |}}  
         |}}
         {{#if: {{{NameTaxonomyUnranked2}}} |
         {{#if: {{{NameTaxonomyUnranked1|}}} |
                 <tr>
                 <tr>
                         <th class="RowHeader">(unranked)</th>
                         <th class="RowHeader">Unranked</th>
                         <td>''{{{NameTaxonomyUnranked2}}}''</td>
                         <td class="RowValues">''{{{NameTaxonomyUnranked1}}}''</td>
                 </>
                 </tr>
         |}}
         |}}
         {{#if: {{{NameTaxonomyUnranked3}}} |
         {{#if: {{{NameTaxonomyUnranked2|}}} |
                 <tr>
                 <tr>
                         <th class="RowHeader">(unranked)</th>
                         <th class="RowHeader">Unranked</th>
                         <td>''{{{NameTaxonomyUnranked3}}}''</td>
                         <td class="RowValues">''{{{NameTaxonomyUnranked2}}}''</td>
                 </>
                 </tr>
         |}}
         |}}
         {{#if: {{{NameTaxonomyOrder}}} |
        {{#if: {{{NameTaxonomyUnranked3|}}} |
                <tr>
                        <th class="RowHeader">Unranked</th>
                        <td class="RowValues">''{{{NameTaxonomyUnranked3}}}''</td>
                </tr>
        |}}
        {{#if: {{{NameTaxonomyUnranked4|}}} |
                <tr>
                        <th class="RowHeader">Unranked</th>
                        <td class="RowValues">''{{{NameTaxonomyUnranked4}}}''</td>
                </tr>
        |}}
         {{#if: {{{NameTaxonomyOrder|}}} |
                 <tr>
                 <tr>
                         <th class="RowHeader">Order</th>
                         <th class="RowHeader">Order</th>
                         <td>''{{{NameTaxonomyOrder}}}''</td>
                         <td class="RowValues">''{{{NameTaxonomyOrder}}}''</td>
                 </>
                 </tr>
         |}}
         |}}
         {{#if: {{{NameTaxonomyFamily}}} |
         {{#if: {{{NameTaxonomyFamily|}}} |
                 <tr>
                 <tr>
                         <th class="RowHeader">Family</th>
                         <th class="RowHeader">Family</th>
                         <td>''{{{NameTaxonomyFamily}}}''</td>
                         <td class="RowValues">''{{{NameTaxonomyFamily}}}''</td>
                 </>
                 </tr>
         |}}
         |}}
         {{#if: {{{NameTaxonomyGenus}}} |
         {{#if: {{{NameTaxonomyGenus|}}} |
                 <tr>
                 <tr>
                         <th class="RowHeader">Genus</th>
                         <th class="RowHeader">Genus</th>
                         <td>''{{{NameTaxonomyGenus}}}''</td>
                         <td class="RowValues">''{{{NameTaxonomyGenus}}}''</td>
                 </>
                 </tr>
         |}}
         |}}
         {{#if: {{{NameTaxonomySpecies}}} |
         {{#if: {{{NameTaxonomySpecies|}}} |
                 <tr>
                 <tr>
                         <th class="RowHeader">Species</th>
                         <th class="RowHeader">Species</th>
                         <td>''{{{NameTaxonomySpecies}}}''</td>
                         <td class="RowValues">''{{{NameTaxonomySpecies}}}''</td>
                 </>
                 </tr>
         |}}
         |}}


Line 79: Line 97:
     <!-- Common naming Convention -->
     <!-- Common naming Convention -->
     {{#ifeq: {{{ModuleCommonNomenclature}}} | true |
     {{#ifeq: {{{ModuleCommonNomenclature}}} | true |
        <tr>
            <th id="CommonNomenclature" class="SubHeader1" colspan="2">Common nomenclature</th>
        </tr>
        {{#if: {{{Synonyms|}}} |
                <tr>
                        <th class="RowHeader">Synonyms</th>
                        <td class="RowValues">''{{{Synonyms}}}''</td>
                </tr>
        |}}
        {{#if: {{{NamesCommon|}}} |
                <tr>
                        <th class="RowHeader">Common names</th>
                        <td class="RowValues">''{{{NamesCommon}}}''</td>
                </tr>
        |}}
    |}}
    <!-- Constituents -->
    {{#ifeq: {{{ModuleActiveConstituents}}} | true |


         <tr>
         <tr>
             <th id="CommonNomenclature" class="SubHeader1" colspan="2">Common nomenclature<th>
             <th id="Constituents" class="SubHeader1" colspan="2">Constituents</th>
         </tr>
         </tr>


         {{#if: {{{NamesCommon}}} |
         {{#if: {{{ActiveConstituents|}}} |
                <tr>
            <tr>
                        <th class="RowHeader">Common names</th>
                <th id="AtiveConstituents" class="SubHeader1">Active constituents</th>
                        <td>''{{{NamesCommon}}}''</td>
                <td class="RowValues">''{{{ActiveConstituents}}}''</td>
                </>
            </tr>
         |}}
         |}}


     |}}
     |}}


    <!-- Active constituents -->
     {{#ifeq: {{{ModuleInactiveConstituents}}} | true |
     {{#ifeq: {{{ModuleConstituents}}} | true |


         <tr>
         {{#if: {{{InactiveConstituents|}}} |
            <th id="ActiveConstituents" class="SubHeader1">Active constituents<th>
            <tr>
            <>''{{{ActiveConstituents}}}''</td>
                <th id="InactiveConstituents" class="SubHeader1">Inactive constituents</th>
        </>
                <td class="RowValues">''{{{InactiveConstituents}}}''</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>