Vorlage:Lead/Inner: Unterschied zwischen den Versionen

Aus Offene Naturführer
Wechseln zu: Navigation, Suche
(semantic properties are back; fix for resulttext without result-link case)
Zeile 15: Zeile 15:
 
     -->|<!-- new output separator
 
     -->|<!-- new output separator
 
     -->}}<!--
 
     -->}}<!--
   END -->}}<!--
+
   END -->}}{{
 
    
 
    
   -->{{#if: {{{synonyms}}}<!--
+
   #if: {{{synonyms}}}<!--
 
   THEN-->| [[Synonymliste:: {{StripFormatting |{{{synonyms}}}}}| ]]<!--
 
   THEN-->| [[Synonymliste:: {{StripFormatting |{{{synonyms}}}}}| ]]<!--
   END -->}}<!--
+
   END -->}}{{
 
+
 
   -->{{#if: {{{scientificname}}}<!--
+
   #if: {{{scientificname}}}<!--
 
   THEN-->|[[Wissenschaftlicher Name::{{StripFormatting | {{{scientificname}}}}}| ]]<!--
 
   THEN-->|[[Wissenschaftlicher Name::{{StripFormatting | {{{scientificname}}}}}| ]]<!--
 
   END -->}}<!--
 
   END -->}}<!--
Zeile 38: Zeile 38:
 
// 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="L{{{keyID}}}_{{{leadID}}}_{{#var:decisiontreeAlternative}}_row" class="dt-row"><!--
+
   --><tr id="L{{{keyID}}}_{{{leadID}}}_{{#var:decisiontreeAlternative}}_row" class="dt-row">{{
    -->{{#if:{{{parentlead}}}<!--
+
      #if:{{{parentlead}}}<!-- THEN: indent 2 columns -->|<td></td><td></td>}}
      // THEN: insert two columns
+
      <td class="dt-nodeid">{{{displayID}}}</td><!--
      -->|<td></td><td></td><!--
+
      // END parentlead
+
      -->}}<!--
+
    --><td class="dt-nodeid">{{{displayID}}}</td><!--
+
 
// ELSE first lead:
 
// ELSE first lead:
 
-->|{{#if: {{#ifeq: 0|{{#var: decisiontreePreviousCouplet}}|FIRSTCOUPLET|}}{{{parentlead}}}<!--
 
-->|{{#if: {{#ifeq: 0|{{#var: decisiontreePreviousCouplet}}|FIRSTCOUPLET|}}{{{parentlead}}}<!--
 
     // THEN: no spacer row before first couplet or nested subkeys
 
     // THEN: no spacer row before first couplet or nested subkeys
    -->|<!-- // nothing
+
      -->|<!-- // nothing
 
     // ELSE: insert spacer row
 
     // ELSE: insert spacer row
-->|<tr class="dt-hspacer"><td colspan="6"></td></tr><!--
+
      -->|<tr class="dt-hspacer"><td colspan="6"></td></tr><!--
  -->}}<!--
+
    -->}}{{
   -->{{#vardefine: decisiontreePreviousCouplet|{{{leadID}}}}}<!--
+
   #vardefine: decisiontreePreviousCouplet|{{{leadID}}}}}{{
   -->{{#vardefine: decisiontreeAlternative|1}}<!--
+
   #vardefine: decisiontreeAlternative|1}}{{
   -->{{#if: {{{subheading}}}<!--
+
   #if: {{{subheading}}}<!--
    // THEN subheading
+
 
     -->|<tr class="dt-subheading"><!--
 
     -->|<tr class="dt-subheading"><!--
 
     --><td colspan="6" style="font-weight:bold;padding:0.5em 0.75em 0.3em 0.75em; <!--
 
     --><td colspan="6" style="font-weight:bold;padding:0.5em 0.75em 0.3em 0.75em; <!--
Zeile 69: Zeile 64:
 
   --></tr><!--
 
   --></tr><!--
 
   --><tr class="dt-hspacer"><td></td></tr><!--
 
   --><tr class="dt-hspacer"><td></td></tr><!--
    // END subheading.
+
  // END subheading:
 
   -->}}<!--
 
   -->}}<!--
 
   // Next column is lead id for first alternative.
 
   // Next column is lead id for first alternative.
--><tr id="L{{{keyID}}}_{{{leadID}}}_row" class="dt-row"><!--
+
  --><tr id="L{{{keyID}}}_{{{leadID}}}_row" class="dt-row">{{
  -->{{#if:{{{parentlead}}}<!--
+
    #if:{{{parentlead}}}<!-- THEN: indent 2 columns -->|<td></td><td></td>}}
  // THEN: Indented 2 cols if parentlead is filled (+ the normal colspan=3 in 3rd col. is removed elsewhere)
+
    <td id="L{{{keyID}}}_{{{leadID}}}" class="dt-nodeid">{{{displayID}}}</td><!--
  -->|<td></td><td></td><!--
+
  // END parentlead
+
  -->}}<!--
+
  --><td id="L{{{keyID}}}_{{{leadID}}}" class="dt-nodeid">{{{displayID}}}</td><!--
+
 
// END PART 1, Manage spacer rows and subheadings above a lead row
 
// END PART 1, Manage spacer rows and subheadings above a lead row
 
-->}}<!--
 
-->}}<!--
Zeile 93: Zeile 84:
 
     --><span class="leadspan">{{Trim|1={{{statement}}}}}&nbsp;</span><!--
 
     --><span class="leadspan">{{Trim|1={{{statement}}}}}&nbsp;</span><!--
 
     // add mw-collapsible mechanism
 
     // add mw-collapsible mechanism
     -->{{#if: {{{detailtext}}}{{{image m}}} <!--
+
     -->{{#if: {{{detailtext}}}{{{image m}}} <!--
 
     // THEN create custom toggle-link for "more…"
 
     // THEN create custom toggle-link for "more…"
 
     -->|<span class="leadspan noprint mw-customtoggle-L{{{keyID}}}{{{leadID}}}{{#var:decisiontreeAlternative}}row"></span>}}<!--
 
     -->|<span class="leadspan noprint mw-customtoggle-L{{{keyID}}}{{{leadID}}}{{#var:decisiontreeAlternative}}row"></span>}}<!--
Zeile 128: Zeile 119:
 
       -->|{{#if: {{{commonnames}}}<!--
 
       -->|{{#if: {{{commonnames}}}<!--
 
         -->|<span class="commonnames">&nbsp;{{Lead/MakeCommaBreakingList | listtext={{{commonnames}}} }}<!--
 
         -->|<span class="commonnames">&nbsp;{{Lead/MakeCommaBreakingList | listtext={{{commonnames}}} }}<!--
         DEBUG: NEXT WAS: {{#if: {{{resulttext}}} |&nbsp;&ndash;|&#32;}}</span> // CHECK WHETHER OK WITHOUT
+
         // DEBUG: NEXT WAS: {{#if: {{{resulttext}}} |&nbsp;&ndash;|&#32;}}</span> // CHECK WHETHER OK WITHOUT
 
         -->&nbsp;&ndash;</span><!-- (no additional space after ndash!)
 
         -->&nbsp;&ndash;</span><!-- (no additional space after ndash!)
 
       -->}}<!--
 
       -->}}<!--
Zeile 142: Zeile 133:
 
     -->|[{{{resultlink}}} {{{resulttext}}}]<!--
 
     -->|[{{{resultlink}}} {{{resulttext}}}]<!--
 
     // ELSE wiki link or result-text-only (non-link).
 
     // ELSE wiki link or result-text-only (non-link).
      -->{{#if: {{{resultlink}}}<!--
+
    -->|{{#if: {{{resultlink}}}<!--
 
       // THEN
 
       // THEN
 
         -->|[[{{{resultlink}}}|{{{resulttext}}}]]<!--
 
         -->|[[{{{resultlink}}}|{{{resulttext}}}]]<!--

Version vom 3. September 2012, 13:54 Uhr

[Erstellen] Template-info.svg Dokumentation der Vorlage
Quelle: Offene Naturführer, Das Wiki zu Bestimmungsfragen: Vorlage:Lead/Inner. Abgerufen am 2. Juni 2025, 01:41 von https://offene-naturfuehrer.de/web/Vorlage:Lead/Inner