Difference between revisions of "Template:Lead"

From Biowikifarm Metawiki
Jump to: navigation, search
Line 1: Line 1:
<!-- The first column contain the lead number plus an anchor (id="") to which internal links may point.
+
<!-- Retrieving the id-parameter of the outer SingleAccessKey template from a variable depends on the "Variables" extension being installed. On Wikis where this is not the case, remove "{{#var:SingleAccessKeyID}}" (three times).
    (For replace/explode of first parameter see below)
+
 
--><tr id="L{{Trim|{{#replace: {{#explode:{{{1}}}|(|0}} |)|}}}}row" style="vertical-align:top;"><td id="L{{Trim|{{#replace: {{#explode:{{{1}}}|(|0}} |)|}}}}" class="leadnr">{{Trim|{{#replace: {{#explode:{{{1|Lead number missing!}}}|(|0<!--end explode:-->}} |)| <!--end replace:-->}} <!--end lc/trim:-->}}</td><!--  
+
The first column contain the lead number plus an anchor (id="") to which internal links may point. (For replace/explode of first parameter see below)
 +
--><tr id="L{{#var:SingleAccessKeyID}}{{Trim|{{#replace: {{#explode:{{{1}}}|(|0}} |)|}}}}row" style="vertical-align:top;"><td id="L{{#var:SingleAccessKeyID}}{{Trim|{{#replace: {{#explode:{{{1}}}|(|0}} |)|}}}}" class="leadnr">{{Trim|{{#replace: {{#explode:{{{1|Lead number missing!}}}|(|0<!--end explode:-->}} |)| <!--end replace:-->}} <!--end lc/trim:-->}}</td><!--  
  
 
* Fill the second column only if a backlink (= 2nd element in explode of first template parameter) exists; else output empty column
 
* Fill the second column only if a backlink (= 2nd element in explode of first template parameter) exists; else output empty column
Line 16: Line 17:
 
--><td class="leadresult" {{#ifexpr:{{#len:{{{3}}}}}<5| width="5%"|colspan="2"}}><!--  
 
--><td class="leadresult" {{#ifexpr:{{#len:{{{3}}}}}<5| width="5%"|colspan="2"}}><!--  
 
   -->{{#ifexpr:{{#len:{{{3}}}}}<5<!--
 
   -->{{#ifexpr:{{#len:{{{3}}}}}<5<!--
       -->|<!-- lead pointer as internal hyperlink:--><span style="font-weight:bold;background-color:#FFFFFF;">&nbsp;[[#L{{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><!--
 
       -->|<!-- taxon pointer, parameter text may contain links:--><span style="font-weight:bold;background-color:#FFFFFF;">&nbsp;{{{3}}}</span><!--
 
       -->|<!-- taxon pointer, parameter text may contain links:--><span style="font-weight:bold;background-color:#FFFFFF;">&nbsp;{{{3}}}</span><!--
 
   -->}}<!--
 
   -->}}<!--

Revision as of 17:09, 21 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" colspan="2"> {{{3}}}</td></tr>

[edit] Template documentation

See Key Start for the main documentation.