Difference between revisions of "Template:Lead"
From Biowikifarm Metawiki
Line 12: | Line 12: | ||
* Next column is the main statement text: | * Next column is the main statement text: | ||
− | --><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|}}}{{{taxon|}}}}}<5|colspan="2" width="90%" }}{{#ifexpr:{{#len:{{{3|}}}{{{taxon|}}}}}>30|colspan="3" }}><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 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. | ||
Line 19: | Line 19: | ||
-->|<!-- ELSE: taxon pointer; may contain links. Test size: same or separate row? | -->|<!-- ELSE: taxon pointer; may contain links. Test size: same or separate row? | ||
-->{{#ifexpr:{{#len:{{{3|}}}{{{taxon|}}} }}>30<!-- | -->{{#ifexpr:{{#len:{{{3|}}}{{{taxon|}}} }}>30<!-- | ||
− | -->|<!-- THEN: separate row:-- | + | -->|<!-- THEN: separate row:--></tr><tr><td></td><td></td><td class="leadresult" colspan="3"><span style="background-color:#FFFFFF;"> {{{3|}}}{{{taxon|}}}</span></td><!-- |
-->|<!-- ELSE: same row:--><td class="leadresult" colspan="2"><span style="background-color:#FFFFFF;"> {{{3|}}}{{{taxon|}}}</span></td><!-- | -->|<!-- ELSE: same row:--><td class="leadresult" colspan="2"><span style="background-color:#FFFFFF;"> {{{3|}}}{{{taxon|}}}</span></td><!-- | ||
-->}} }}<!-- | -->}} }}<!-- |
Revision as of 23:53, 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" colspan="2" width="90%">Lead statement missing! </td><td class="leadresult" width="5em"> [[#L{{{3}}}|Lead pointer missing!]]</td></tr>