Difference between revisions of "Template:Decision Horizontal/Result"

From Biowikifarm Metawiki
Jump to: navigation, search
m (1 revision)
Line 1: Line 1:
 
<noinclude>
 
<noinclude>
 +
NEW v.3.4: 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 8: Line 9:
 
</noinclude>{{
 
</noinclude>{{
 
#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">{{#if: {{{commonnames|}}}<!--THEN-->|<span class="commonnames">{{{commonnames}}}<br/></span>
+
THEN-->|<td class="leadresult leadresult-hor1">{{#if: {{{common names|}}}<!--THEN-->|<span class="commonnames">{{{common names}}}<br/></span>
         }}<span class="leadout">[[{{Lead/StripFormatting|1={{{result}}}}}|{{{result}}}]]{{#if: {{{resultqualifier|}}}<!--then-->|<nowiki> </nowiki><span class="resultqualifier">({{Trim|{{{resultqualifier}}} }})</span>|<!--end res.qual.-->}}</span>{{
+
         }}<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.-->}}</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:)

Revision as of 15:14, 28 May 2010

NEW v.3.4: 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

<td></td>