
Template:BotanyBox: Difference between revisions
>PJosepherum mNo edit summary |
>White RowValues class added to rows |
||
(31 intermediate revisions by 3 users not shown) | |||
Line 1: | Line 1: | ||
<table ID=" | <table ID="InfoTable" style="max-width: {{{BotanyTable_MaxWidth|300}}};"> | ||
<!-- Header --> | <!-- Header --> | ||
Line 6: | Line 6: | ||
</tr> | </tr> | ||
<!-- Source --> | |||
{{#ifeq: {{{ModuleSource}}} | true | | |||
{{#if: {{{PhotoImageFile|}}} | | |||
{{#if: {{{ | <tr> | ||
<td class="Image" colspan="2">[[ {{{PhotoImageFile}}} | frameless | center | {{{PhotoImageWidth}}} ]] | |||
{{#if: {{{PhotoImageCaption|}}} | | |||
<div>{{{PhotoImageCaption}}}</div> }}</td> | |||
<!-- <td class="Image" colspan="2">[[ {{{PhotoImageFile}}} | thumb | center | {{{PhotoImageWidth}}} {{#if: {{{PhotoImageCaption}}} | {{!}} {{{PhotoImageCaption}}} |}} ]] | |||
</td> --> | |||
</tr> | |||
|}} | |}} | ||
|}} | |||
<!-- Taxonomical naming Convention --> | <!-- Taxonomical naming Convention --> | ||
Line 26: | Line 26: | ||
</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: {{{NameTaxonomyClass|}}} | | |||
<tr> | |||
<th class="RowHeader">Class</th> | |||
<td class="RowValues">''{{{NameTaxonomyClass}}}''</td> | |||
</tr> | |||
|}} | |}} | ||
{{#if: {{{ | {{#if: {{{NameTaxonomyUnranked1|}}} | | ||
<tr> | <tr> | ||
<th class="RowHeader">Unranked</th> | <th class="RowHeader">Unranked</th> | ||
<td>''{{{ | <td class="RowValues">''{{{NameTaxonomyUnranked1}}}''</td> | ||
</ | </tr> | ||
|}} | |}} | ||
{{#if: {{{NameTaxonomyUnranked2}}} | | {{#if: {{{NameTaxonomyUnranked2|}}} | | ||
<tr> | <tr> | ||
<th class="RowHeader">Unranked</th> | <th class="RowHeader">Unranked</th> | ||
<td>''{{{NameTaxonomyUnranked2}}}''</td> | <td class="RowValues">''{{{NameTaxonomyUnranked2}}}''</td> | ||
</ | </tr> | ||
|}} | |}} | ||
{{#if: {{{NameTaxonomyUnranked3}}} | | {{#if: {{{NameTaxonomyUnranked3|}}} | | ||
<tr> | <tr> | ||
<th class="RowHeader">Unranked</th> | <th class="RowHeader">Unranked</th> | ||
<td>''{{{NameTaxonomyUnranked3}}}''</td> | <td class="RowValues">''{{{NameTaxonomyUnranked3}}}''</td> | ||
</ | </tr> | ||
|}} | |}} | ||
{{#if: {{{NameTaxonomyOrder}}} | | {{#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> | <tr> | ||
<th id="CommonNomenclature" class="SubHeader1" colspan="2">Common nomenclature</th> | <th id="CommonNomenclature" class="SubHeader1" colspan="2">Common nomenclature</th> | ||
</tr> | </tr> | ||
{{#if: {{{Synonyms|}}} | | |||
{{#if: {{{NamesCommon}}} | | <tr> | ||
<th class="RowHeader">Synonyms</th> | |||
<td class="RowValues">''{{{Synonyms}}}''</td> | |||
</tr> | |||
|}} | |||
{{#if: {{{NamesCommon|}}} | | |||
<tr> | <tr> | ||
<th class="RowHeader">Common names</th> | <th class="RowHeader">Common names</th> | ||
<td>''{{{NamesCommon}}}''</td> | <td class="RowValues">''{{{NamesCommon}}}''</td> | ||
</ | </tr> | ||
|}} | |}} | ||
|}} | |}} | ||
Line 100: | Line 121: | ||
</tr> | </tr> | ||
{{#if: {{{ActiveConstituents}}} | | {{#if: {{{ActiveConstituents|}}} | | ||
<tr> | <tr> | ||
<th id="AtiveConstituents" class="SubHeader1">Active constituents</th> | <th id="AtiveConstituents" class="SubHeader1">Active constituents</th> | ||
< | <td class="RowValues">''{{{ActiveConstituents}}}''</td> | ||
</tr> | </tr> | ||
|}} | |}} | ||
Line 111: | Line 132: | ||
{{#ifeq: {{{ModuleInactiveConstituents}}} | true | | {{#ifeq: {{{ModuleInactiveConstituents}}} | true | | ||
{{#if: {{{InactiveConstituents}}} | | {{#if: {{{InactiveConstituents|}}} | | ||
<tr> | <tr> | ||
<th id="InactiveConstituents" class="SubHeader1">Inactive constituents</th> | <th id="InactiveConstituents" class="SubHeader1">Inactive constituents</th> | ||
< | <td class="RowValues">''{{{InactiveConstituents}}}''</td> | ||
</tr> | </tr> | ||
|}} | |}} |
Latest revision as of 18:35, 10 June 2017
{{{BotanyTable_Title}}} |
---|

This documentation is transcluded from Template:BotanyBox/doc.
About
An example of the template with all features enabled is available at Template:BotanyBox/Example. Please direct any queries to Apx, or comment on the template's discussion page.
To standardise the format of the botanical index, we have created a modular template structure which should cover most use cases. For each table created, please create a subpage of Template:BotanyBox using the same tile as the substance article for simplicity. The template's wiki markup code can be found at Template:BotanyBox/Example. View source and copy the entire text over to the newly created subpage.
You may omit almost any value; however, please do not remove entire fields from the list as this may break compatibility. Any images referenced must also specify their width in pixels.
Table Properties
|BotanyTable_MaxWidth=300px |BotanyTable_Title={{PAGENAME}}
These properties define the table's properties. If you find that the table is unnecessarily wide, please set BotanyTable_MaxWidth to a reasonable value, maybe a few pixels wider than the largest image included. If left blank, the table will default to 300px wide.
The BotanyTable_Title property can usually be left as is, except when the article's title is not a sufficient heading for the table.
Modules
|ModuleSource=true |ModuleTaxonomicalNomenclature=true |ModuleCommonNomenclature=true |ModuleActiveConstituents=true |ModuleInactiveConstituents=false
There are several optional modules included in the template, as explained below. Please set any unused modules to false, but do not remove the field as this may break compatibility.
Source
|PhotoImageFile=File:Cannabis_Plant.jpg |PhotoImageWidth=250px |PhotoImageCaption=Photo caption
Nomenclature
|NameTaxonomy̜Kingdom=Plantae |NameTaxonomy̜Unranked1=Angiosperms |NameTaxonomyUnranked2=Eudicots |NameTaxonomyUnranked3=Rosids |NameTaxonomyOrder=Rosales |NameTaxonomyFamily=Cannabaceae |NameTaxonomyGenus=Cannabis |NameTaxonomySpecies=Sativa & Indica |Synonyms=Cannabis sativa |NamesCommon=Weed, Cannabis, Sativa, Indica
The nomenclature module is intended for full specification of the species described. All fields are optional, any values that are omitted will simply not appear in the table. NameCommon can be set as a comma separated list to specify multiple names. Please verify the substitution and systemic names if used.
(In)active Constituents
|ActiveConstituents=THC, CBD, etc |InactiveConstituents=
Please add links to substance articles where available.
All fields are now optional. For ease of modification, please keep the entire template structure intact, removing only the values following =.
Subpages
- BotanyBox/Anethum graveolens
- BotanyBox/Apium graveolens
- BotanyBox/Argyreia nervosa
- BotanyBox/Arundo donax
- BotanyBox/Atropa belladonna
- BotanyBox/Banisteriopsis caapi
- BotanyBox/Camellia sinensis
- BotanyBox/Cannabis
- BotanyBox/Carum carvi
- BotanyBox/Catha edulis
- BotanyBox/Chamomile
- BotanyBox/Coffea
- BotanyBox/Datura
- BotanyBox/Datura stramonium
- BotanyBox/Daucus carota
- BotanyBox/Delosperma
- BotanyBox/Desmanthus illinoensis
- BotanyBox/Echinacea
- BotanyBox/Echinopsis lageniformis
- BotanyBox/Echinopsis pachanoi
- BotanyBox/Echinopsis peruviana
- BotanyBox/Ephedra sinica
- BotanyBox/Epipactis helleborine
- BotanyBox/Example
- BotanyBox/Foeniculum vulgare
- BotanyBox/Humulus lupulus
- BotanyBox/Hyoscyamus niger
- BotanyBox/Ipomoea tricolor
- BotanyBox/Kratom
- BotanyBox/Lophophora diffusa
- BotanyBox/Lophophora fricii
- BotanyBox/Lophophora williamsii
- BotanyBox/Mandragora
- BotanyBox/Mandragora officinarum
- BotanyBox/Mimosa tenuiflora
- BotanyBox/Myristica fragrans
- BotanyBox/Nicotiana
- BotanyBox/Papaver somniferum
- BotanyBox/Pastinaca sativa
- BotanyBox/Peganum harmala
- BotanyBox/Perilla frutescens
- BotanyBox/Petroselinum crispum
- BotanyBox/Phalaris
- BotanyBox/Phalaris aquatica
- BotanyBox/Phragmites australis
- BotanyBox/Piper methysticum
- BotanyBox/Piper nigrum
- BotanyBox/Psychotria viridis
- BotanyBox/Ranunculus sp.
- BotanyBox/Salvia divinorum
- BotanyBox/Salvia recognita
- BotanyBox/San Pedro Culti
- BotanyBox/Syzygium aromaticum
- BotanyBox/Tabernaemontana undulata
- BotanyBox/Tabernanthe iboga
- BotanyBox/Turbina corymbosa
- BotanyBox/Voacanga africana
- BotanyBox/Withania somnifera
- BotanyBox/doc