Difference between revisions of "Template:Lead"

From Biowikifarm Metawiki
Jump to: navigation, search
Line 16: Line 16:
 
* 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.
 
* 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.
 
-->{{#ifexpr:{{#len:{{{3|}}}{{{taxon|}}}<!-- = both 3rd unnamed par. and taxon concatenated-->}}<5<!--
 
-->{{#ifexpr:{{#len:{{{3|}}}{{{taxon|}}}<!-- = both 3rd unnamed par. and taxon concatenated-->}}<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><!--
+
   -->|<!-- THEN: lead pointer, format as internal hyperlink:--><td class="leadresult" width="5em"><span style="background-color:#FFFFFF;">&nbsp;[[#L{{#var:SingleAccessKeyID}}{{Trim|{{{3}}} }}|{{Trim|{{{3|Lead pointer missing!}}} }}]]</span></td><!--
   -->|<!-- 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><!--
+
   -->|<!-- ELSE: taxon pointer; may contain links. Test size: same or separate row?
   -->}}</td><!--
+
  -->{{#ifexpr:{{#len:{{{3|}}}{{{taxon|}}} }}>30<!--
 +
  -->|<!-- THEN: separate row:--><td></td></tr><tr><td></td><td></td><td class="leadresult" colspan="3"><span style="background-color:#FFFFFF;">&nbsp;{{{3|}}}{{{taxon|}}}</span></td><!--
 +
   -->|<!-- ELSE: same row:--><td class="leadresult" colspan="2"><span style="background-color:#FFFFFF;">&nbsp;{{{3|}}}{{{taxon|}}}</span></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 23:41, 1 December 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="5em"> [[#L{{{3}}}|Lead pointer missing!]]</td></tr>

[edit] Template documentation

See Key Start for the main documentation.