Vorlage:Lead/Inner: Unterschied zwischen den Versionen

Aus Offene Naturführer
Wechseln zu: Navigation, Suche
(Testversion)
Zeile 26: Zeile 26:
 
-->}}<!--  
 
-->}}<!--  
  
// PART 1. Manage spacer rows and subheadings above a lead row
+
// PART 1. Spacer rows and subheadings above a lead row
-->{{#ifeq: {{{leadID}}}|{{#var: decisiontreePreviousCouplet}}<!--
+
-->{{#ifeq: {{{leadpart1}}}|{{#var: decisiontreePreviousCouplet}}<!--
 
// THEN 2nd/3rd/etc lead in a couplet, normal start
 
// THEN 2nd/3rd/etc lead in a couplet, normal start
 
-->|{{#vardefine: decisiontreeAlternative|{{#expr: {{#var: decisiontreeAlternative}}+1}}}}<!--
 
-->|{{#vardefine: decisiontreeAlternative|{{#expr: {{#var: decisiontreeAlternative}}+1}}}}<!--
   --><tr id="{{{leadID}}}_{{#var:decisiontreeAlternative}}_row" class="dt-row">{{
+
   --><tr id="{{{IDprefix}}}{{{leadpart1}}}_{{#var:decisiontreeAlternative}}_row" class="dt-row">{{
 
       #if:{{{parentlead}}}<!-- THEN: indent 2 columns -->|<td></td><td></td>}}
 
       #if:{{{parentlead}}}<!-- THEN: indent 2 columns -->|<td></td><td></td>}}
 
       <td class="dt-nodeid">{{{displayID}}}</td><!--
 
       <td class="dt-nodeid">{{{displayID}}}</td><!--
Zeile 39: Zeile 39:
 
     -->|<tr class="dt-hspacer"><td colspan="6"></td></tr><!--
 
     -->|<tr class="dt-hspacer"><td colspan="6"></td></tr><!--
 
     -->}}{{
 
     -->}}{{
   #vardefine: decisiontreePreviousCouplet|{{{leadID}}}}}{{
+
   #vardefine: decisiontreePreviousCouplet|{{{leadpart1}}}}}{{
 
   #vardefine: decisiontreeAlternative|1}}{{
 
   #vardefine: decisiontreeAlternative|1}}{{
 
   #if: {{{subheading}}}<!--
 
   #if: {{{subheading}}}<!--
Zeile 58: Zeile 58:
 
   -->}}<!--
 
   -->}}<!--
 
   // Next column is lead id for first alternative.
 
   // Next column is lead id for first alternative.
   --><tr id="{{{leadID}}}_row" class="dt-row">{{
+
   --><tr id="{{{IDprefix}}}{{{leadpart1}}}_row" class="dt-row">{{
 
     #if:{{{parentlead}}}<!-- THEN: indent 2 columns -->|<td></td><td></td>}}
 
     #if:{{{parentlead}}}<!-- THEN: indent 2 columns -->|<td></td><td></td>}}
     <td id="{{{leadID}}}" class="dt-nodeid">{{{displayID}}}</td><!--
+
     <td id="{{{IDprefix}}}{{{leadpart1}}}" class="dt-nodeid">{{{displayID}}}</td><!--
// END PART 1, Manage spacer rows and subheadings above a lead row
+
// END PART 1, Spacer rows and subheadings above a lead row
 
-->}}<!--
 
-->}}<!--
  
Zeile 75: Zeile 75:
 
     --><span class="leadspan">{{Trim|1={{{statement}}}}}&nbsp;</span><!--
 
     --><span class="leadspan">{{Trim|1={{{statement}}}}}&nbsp;</span><!--
 
     // Add mw-collapsible span (the "more…")
 
     // Add mw-collapsible span (the "more…")
     -->{{#if: {{{detailspresent}}}|<span class="leadspan noprint mw-customtoggle-{{{leadID}}}_{{#var:decisiontreeAlternative}}row"></span>}}<!--
+
     -->{{#if: {{{detailspresent}}}|<span class="leadspan noprint mw-customtoggle-{{{IDprefix}}}{{{leadpart1}}}_{{#var:decisiontreeAlternative}}row"></span>}}<!--
 
     --></td><!--
 
     --></td><!--
 
     // Second column in nested table = number of further leads. NEW: both with and without result in same row (it used to be below result)!
 
     // Second column in nested table = number of further leads. NEW: both with and without result in same row (it used to be below result)!
    // Single triangle for normal next, double triangle if also result occurs (result and continue), e.g. where a genus is result, but species in same key.
 
 
     -->{{
 
     -->{{
     #if:{{{next}}}|<td class="leadresult leadon"><span class="leadon">&nbsp;[[#L{{{keyID}}}_{{{parentlead}}}{{{next}}}|&nbsp;►{{
+
    // Single triangle for normal next, double triangle if also result occurs (result and continue), e.g. where a genus is result, but species in same key.
 +
     #if:{{{next}}}|<td class="leadresult leadon"><span class="leadon">&nbsp;[[#{{{IDprefix}}}{{{next}}}|&nbsp;►{{
 
       #if:{{{resulttext}}}|►}}&nbsp;{{{next}}}]]</span>|<td>
 
       #if:{{{resulttext}}}|►}}&nbsp;{{{next}}}]]</span>|<td>
 
     }}</td>{{
 
     }}</td>{{
Zeile 135: Zeile 135:
 
     // NESTED (= pointer to indented subkey with parentlead) in addition to result, all result-layout variants
 
     // NESTED (= pointer to indented subkey with parentlead) in addition to result, all result-layout variants
 
     // Note: leadpart2 may be a "*" → forbidden in @id. BUT: some step in mediawiki will convert "*" to ".2A". OK
 
     // Note: leadpart2 may be a "*" → forbidden in @id. BUT: some step in mediawiki will convert "*" to ".2A". OK
     // Note: leadpart2 could be backlink → suppress at least if starting with "(".
+
     // Note: leadpart2 could be backlink like (2), formatted already as link → starting with [  → suppress!
 
     -->{{#if:{{{nested}}}<!--
 
     -->{{#if:{{{nested}}}<!--
       -->|<br /><span class="leadon">&nbsp;[[#{{{leadID}}}{{
+
       -->|<br /><span class="leadon">&nbsp;[[#{{{IDprefix}}}{{
       #ifeq:{{#sub:{{{leadpart2}}}|0|1}}|(|<!--THEN nothing
+
       #ifeq:{{#sub:{{{leadpart2}}}|0|1}}|(|<!--
       -->|<!--ELSE -->{{{leadpart2}}}<!--
+
       THEN -->{{{leadpart1}}}|<!--
       -->}}{{{nested}}}|&nbsp;▼ {{#ifeq:{{#sub:{{{leadpart2}}}|0|1}}|(||{{{leadpart2}}}}}:{{{leadpart2}}} ▼&nbsp;{{{nested}}}]]</span><!--
+
      ELSE (oriLeadID is leadpart1+leadpart2 for 1*, but NOT for 1-!) -->{{{oriLeadID}}}<!--
 +
       -->}}{{{nested}}}|&nbsp;▼▼&nbsp;{{{nested}}}]]</span><!--
 
     // END if nested:
 
     // END if nested:
 
     -->}}<!--
 
     -->}}<!--
Zeile 160: Zeile 161:
 
// THEN  
 
// THEN  
 
-->|<tr><td class="leadextras" colspan="2"><!--
 
-->|<tr><td class="leadextras" colspan="2"><!--
--><div class="mw-collapsible mw-collapsed mw-collapsible-content leadextras" id="mw-customcollapsible-{{{leadID}}}_{{#var:decisiontreeAlternative}}row"><!--
+
--><div class="mw-collapsible mw-collapsed mw-collapsible-content leadextras" id="mw-customcollapsible-{{{IDprefix}}}{{{leadpart1}}}_{{#var:decisiontreeAlternative}}row"><!--
 
-->{{{detailtext}}}<!--
 
-->{{{detailtext}}}<!--
 
-->{{#if: {{{image m}}}<!--
 
-->{{#if: {{{image m}}}<!--

Version vom 12. September 2012, 17:18 Uhr

See Key Start-Doc for the main documentation, Lead-Doc for recent technical changes of the Lead-templates.

Quelle: Offene Naturführer, Das Wiki zu Bestimmungsfragen: Vorlage:Lead/Inner. Abgerufen am 2. Juni 2025, 01:43 von https://offene-naturfuehrer.de/web/Vorlage:Lead/Inner