Difference between revisions of "Template:Lead"
From Biowikifarm Metawiki
Line 14: | Line 14: | ||
--><td class="lead" {{#ifexpr:{{#len:{{{3}}}}}<5|colspan="2" width="90%"}}><span style="background-color:#FFFFFF;">{{{2|Lead statement missing!}}} </span></td><!-- | --><td class="lead" {{#ifexpr:{{#len:{{{3}}}}}<5|colspan="2" width="90%"}}><span style="background-color:#FFFFFF;">{{{2|Lead statement missing!}}} </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 | + | * 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<!-- |
− | + | -->|<!-- THEN: lead pointer, format as internal hyperlink:--><td class="leadresult" width="5%"><span style="font-weight:bold;background-color:#FFFFFF;"> [[#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;"> {{{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 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>