Difference between revisions of "Template:Lead"

From Biowikifarm Metawiki
Jump to: navigation, search
Line 14: Line 14:
 
--><td class="lead" {{#ifexpr:{{#len:{{{3}}}}}<5|colspan="2" width="90%"}}><span style="background-color:#FFFFFF;">{{{2|Lead statement missing!}}}&nbsp;</span></td><!--
 
--><td class="lead" {{#ifexpr:{{#len:{{{3}}}}}<5|colspan="2" width="90%"}}><span style="background-color:#FFFFFF;">{{{2|Lead statement missing!}}}&nbsp;</span></td><!--
  
* Next column is either a pointer to further leads or to a taxon/subkey. The first are autolinked, the second must already be linked is so desired:
+
* Next column is either a pointer to further leads or to a taxon/subkey. The first are autolinked, the second must already manually be linked if desired. NOTE: alternatively for taxon results, it is possible to have no 3rd unnamed parameter, and a "taxon" parameter instead.
--><td class="leadresult" {{#ifexpr:{{#len:{{{3}}}}}<5| width="5%"|colspan="2"}}><!--  
+
-->{{#ifexpr:{{#len:{{{3|}}}{{{taxon|}}}<!-- = both 3rd unnamed par. and taxon concatenated-->}}<5<!--
  -->{{#ifexpr:{{#len:{{{3}}}}}<5<!--
+
  -->|<!-- THEN: lead pointer, format as internal hyperlink:--><td class="leadresult" width="5%"><span style="font-weight:bold;background-color:#FFFFFF;">&nbsp;[[#L{{#var:SingleAccessKeyID}}{{Trim|{{{3}}} }}|{{Trim|{{{3|Lead pointer missing!}}} }}]]</span><!--
      -->|<!-- lead pointer as internal hyperlink:--><span style="font-weight:bold;background-color:#FFFFFF;">&nbsp;[[#L{{#var:SingleAccessKeyID}}{{Trim|{{{3}}} }}|{{Trim|{{{3|Lead pointer missing!}}} }}]]</span><!--
+
  -->|<!-- ELSE: taxon pointer, par.-text may contain links:--><td class="leadresult" colspan="2"><span style="font-weight:bold;background-color:#FFFFFF;">&nbsp;{{{3|}}}{{{taxon|}}}</span><!--
      -->|<!-- taxon pointer, parameter text may contain links:--><span style="font-weight:bold;background-color:#FFFFFF;">&nbsp;{{{3}}}</span><!--
+
  -->}}</td><!--
  -->}}<!--
+
--></td><!--
+
 
--></tr><!--
 
--></tr><!--
 
/*** Any content in the fourth or fifth unnamed parameter is always an error and is reported: ***/
 
/*** Any content in the fourth or fifth unnamed parameter is always an error and is reported: ***/

Revision as of 19:10, 28 November 2008

<tr id="L{{{1}}}row" style="vertical-align:top;"><td id="L{{{1}}}" class="leadnr">Lead number missing!</td><td></td><td class="lead" >Lead statement missing! </td><td class="leadresult" width="5%"> [[#L{{{3}}}|Lead pointer missing!]]</td></tr>

[edit] Template documentation

See Key Start for the main documentation.