Vorlage:Lead/Inner: Unterschied zwischen den Versionen

Aus Offene Naturführer
Wechseln zu: Navigation, Suche
(completing new lead-ID processing)
Zeile 21: Zeile 21:
 
-->| #default =[[Category:Keys based on lead template]]<!-- Hidden cat for SWM form!
 
-->| #default =[[Category:Keys based on lead template]]<!-- Hidden cat for SWM form!
  
! ENGLISH SEMANTIC PROPERTIES NOT YET DEFINED
+
// ! ENGLISH SEMANTIC PROPERTIES NOT YET DEFINED
  
// PART 0, END switch CONTENTLANGUAGE
 
 
-->}}<!--  
 
-->}}<!--  
 
TODO: combine the two occurrences of class="dt-nodeid etc. at the end of the if/else clause!!!!!!!!
 
 
 
// PART 1. Spacer rows and subheadings above a lead row
 
// PART 1. Spacer rows and subheadings above a lead row
 
-->{{#ifeq: {{{coupletID}}}|{{#var: decisiontreePreviousCouplet}}<!--
 
-->{{#ifeq: {{{coupletID}}}|{{#var: decisiontreePreviousCouplet}}<!--
Zeile 34: Zeile 30:
 
   --><tr id="{{{IDprefix}}}{{{coupletID}}}_{{#var:decisiontreeAlternative}}_row" class="dt-row">{{
 
   --><tr id="{{{IDprefix}}}{{{coupletID}}}_{{#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">{{#ifeq:{{{withinCoupletID}}}|–|–|{{{coupletID}}}}}</td><!--
+
       <td <!-- (td is filled and closed at end!)
 
// ELSE first lead; suppress spacer row for first couplet of key or nested subkeys
 
// ELSE first lead; suppress spacer row for first couplet of key or nested subkeys
 
-->|{{#if: {{#ifeq: 0|{{#var: decisiontreePreviousCouplet}}|FIRSTCOUPLET|{{{parentlead}}}}}<!--
 
-->|{{#if: {{#ifeq: 0|{{#var: decisiontreePreviousCouplet}}|FIRSTCOUPLET|{{{parentlead}}}}}<!--
Zeile 62: Zeile 58:
 
   --><tr id="{{{IDprefix}}}{{{coupletID}}}_row" class="dt-row">{{
 
   --><tr id="{{{IDprefix}}}{{{coupletID}}}_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="{{{IDprefix}}}{{{coupletID}}}" class="dt-nodeid">{{#ifeq:{{{withinCoupletID}}}|–|–|{{{coupletID}}}}}</td><!--
+
     <td id="{{{IDprefix}}}{{{coupletID}}}" <!-- (td is filled and closed at end!)
 
// END PART 1, Spacer rows and subheadings above a lead row
 
// END PART 1, Spacer rows and subheadings above a lead row
-->}}<!--
+
-->}} class="dt-nodeid">{{#ifeq:{{{withinCoupletID}}}|–|–|{{{coupletID}}}}}</td><!--
  
 
// PART 2. Prepare lead core.
 
// PART 2. Prepare lead core.
 
// 2nd column contains either withinCoupletID = lead-differentiators (*, ', -, etc.) or backlink previous couplet. Both may be empty!
 
// 2nd column contains either withinCoupletID = lead-differentiators (*, ', -, etc.) or backlink previous couplet. Both may be empty!
--><td class="leadalt">{{#ifeq:{{{withinCoupletID}}}|–||{{{withinCoupletID}}}}}{{#if:{{{leadIDbacklink}}}|&nbsp;[[#{{{IDprefix}}}{{{leadIDbacklink}}}|({{{leadIDbacklink}}})]]}}</td><!--
+
--><td class="leadalt">{{
 +
#ifeq:{{{withinCoupletID}}}|–||{{{withinCoupletID}}}}}{{
 +
#if:{{{leadIDbacklink}}}|&nbsp;[[#{{{IDprefix}}}{{{leadIDbacklink}}}|({{{leadIDbacklink}}})]]}}</td><!--
  
 
// 3rd column is main statement text. Uses a nested table to allow for row-by-row variable col. width
 
// 3rd column is main statement text. Uses a nested table to allow for row-by-row variable col. width
Zeile 89: Zeile 87:
 
     // FIRST NESTED (= pointer to indented subkey with parentlead) in addition to result, all result-layout variants
 
     // FIRST NESTED (= pointer to indented subkey with parentlead) in addition to result, all result-layout variants
 
     -->{{#if:{{{nested}}}<!--
 
     -->{{#if:{{{nested}}}<!--
       -->|<span class="leadon">&nbsp;[[#{{{IDprefix}}}{{{leadIDnoBacklink}}}{{{nested}}}|&nbsp;▼▼&nbsp;{{{nested}}}]]&nbsp;&nbsp;&ndash;&nbsp;&nbsp;</span><!--
+
       -->|<span class="leadon">&nbsp;[[#{{{IDprefix}}}{{{coupletID}}}{{{withinCoupletID}}}{{{nested}}}|&nbsp;▼▼&nbsp;{{{nested}}}]]&nbsp;&nbsp;&ndash;&nbsp;&nbsp;</span><!--
 
     // END if nested:
 
     // END if nested:
 
     -->}}<!--
 
     -->}}<!--

Version vom 21. September 2012, 21:36 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:40 von https://offene-naturfuehrer.de/web/Vorlage:Lead/Inner