Vorlage:Lead/Inner: Unterschied zwischen den Versionen

Aus Offene Naturführer
Wechseln zu: Navigation, Suche
(fix)
(shifting the position of nested (downward triangles))
Zeile 85: Zeile 85:
 
     #if:{{{resulttext}}}{{{nested}}}<!--
 
     #if:{{{resulttext}}}{{{nested}}}<!--
 
     // THEN New-Row-For-Results. Leaderdots for next, but not if also result is present!
 
     // THEN New-Row-For-Results. Leaderdots for next, but not if also result is present!
     -->|</tr><tr><!--
+
     -->|</tr><tr><td class="leadresult {{#if: {{{next}}} |{{#if: {{{resulttext}}}{{{commonnames}}} | |leadon}}}}" colspan="2"><!--
    --><td class="leadresult {{#if: {{{next}}} |{{#if: {{{resulttext}}}{{{commonnames}}} | |leadon}}}}" colspan="2"><!--
+
    // FIRST 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 could be backlink like (2), formatted already as link → starting with [  → suppress!
 +
    -->{{#if:{{{nested}}}<!--
 +
      -->|<span class="leadon">&nbsp;[[#{{{IDprefix}}}{{
 +
      #ifeq:{{#sub:{{{leadpart2}}}|0|1}}|(|<!--
 +
      THEN -->{{{leadpart1}}}|<!--
 +
      ELSE (oriLeadID is leadpart1+leadpart2 for 1*, but NOT for 1-!) -->{{{oriLeadID}}}<!--
 +
      -->}}{{{nested}}}|&nbsp;▼▼&nbsp;{{{nested}}}]]&nbsp;&nbsp;&ndash&nbsp;&nbsp;</span><!--
 +
    // END if nested:
 +
    -->}}<!--
  
 
     // BACKGROUND OLD/NEW RESULTSTYLE:
 
     // BACKGROUND OLD/NEW RESULTSTYLE:
Zeile 132: Zeile 142:
 
     // END (res.qual.), + closing span.leadresults (= nowrap-span around result+qualif.)
 
     // END (res.qual.), + closing span.leadresults (= nowrap-span around result+qualif.)
 
     -->}}</span><!--  
 
     -->}}</span><!--  
 
    // 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 could be backlink like (2), formatted already as link → starting with [  → suppress!
 
    -->{{#if:{{{nested}}}<!--
 
      -->|<br /><span class="leadon">&nbsp;[[#{{{IDprefix}}}{{
 
      #ifeq:{{#sub:{{{leadpart2}}}|0|1}}|(|<!--
 
      THEN -->{{{leadpart1}}}|<!--
 
      ELSE (oriLeadID is leadpart1+leadpart2 for 1*, but NOT for 1-!) -->{{{oriLeadID}}}<!--
 
      -->}}{{{nested}}}|&nbsp;▼▼&nbsp;{{{nested}}}]]</span><!--
 
    // END if nested:
 
    -->}}<!--
 
 
     --></td><!--
 
     --></td><!--
 
    
 
    

Version vom 14. September 2012, 13:51 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:42 von https://offene-naturfuehrer.de/web/Vorlage:Lead/Inner