Difference between revisions of "Template:Decision Horizontal/Result"
From Biowikifarm Metawiki
m (1 revision) |
GiselaWeber (Talk | contribs) |
||
(2 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
<noinclude> | <noinclude> | ||
+ | NEW v.3.5: support for expandable detail text and images | ||
+ | Previous changes: common names instead of commonnames, result qualifier instead of resultqualifier, result text new! | ||
Always creates a td, which is empty if neither result nor target (pointer to next decision) is present | Always creates a td, which is empty if neither result nor target (pointer to next decision) is present | ||
Line 6: | Line 8: | ||
[[Category:Single-access key templates]] | [[Category:Single-access key templates]] | ||
− | </noinclude>{{ | + | </noinclude> |
+ | <!--<td valign = "top"><table class="nested"><tr>-->{{ | ||
#if:{{{result|}}}<!-- format as page link (to wiki taxon page or a dedicated subkey page): | #if:{{{result|}}}<!-- format as page link (to wiki taxon page or a dedicated subkey page): | ||
− | THEN-->|<td class="leadresult leadresult-hor1"> | + | THEN-->|<td class="leadresult leadresult-hor1" ><span class="leadout">[[{{Lead/StripFormatting|1={{{result}}}}}|{{#if: {{{result text|}}}|{{{result text|}}}|<!--ELSE:-->{{{result}}}}}]]{{#if: {{{result qualifier|}}}<!--then-->|<nowiki> </nowiki><span class="resultqualifier">({{Trim|{{{result qualifier}}} }})</span>|<!--end res.qual.-->}}<br/></span>{{#if: {{{common names|}}}<!--THEN-->|<span class="commonnames">{{{common names}}}</span>}}{{ |
− | + | ||
#if:{{{next}}}<!-- NEXT-LEAD-POINTER in addition to "resultpage": | #if:{{{next}}}<!-- NEXT-LEAD-POINTER in addition to "resultpage": | ||
// (result+next-lead co-occur, e.g., for species-result where key continues with subspecies. Put into NEW row, double arrow:) | // (result+next-lead co-occur, e.g., for species-result where key continues with subspecies. Put into NEW row, double arrow:) | ||
Line 20: | Line 22: | ||
ELSE empty, unclassed table cell:-->|<td><!-- | ELSE empty, unclassed table cell:-->|<td><!-- | ||
END next (decisiontree-internal lead-on) -->}}<!-- | END next (decisiontree-internal lead-on) -->}}<!-- | ||
− | End if result else target -->}}</td> | + | End if result else target -->}}<!--</td></tr><tr><td>--><!-- |
+ | ** expandable text and images ** | ||
+ | --><table class="nested {{#if: {{{detailtext|}}}{{{image j|}}}<!--make table collapsible if EXTRA txt/imgs exist:-->|<nowiki> </nowiki>collapsible collapsed}}" width="100%" cellspacing="0" cellpadding="0"> | ||
+ | <tr><th></th></tr><tr><td class="leadextras">{{{detailtext|}}}{{ | ||
+ | #if: {{{image j|}}}<!-- | ||
+ | // at least 1 extra image present, after extra text or alone: START Secondary-IMAGE CONTENT | ||
+ | THEN-->|<table><tr><td><!-- | ||
+ | -->{{#if: {{{image j|}}}|{{Lead/GalleryItem|image={{{image j}}}|caption={{{caption j|}}}|label={{{label j|}}} | ||
+ | | width = {{{image j width |100}}} | height = {{{image j height|100}}} }} }}<!-- | ||
+ | -->{{#if: {{{image k|}}}|{{Lead/GalleryItem|image={{{image k}}}|caption={{{caption k|}}}|label={{{label k|}}} | ||
+ | | width = {{{image k width |100}}} | height = {{{image k height|100}}} }} }}<!-- | ||
+ | -->{{#if: {{{image l|}}}|{{Lead/GalleryItem|image={{{image l}}}|caption={{{caption l|}}}|label={{{label l|}}} | ||
+ | |width = {{{image l width |100}}} | height = {{{image l height|100}}} }} }}<!-- | ||
+ | -->{{#if: {{{image m|}}}|{{Lead/GalleryItem|image={{{image m}}}|caption={{{caption m|}}}|label={{{label m|}}} | ||
+ | | width = {{{image m width |100}}} | height = {{{image m height|100}}}}} }}<!-- | ||
+ | -->{{#if: {{{image n|}}}|{{Lead/GalleryItem|image={{{image n}}}|caption={{{caption n|}}}|label={{{label n|}}} | ||
+ | |width = {{{image n width |100}}} | height = {{{image n height|100}}} }} }}<!-- | ||
+ | -->{{#if: {{{image o|}}}|{{Lead/GalleryItem|image={{{image o}}}|caption={{{caption o|}}}|label={{{label o|}}} | ||
+ | | width = {{{image o width |100}}} | height = {{{image o height|100}}} }} }}<!-- | ||
+ | -->{{#if: {{{image p|}}}|{{Lead/GalleryItem|image={{{image p}}}|caption={{{caption p|}}}|label={{{label p|}}} | ||
+ | |width = {{{image p width |100}}} | height = {{{image p height|100}}} }} }}<!-- | ||
+ | -->{{#if: {{{image q|}}}|{{Lead/GalleryItem|image={{{image q}}}|caption={{{caption q|}}}|label={{{label q|}}} | ||
+ | | width = {{{image q width |100}}} | height = {{{image q height|100}}}}} }}<!-- | ||
+ | -->{{#if: {{{image r|}}}|{{Lead/GalleryItem|image={{{image r}}}|caption={{{caption r|}}}|label={{{label r|}}} | ||
+ | |width = {{{image r width |100}}} | height = {{{image r height|100}}} }} }}<!-- | ||
+ | --></td></tr></table><!-- | ||
+ | // END if any collapsible images-->}}</td></tr></table><!--</td></tr></table>--></td> |
Latest revision as of 07:56, 31 August 2010
NEW v.3.5: support for expandable detail text and images Previous changes: common names instead of commonnames, result qualifier instead of resultqualifier, result text new!
Always creates a td, which is empty if neither result nor target (pointer to next decision) is present
[create] Template documentation