Vorlage:Lead/Inner: Unterschied zwischen den Versionen

Aus Offene Naturführer
Wechseln zu: Navigation, Suche
(Minor simplification by combining the "L" plus keyID plus leadID already in calling Template:Lead)
Zeile 1: Zeile 1:
 
<noinclude>'''See [[Template:Key Start/doc| Key Start-Doc]] for the main documentation, [[Template:Lead/doc| Lead-Doc]] for recent technical changes of the Lead-templates.'''
 
<noinclude>'''See [[Template:Key Start/doc| Key Start-Doc]] for the main documentation, [[Template:Lead/doc| Lead-Doc]] for recent technical changes of the Lead-templates.'''
 
[[Category:Single-access key templates]]
 
 
  
 
[[Category:Single-access key templates]]
 
[[Category:Single-access key templates]]
Zeile 103: Zeile 100:
 
       // THEN: NEW LAYOUT RULES -> ignore commonnames+scientificname if resulttextoverride
 
       // THEN: NEW LAYOUT RULES -> ignore commonnames+scientificname if resulttextoverride
 
       // ELSE:-> output common names even for resulttextoverride
 
       // ELSE:-> output common names even for resulttextoverride
       -->|{{#if: {{{commonnames}}}<!--
+
      ## DEBUG: commented out for testing ##
         -->|<span class="commonnames">&nbsp;{{Lead/MakeCommaBreakingList | listtext={{{commonnames}}} }}<!--
+
       -##->|{{#if: {{{commonnames}}}<!-##-
        -->&nbsp;&ndash;</span><!-- (no additional space after ndash!)
+
         -##->|<span class="commonnames">&nbsp;{{Lead/MakeCommaBreakingList | listtext={{{commonnames}}} }}&nbsp;&ndash;</span><!-##- (no additional space after ndash!)
         -->}}<!--
+
         -##->}}<!-##-
 +
      ## END DEBUG: commented out for testing ##
 
       -->}}<!-- // END scientificname
 
       -->}}<!-- // END scientificname
 
     // ELSE: no resulttextoverride, output commonnames for both OLD and NEW LAYOUT
 
     // ELSE: no resulttextoverride, output commonnames for both OLD and NEW LAYOUT
 
       -->|{{#if: {{{commonnames}}}<!--
 
       -->|{{#if: {{{commonnames}}}<!--
         -->|<span class="commonnames">&nbsp;{{Lead/MakeCommaBreakingList | listtext={{{commonnames}}} }}<!--
+
         -->|<span class="commonnames">&nbsp;{{Lead/MakeCommaBreakingList | listtext={{{commonnames}}} }}&nbsp;&ndash;</span><!--  
         // DEBUG: NEXT WAS: {{#if: {{{resulttext}}} |&nbsp;&ndash;|&#32;}}</span> // CHECK WHETHER OK WITHOUT
+
        // (no additional space after ndash!)
        -->&nbsp;&ndash;</span><!-- (no additional space after ndash!)
+
         // DEBUG: ABOVE WAS: {{#if: {{{resulttext}}} |&nbsp;&ndash;|&#32;}}</span> // OK WITHOUT?
 
       -->}}<!--
 
       -->}}<!--
 
     // END resulttextoverride:
 
     // END resulttextoverride:
Zeile 139: Zeile 137:
 
       // THEN (start with wrappable blank, NOT a br-if-image-sidebar present: res.qual. may just be "L.")
 
       // THEN (start with wrappable blank, NOT a br-if-image-sidebar present: res.qual. may just be "L.")
 
       -->|<nowiki></nowiki> <span class="resultqualifier {{#ifexpr:{{#len:{{{resultqualifier}}} }} < 40|nowrap}}"> {{{resultqualifier}}}</span><!--
 
       -->|<nowiki></nowiki> <span class="resultqualifier {{#ifexpr:{{#len:{{{resultqualifier}}} }} < 40|nowrap}}"> {{{resultqualifier}}}</span><!--
     // END (res.qual.)
+
     // END (res.qual.), + closing span.leadresults (= nowrap-span around result+qualif.)
    -->}}<!--
+
     -->}}</span><!--  
    // closing span.leadresults = nowrap-span around result+qualif.
+
     --></span><!--  
+
  
 
     // 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 contain a backlink... -> ???
+
     // Note: leadpart2 could be backlink. -> ??? QUESTION: CURRENTLY suppressed for [ but not ( ?
 
     -->{{#if:{{{nested}}}<!--
 
     -->{{#if:{{{nested}}}<!--
       -->|<br /><!-- within-page-link:
+
       -->|<br /><span class="leadon">&nbsp;[[#{{{leadID}}}{{
      --><span class="leadon">&nbsp;[[#{{{leadID}}}<!--
+
       #ifeq:{{#sub:{{{leadpart2}}}|0|1}}|[|<!--THEN nothing
       -->{{#ifeq:{{#sub:{{{leadpart2}}}|0|1}}|[<!--
+
      -->|<!--THEN nothing
+
 
       -->|<!--ELSE -->{{{leadpart2}}}<!--
 
       -->|<!--ELSE -->{{{leadpart2}}}<!--
 
       -->}}{{{nested}}}|&nbsp;▼▼&nbsp;{{{nested}}}]]</span><!--
 
       -->}}{{{nested}}}|&nbsp;▼▼&nbsp;{{{nested}}}]]</span><!--

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