Vorlage:Lead/Inner: Unterschied zwischen den Versionen

Aus Offene Naturführer
Wechseln zu: Navigation, Suche
(one div necessary for formatting (collapse works without...), div was present in earlier Lead templates as well)
K (subheading: if parentlead 2 + 4 else 6 colspan)
 
(45 dazwischenliegende Versionen von 2 Benutzern werden nicht angezeigt)
Zeile 1: Zeile 1:
<noinclude>{{Documentation}}
+
<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]]
 
</noinclude><includeonly><!--
 
</noinclude><includeonly><!--
Zeile 7: Zeile 8:
 
// German: Deutschsprachige Attribute
 
// German: Deutschsprachige Attribute
 
-->|de|de-formal=[[Category:Schlüssel mit Lead-Vorlage]]<!-- Hidden cat for SMW form!
 
-->|de|de-formal=[[Category:Schlüssel mit Lead-Vorlage]]<!-- Hidden cat for SMW form!
+
   -->{{
   -->{{#if: {{{commonnames}}}<!--
+
  #if: {{{commonnames}}}|{{#arraymap: {{{commonnames}}}<!-- values
  THEN-->|{{#arraymap: {{{commonnames}}}<!-- values
+
 
     -->|,<!-- split on ,
 
     -->|,<!-- split on ,
 
     -->|§<!-- assign temporary variable
 
     -->|§<!-- assign temporary variable
     -->|[[Deutscher Name::§| ]]<!-- output
+
     -->|[[dwc:vernacularName::§| ]]<!-- output
 
     -->|<!-- new output separator
 
     -->|<!-- new output separator
     -->}}<!--
+
     -->}} }}{{ 
  END -->}}<!--
+
   #if: {{{synonyms}}}|[[Synonymliste::{{StripFormatting |{{{synonyms}}}}}| ]]}}{{ 
    
+
   #if: {{{scientificname}}}|[[dwc:scientificName::{{StripFormatting | {{{scientificname}}}}}| ]]}}<!--
  -->{{#if: {{{synonyms}}}<!--
+
  THEN-->| [[Synonymliste:: {{StripFormatting |{{{synonyms}}}<!---->}}| ]]<!--
+
  END -->}}<!--
+
 
+
   -->{{#if: {{{scientificname}}}<!--
+
  THEN-->|[[Wissenschaftlicher Name::{{StripFormatting | {{{scientificname}}}}}| ]]<!--
+
  END -->}}<!--
+
  
 
// English properties
 
// English properties
 
-->| #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
 
 
-->}}<!--  
 
-->}}<!--  
 
+
// PART 1. Spacer rows and subheadings above a lead row
 
+
-->{{#ifeq: {{{coupletID}}}|{{#var: decisiontreePreviousCouplet}}<!--
// PART 1. Manage spacer rows and subheadings above a lead row
+
-->{{#ifeq: {{{leadID}}}|{{#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="L{{{keyID}}}_{{{leadID}}}_{{#var:decisiontreeAlternative}}_row" class="dt-row"><!--
+
   --><tr id="{{{IDprefix}}}{{{coupletID}}}_{{#var:decisiontreeAlternative}}_row" class="dt-row">{{
    -->{{#if:{{{parentlead}}}<!--
+
      #if:{{{parentlead}}}<!-- THEN: indent 2 columns -->|<td></td><td></td>}}
      // THEN: insert two columns
+
      <td <!-- (td is filled and closed at end!)
      -->|<td></td><td></td><!--
+
// ELSE first lead; suppress spacer row for first couplet of key or nested subkeys
      // END parentlead
+
-->|{{#if: {{#ifeq: 0|{{#var: decisiontreePreviousCouplet}}|FIRSTCOUPLET|{{{parentlead}}}}}<!--
      -->}}<!--
+
    -->|<!-- THEN nothing
    --><td class="dt-nodeid">{{{displayID}}}</td><!--
+
// ELSE first lead:
+
-->|{{#if: {{#ifeq: 0|{{#var: decisiontreePreviousCouplet}}|FIRSTCOUPLET|}}{{{parentlead}}}<!--
+
    // THEN: no spacer row before first couplet or nested subkeys
+
    -->|<!-- // 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|{{{coupletID}}}}}{{
   -->{{#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; <!--
+
     -->{{#if:{{{parentlead}}}<!--
     -->{{#switch: {{lc:{{{subheadingstyle}}}}}
+
      then: indent 2 columns -->|<td></td><td></td><td colspan="4" <!--
        |<!-- empty style parameter = next swwitch option = orange:-->
+
      else: full six columns -->|<td colspan="6" }} style="font-weight:bold;padding:0.5em 0.75em 0.3em 0.75em; {{
        | orange    = background-color:#FCFFEC; border:1px solid #ffc51a;
+
     #switch: {{lc:{{{subheadingstyle}}}}}
        | green    = background-color:#e5febe; border:1px solid #c5de9e;
+
      |<!-- empty style parameter next option=orange:-->
        | bigorange = background-color:#FCFFEC; border:2px solid #ffc51a; font-size:120%;
+
      | orange    = background-color:#FCFFEC; border:1px solid #ffc51a;
        | biggreen  = background-color:#e5febe; border:2px solid #c5de9e; font-size:120%;
+
      | green    = background-color:#e5febe; border:1px solid #c5de9e;
        | simple    =
+
      | bigorange = background-color:#FCFFEC; border:2px solid #ffc51a; font-size:120%;
        | #default  = {{{subheadingstyle}}}
+
      | biggreen  = background-color:#e5febe; border:2px solid #c5de9e; font-size:120%;
        }}">{{{subheading}}}</td><!--
+
      | simple    =
 +
      | #default  = {{{subheadingstyle}}}
 +
      }}">{{{subheading}}}</td><!--
 
   --></tr><!--
 
   --></tr><!--
   --><tr class="dt-hspacer"><td></td></tr><!--
+
   --><tr class="dt-hspacer"><td colspan="6"></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="{{{IDprefix}}}{{{coupletID}}}_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="{{{IDprefix}}}{{{coupletID}}}" <!-- (td is filled and closed at end!)
  -->|<td></td><td></td><!--
+
// END PART 1, Spacer rows and subheadings above a lead row
  // END parentlead
+
-->}} class="dt-nodeid">{{#ifeq:{{{withinCoupletID}}}|–|–|{{{coupletID}}}}}</td><!--
  -->}}<!--
+
  --><td id="L{{{keyID}}}_{{{leadID}}}" class="dt-nodeid">{{{displayID}}}</td><!--
+
// END PART 1, Manage spacer rows and subheadings above a lead row
+
-->}}<!--
+
  
 
// PART 2. Prepare lead core.
 
// PART 2. Prepare lead core.
// Second column contains either backlink or lead-differentiators (*, ', -, etc.);
+
// 2nd column contains either withinCoupletID = lead-differentiators (*, ', -, etc.) or backlink previous couplet. Both may be empty!
// Output empty column if neither is present
+
--><td class="leadalt">{{
--><td class="leadalt">{{{leadpart2}}}</td><!--
+
#ifeq:{{{withinCoupletID}}}|–||{{{withinCoupletID}}}}}{{
 +
#if:{{{leadIDbacklink}}}|&nbsp;[[#{{{IDprefix}}}{{{leadIDbacklink}}}|({{{leadIDbacklink}}})]]}}</td><!--
  
// Third 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
--><td class="lead-row1" {{#if: {{{parentlead}}}||colspan="3"}}><!--
+
--><td class="lead-row1" {{#if: {{{parentlead}}}|style="width:95%;"<!-- needed on table-layout: fixed -->|colspan="3"}}><!--
   --><table class="nested" width="100%" cellspacing="0" cellpadding="0"><!--
+
   --><table class="nested" style="width:100%;" cellspacing="0" cellpadding="0"><tr><!--
    --><tr><!--
+
     --><td class="leadtxt {{#if:{{{next}}}|leadon}}" style="width:95%;" ><!--
     --><td class="
+
    leadtxt{{#if:{{{next}}}|<!-- but not if result present: -->{{#if: {{{resulttext}}}{{{scientificname}}}{{{commonnames}}} | |<nowiki></nowiki> leadon}} }}" {{#ifexpr: {{#len: {{{next}}} }} < 5 |width="95%"}}><!--
+
 
     --><span class="leadspan">{{Trim|1={{{statement}}}}}&nbsp;</span><!--
 
     --><span class="leadspan">{{Trim|1={{{statement}}}}}&nbsp;</span><!--
     // add mw-collapsible mechanism
+
     // Add mw-collapsible span (the "more…")
     -->{{#if: {{{detailtext}}}{{{image m}}} <!--
+
     -->{{#if: {{{detailspresent|}}}|<span class="leadspan noprint {{#replace:{{ANCHORENCODE:mw-customtoggle-{{{IDprefix}}}{{{coupletID}}}_{{#var:decisiontreeAlternative}}}}|.|dot}}row"></span>}}<!--
    // THEN -->|<!-- create custom toggle-link for "more…"
+
    --><span class="leadspan noprint mw-customtoggle-L{{{keyID}}}{{{leadID}}}{{#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 is pointer to further leads and/or to a taxon/subkey 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.
     // Both will be autolinked. "commonnames" is handled here as separate parameter to increase re-formatting options later on.
+
     -->{{#if:{{{next|}}}<!-- fixed width 5%
     // resulttext has always text; resultlink may have text
+
then -->|<td class="leadresult leadon" style="width:5%;"><span class="leadon">&nbsp;[[#{{{IDprefix}}}{{{next}}}|&nbsp;►<!--
 
+
      -->{{#if:{{{resulttext}}}|►}}&nbsp;{{{next}}}]]</span><!--
    // depending on resultlink render plain text or link (to wiki taxon page or a dedicated subkey page):
+
      --></td><!--
    -->{{#if:{{{resulttext}}}{{{scientificname}}}{{{commonnames}}}{{{nested}}}<!--
+
else -->|<td style="width:5%;"></td>}}{{
     // THEN New-Row-For-Results (ELSE td with next in same row).
+
    #if:{{{resulttext}}}{{{nested}}}<!--
     -->|<td><!--empty, in other cases used for next-lead--></td></tr><tr><!--
+
     // THEN New-Row-For-Results. Leaderdots for next, but not if also result is present!
    --><td class="leadresult{{#if: {{{next}}} |<!-- no leaderdots if result-something -->{{#if: {{{resulttext}}}{{{scientificname}}}{{{commonnames}}} | |<nowiki></nowiki> leadon}}}}" colspan="2"><!--
+
     -->|</tr><tr><td class="leadresult {{#if: {{{next}}} |{{#if: {{{resulttext}}}{{{commonnames}}} | |leadon}}}}" style="width:100%;" colspan="2"><!--
 +
    // FIRST NESTED (= pointer to indented subkey with parentlead) in addition to result, all result-layout variants
 +
    -->{{#if:{{{nested}}}<!--
 +
      -->|<span class="leadon">&nbsp;[[#{{{IDprefix}}}{{{coupletID}}}{{{withinCoupletID}}}{{{nested}}}|&nbsp;▼▼&nbsp;{{{nested}}}]]&nbsp;&nbsp;&ndash;&nbsp;&nbsp;</span><!--
 +
    // END if nested:
 +
    -->}}<!--
  
 
     // BACKGROUND OLD/NEW RESULTSTYLE:
 
     // BACKGROUND OLD/NEW RESULTSTYLE:
     // The original ("old") layout interprets result as either free of scientific name  
+
     // The original ("old") style interprets result as either free of scientific name  
 
     //  (and it does not know which is which), and adds the common name in front.
 
     //  (and it does not know which is which), and adds the common name in front.
     // The new format should be able to show free-form result text (common and scientific  
+
     // The new format should be able to either show free-form result text (common/scientific  
 
     //  name may be present, but are not shown) or directly common and scientific name.
 
     //  name may be present, but are not shown) or directly common and scientific name.
 
     // See also schema at bottom of Template:Lead/doc
 
     // See also schema at bottom of Template:Lead/doc
 
     // TODO: introduce resultformat parameter later (= list of format options, allowing common name or scientific name to be first)
 
     // TODO: introduce resultformat parameter later (= list of format options, allowing common name or scientific name to be first)
     -->{{#if: {{{scientificname}}}<!--
+
    // Now using {{#var: OtherNames}} = the gray name, presently the common name, optionally later a different one.
    // THEN: NEW LAYOUT AND RULES (if scientificname present)
+
     -->{{#if: {{{resulttextoverride}}}<!--  
       -->|{{#if: {{{resulttextoverride}}}|<!--  
+
      // If scientificname exists then NEW STYLE → ignore commonnames+scientificname if resulttextoverride, ELSE OLD STYLE:-> output common names even for resulttextoverride
      // Explicit result text override -> ignore commonnames+scientificname, i.e.
+
       -->|{{#if: {{{scientificname}}}|{{#vardefine: OtherNames|}}|{{#vardefine: OtherNames|{{{commonnames}}}<!---->}}<!---->}}<!-- // END if scientificname
      // THEN:-> common names not output
+
    // ELSE: no resulttextoverride, output commonnames for both OLD and NEW LAYOUT
      // ELSE:-> output common names if present:  
+
      -->|{{#vardefine: OtherNames|{{{commonnames}}}<!---->}}<!--
        -->|{{#if: {{{commonnames}}}<!--
+
    // END resulttextoverride:
          -->|<span class="commonnames">&nbsp;{{Lead/MakeCommaBreakingList | listtext={{{commonnames}}} }}<!--
+
    -->}}<!-- // END NEW/OLD: rest is identical
          -->&nbsp;&ndash;</span><!-- (no additional space after ndash!)
+
    // Output the OtherNames variable if filled. No additional space after ndash!
        -->}}<!--
+
    //  ##DEBUG## ABOVE WAS: {{#if: {{{resulttext}}} |&nbsp;&ndash;|&#32;}}</span> // OK WITHOUT?
      // END resulttextoverride:
+
    -->{{#if: {{#var: OtherNames}}<!--
       -->}}<!--  
+
        -->|<span class="commonnames">&nbsp;{{Lead/MakeCommaBreakingList | listtext={{#var:OtherNames}} }}&nbsp;&nbsp;&ndash;</span><!--  
      // resulttext = one of: resulttextoverride, scientificname, or resultlink itself.
+
       -->}}<!--
      // resulttext and qualifier need white background and (if together <40 char) a common nowrap:
+
    // Now resulttext = one of resulttextoverride, scientificname, or resultlink itself.
      --><span class="leadresults{{#ifexpr:{{#len:{{{resulttext}}}{{{resultqualifier}}} }} < 40|<nowiki> </nowiki>nowrap}}"><!--
+
    // resulttext and qualifier need white background and (if together <40 char) a common nowrap:
      --><span class="leadout{{#ifexpr:{{#len:{{{resulttext}}} }} < 40|<nowiki> </nowiki>nowrap}}">&nbsp;&nbsp;<!--
+
  --><span class="leadresults {{#ifexpr:{{#len:{{{resulttext}}}{{{resultqualifier}}} }} < 40|nowrap}}"><!--
      -->{{Lead/MakeLink|resultlink={{{resultlink}}}|displaytext={{{resulttext}}}}}<!--
+
    --><span class="leadout {{#ifexpr:{{#len:{{{resulttext}}} }} < 40|nowrap}}">&nbsp;&nbsp;{{
      --></span><!-- close span.leadout. span.leadresults will be closed after result qualifier!
+
    #ifeq: {{#sub: {{{resultlink}}}|0|5}}|http:<!--
 
+
    // THEN http-link:
    // END NEW LAYOUT AND RULES
+
    -->|[{{{resultlink}}} {{{resulttext}}}]<!--
    // ELSE no scientificnames → START OLD LAYOUT and RULES
+
    // ELSE wiki link or result-text-only (non-link).
 
+
     -->|{{#if: {{{resultlink}}}<!--
     -->|{{#if: {{{commonnames}}}<!--
+
      // THEN
          -->|<span class="commonnames">&nbsp;{{Lead/MakeCommaBreakingList | listtext={{{commonnames}}} }}<!--
+
        -->|[[{{{resultlink}}}|{{{resulttext}}}]]<!--
          -->{{#if: {{{resulttext}}}{{{scientificname}}} |&nbsp;&ndash;|&#32;}}</span><!-- (no additional space after ndash!)
+
      // ELSE unlinked
 +
        -->|{{{resulttext}}}<!--
 +
      // END resultlink
 
       -->}}<!--
 
       -->}}<!--
      // Result text, result+next and qualifier need white background (and, if together < 40 char, a common nowrap):
+
    // END (if http-link)
      --><span class="leadresults{{#ifexpr:{{#len:{{{resulttext}}}{{{resultqualifier}}} }} < 40|<nowiki> </nowiki>nowrap}}"><!--
+
    -->}}</span><!-- close span.leadout. Span.leadresults will be closed after result qualifier!
      --><span class="leadout{{#ifexpr:{{#len:{{{resulttext}}} }} < 40|<nowiki> </nowiki>nowrap}}">&nbsp;&nbsp;<!--
+
      -->{{Lead/MakeLink|resultlink={{{resultlink}}}|displaytext={{{resulttext}}}}}<!--
+
      --></span><!-- close span.leadout. span.leadresults will be closed after result qualifier!
+
 
+
    // END OLD LAYOUT and RULES.
+
    // END if scientificname (new/old layout rules):
+
    -->}}<!--
+
 
+
  
 
     // resultqualifier in all result-layout variants
 
     // resultqualifier in all result-layout variants
 
     -->{{#if: {{{resultqualifier}}}<!--
 
     -->{{#if: {{{resultqualifier}}}<!--
 
       // 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|<nowiki> </nowiki>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><!--
+
 
+
 
+
    // NEXT/NESTED-LEAD-POINTER in addition to result, all result-layout variants
+
    -->{{#if: {{{next}}}<!--
+
    // THEN NEXT-LEAD-POINTER-WITH-RESULT in addition to "resultlink": result+next-lead co-occur, e.g.,
+
    // for species-result where key continues with subspecies. Always new line, double triangle.
+
      -->|<br /><!--
+
      --><span class="leadon">&nbsp;[[#L{{{keyID}}}_{{{parentlead}}}{{{next}}}|&nbsp;►►&nbsp;{{{next}}}]]</span><!--
+
    // ELSE (no NEXT-LEAD-POINTER-WITH-RESULT)
+
        -->|{{#if:{{{nested}}}<!--
+
          // nested (= pointer to indented subkey with parentlead) in addition to next
+
          // Note: leadpart2 could be a backlink...
+
          // Note: leadpart2 may be a *, which is forbidden in @id; BUT: some step in mediawiki will convert "*" to ".2A"
+
        // THEN nested present
+
        -->|<br /><!-- within-page-link:
+
        --><span class="leadon">&nbsp;[[#L{{{keyID}}}_{{{leadID}}}<!--
+
          -->{{#ifeq:{{#sub:{{{leadpart2}}}|0|1}}|[<!--
+
          -->|<!--THEN nothing
+
          -->|<!--ELSE -->{{{leadpart2}}}<!--
+
          -->}}{{{nested}}}|&nbsp;▼▼&nbsp;{{{nested}}}]]<!--     
+
      // close span.leadon:--></span><!--
+
      // END if nested:
+
      -->}}<!--
+
    // END NEXT/NESTED-LEAD-POINTER
+
    -->}}<!--
+
 
     --></td><!--
 
     --></td><!--
 
    
 
    
  // ELSE _ONLY_ a NEXT-LEAD-POINTER, i.e. without a result or nested. This stays in the same row!
 
    -->|<td class="leadresult leadon"><!--
 
    --><span class="leadon">&nbsp;[[#L{{{keyID}}}_{{{parentlead}}}{{{next}}}|&nbsp;►&nbsp;{{{next}}}]]</span><!--
 
    --></td><!--
 
 
   // END New-Row-For-Results
 
   // END New-Row-For-Results
   -->}}<!--
+
   -->}}</tr><!--
  --></tr><!--
+
  
// PART 4. ADDITIONAL error, detailtext or image gallery (m-r)
+
// PART 4. ADDITIONAL = error, detailtext, image gallery m-r
 
// 4 a) ERROR REPORTING: Any content in 4th and later unnamed parameters is an error.
 
// 4 a) ERROR REPORTING: Any content in 4th and later unnamed parameters is an error.
 
-->{{#if: {{{errors}}}<!--
 
-->{{#if: {{{errors}}}<!--
Zeile 206: Zeile 152:
 
// occurrence + remarks; already combined in outer Lead template!
 
// occurrence + remarks; already combined in outer Lead template!
 
// Wrappable gallery image m/caption m" to "image r/caption r" output below detailtext
 
// Wrappable gallery image m/caption m" to "image r/caption r" output below detailtext
-->{{#if: {{{detailtext}}}{{{image m}}}<!--
+
-->{{#if: {{{detailspresent|}}}<!--
// THEN -->|<tr><td class="leadextras" colspan="2"><!--
+
// THEN  
--><div class="mw-collapsible mw-collapsed mw-collapsible-content leadextras" id="mw-customcollapsible-L{{{keyID}}}{{{leadID}}}{{#var:decisiontreeAlternative}}row"><!--
+
-->|<tr><td class="leadextras" colspan="2"><!--
 +
--><div class="mw-collapsible mw-collapsed mw-collapsible-content leadextras" id="{{#replace:{{ANCHORENCODE:mw-customcollapsible-{{{IDprefix}}}{{{coupletID}}}_{{#var:decisiontreeAlternative}}}}|.|dot}}row"><!--
 
-->{{{detailtext}}}<!--
 
-->{{{detailtext}}}<!--
 
-->{{#if: {{{image m}}}<!--
 
-->{{#if: {{{image m}}}<!--
Zeile 215: Zeile 162:
 
   // The nested wrapping table around left-floating tables is necessary, without or with a div
 
   // The nested wrapping table around left-floating tables is necessary, without or with a div
 
   // the images will not be contained in the outer div and the lines not displayed
 
   // the images will not be contained in the outer div and the lines not displayed
   -->|<table><tr><td><!--
+
   -->|<table><tr><td>{{
    -->{{#if: {{{image m}}}|{{Lead/GalleryItem|image={{{image m}}}|caption={{{caption m}}}|label={{{label m}}}|width={{Pixel2Number|{{{image m width}}}}}|height={{Pixel2Number|{{{image m height}}}}}|lines={{{captionlines}}}}}<!-- -->}}<!--
+
  #if: {{{image m}}}|{{Lead/GalleryItem|image={{{image m}}}|caption={{{caption m}}}|label={{{label m}}}|width={{Pixel2Number|{{{image m width}}}}}|height={{Pixel2Number|{{{image m height}}}}}|lines={{{captionlines}}}}}}}{{
    -->{{#if: {{{image n}}}|{{Lead/GalleryItem|image={{{image n}}}|caption={{{caption n}}}|label={{{label n}}}|width={{Pixel2Number|{{{image n width}}}}}|height={{Pixel2Number|{{{image n height}}}}}|lines={{{captionlines}}}}}<!-- -->}}<!--
+
  #if: {{{image n}}}|{{Lead/GalleryItem|image={{{image n}}}|caption={{{caption n}}}|label={{{label n}}}|width={{Pixel2Number|{{{image n width}}}}}|height={{Pixel2Number|{{{image n height}}}}}|lines={{{captionlines}}}}}}}{{
    -->{{#if: {{{image o}}}|{{Lead/GalleryItem|image={{{image o}}}|caption={{{caption o}}}|label={{{label o}}}|width={{Pixel2Number|{{{image o width}}}}}|height={{Pixel2Number|{{{image o height}}}}}|lines={{{captionlines}}}}}<!-- -->}}<!--
+
  #if: {{{image o}}}|{{Lead/GalleryItem|image={{{image o}}}|caption={{{caption o}}}|label={{{label o}}}|width={{Pixel2Number|{{{image o width}}}}}|height={{Pixel2Number|{{{image o height}}}}}|lines={{{captionlines}}}}}}}{{
    -->{{#if: {{{image p}}}|{{Lead/GalleryItem|image={{{image p}}}|caption={{{caption p}}}|label={{{label p}}}|width={{Pixel2Number|{{{image p width}}}}}|height={{Pixel2Number|{{{image p height}}}}}|lines={{{captionlines}}}}}<!-- -->}}<!--
+
  #if: {{{image p}}}|{{Lead/GalleryItem|image={{{image p}}}|caption={{{caption p}}}|label={{{label p}}}|width={{Pixel2Number|{{{image p width}}}}}|height={{Pixel2Number|{{{image p height}}}}}|lines={{{captionlines}}}}}}}{{
    -->{{#if: {{{image q}}}|{{Lead/GalleryItem|image={{{image q}}}|caption={{{caption q}}}|label={{{label q}}}|width={{Pixel2Number|{{{image q width}}}}}|height={{Pixel2Number|{{{image q height}}}}}|lines={{{captionlines}}}}}<!-- -->}}<!--
+
  #if: {{{image q}}}|{{Lead/GalleryItem|image={{{image q}}}|caption={{{caption q}}}|label={{{label q}}}|width={{Pixel2Number|{{{image q width}}}}}|height={{Pixel2Number|{{{image q height}}}}}|lines={{{captionlines}}}}}}}{{
    -->{{#if: {{{image r}}}|{{Lead/GalleryItem|image={{{image r}}}|caption={{{caption r}}}|label={{{label r}}}|width={{Pixel2Number|{{{image r width}}}}}|height={{Pixel2Number|{{{image r height}}}}}|lines={{{captionlines}}}}}<!-- -->}}<!--
+
  #if: {{{image r}}}|{{Lead/GalleryItem|image={{{image r}}}|caption={{{caption r}}}|label={{{label r}}}|width={{Pixel2Number|{{{image r width}}}}}|height={{Pixel2Number|{{{image r height}}}}}|lines={{{captionlines}}}}}}}<!--
    --></td></tr><!--
+
  --></td></tr><!--
    -->{{#if:{{{imagesfooter}}}<!--
+
  -->{{#if:{{{imagesfooter}}}<!--
      -->|<tr><td colspan="10" style="text-align:right; font-size:80%; line-height:1em;">{{{imagesfooter}}}</td></tr><!--
+
    -->|<tr><td colspan="10" style="text-align:right; font-size:80%; line-height:1em;">{{{imagesfooter}}}</td></tr><!--
    -->}}<!--
+
  -->}}<!--
 
   --></table><!--
 
   --></table><!--
 
// END 4 c: END Secondary-IMAGE-Gallery
 
// END 4 c: END Secondary-IMAGE-Gallery
Zeile 234: Zeile 181:
 
--></table><!--
 
--></table><!--
  
// PART 5: Always-on images (image j/k), non-hide-able image below lead statement and result:
+
// PART 5: Large, always-visibly image j/k (not collapsed) below lead statement and result:
 
-->{{#if:{{{image j}}}{{{image k}}}<!--
 
-->{{#if:{{{image j}}}{{{image k}}}<!--
-->|<table class="nested"><tr style="vertical-align:top;"><td><!--
+
-->|<table class="nested"><tr style="vertical-align:top;"><td><!--
 
-->{{#if: {{{image j}}}<!--
 
-->{{#if: {{{image j}}}<!--
   -->|<!--
+
   -->|<div style="padding:0em 0.5em 1em 0;float:left;width:{{#expr: {{Pixel2Number|{{{image j width}}}}}+15}}px;">[[{{Trim| {{{image j}}} }} |none|{{Pixel2Number|{{{image j width}}}}}x{{Pixel2Number|{{{image j height}}}}}px]]<!--
    --><div style="padding:1em 1em 1em 0;float:left;width:{{#expr: {{Pixel2Number|{{{image j width}}}}}+15}}px;">[[{{Trim| {{{image j}}} }} |none|{{Pixel2Number|{{{image j width}}}}}x{{Pixel2Number|{{{image j height}}}}}px]]<!--
+
 
     -->{{#if: {{{label j}}}|'''{{{label j}}}: '''}}{{{caption j}}}<!--
 
     -->{{#if: {{{label j}}}|'''{{{label j}}}: '''}}{{{caption j}}}<!--
 
     --></div><!--
 
     --></div><!--
 
-->}}<!--
 
-->}}<!--
 
-->{{#if: {{{image k}}}<!--
 
-->{{#if: {{{image k}}}<!--
   -->|<!--
+
   -->|<div style="padding:0em 0.5em 1em 0;float:left;width:{{#expr: {{Pixel2Number|{{{image j width}}}}}+15}}px;">[[{{Trim| {{{image k}}} }} |none|{{Pixel2Number|{{{image k width}}}}}x{{Pixel2Number|{{{image k height}}}}}px]]<!--
    --><div style="padding:1em 1em 1em 0;float:left;width:{{#expr: {{Pixel2Number|{{{image j width}}}}}+15}}px;">[[{{Trim| {{{image k}}} }} |none|{{Pixel2Number|{{{image k width}}}}}x{{Pixel2Number|{{{image k height}}}}}px]]<!--
+
 
     -->{{#if: {{{label k}}}|'''{{{label k}}}: '''}}{{{caption k}}}<!--
 
     -->{{#if: {{{label k}}}|'''{{{label k}}}: '''}}{{{caption k}}}<!--
 
     --></div><!--
 
     --></div><!--
Zeile 261: Zeile 206:
 
// a-e height, primary images height (both for all images)
 
// a-e height, primary images height (both for all images)
 
// Lead/GalleryItemNoCaption creates td!
 
// Lead/GalleryItemNoCaption creates td!
THEN-->|<table style="border:none; margin-top:0.1em;margin-left:1em;"><!--
+
THEN-->|<table style="border:none; margin-top:0.1em;margin-left:1em;"><tr>{{
  --><tr><!--
+
#if: {{{image a}}}|{{Lead/GalleryItemNoCaption|image={{{image a}}}|caption={{{caption a}}}|label={{{label a}}}|width={{Pixel2Number|{{{image a width}}}}}|height={{Pixel2Number|{{{image a height}}}}}}}}}{{
  -->{{#if: {{{image a}}}|{{Lead/GalleryItemNoCaption|image={{{image a}}}|caption={{{caption a}}}|label={{{label a}}}|width={{Pixel2Number|{{{image a width}}}}}|height={{Pixel2Number|{{{image a height}}}}}}}<!-- -->}}<!--
+
#if: {{{image b}}}|{{Lead/GalleryItemNoCaption|image={{{image b}}}|caption={{{caption b}}}|label={{{label b}}}|width={{Pixel2Number|{{{image b width}}}}}|height={{Pixel2Number|{{{image b height}}}}}}}}}{{
  -->{{#if: {{{image b}}}|{{Lead/GalleryItemNoCaption|image={{{image b}}}|caption={{{caption b}}}|label={{{label b}}}|width={{Pixel2Number|{{{image b width}}}}}|height={{Pixel2Number|{{{image b height}}}}}}}<!-- -->}}<!--
+
#if: {{{image c}}}|{{Lead/GalleryItemNoCaption|image={{{image c}}}|caption={{{caption c}}}|label={{{label c}}}|width={{Pixel2Number|{{{image c width}}}}}|height={{Pixel2Number|{{{image c height}}}}}}}}}{{
  -->{{#if: {{{image c}}}|{{Lead/GalleryItemNoCaption|image={{{image c}}}|caption={{{caption c}}}|label={{{label c}}}|width={{Pixel2Number|{{{image c width}}}}}|height={{Pixel2Number|{{{image c height}}}}}}}<!-- -->}}<!--
+
#if: {{{image d}}}|{{Lead/GalleryItemNoCaption|image={{{image d}}}|caption={{{caption d}}}|label={{{label d}}}|width={{Pixel2Number|{{{image d width}}}}}|height={{Pixel2Number|{{{image d height}}}}}}}}}{{
  -->{{#if: {{{image d}}}|{{Lead/GalleryItemNoCaption|image={{{image d}}}|caption={{{caption d}}}|label={{{label d}}}|width={{Pixel2Number|{{{image d width}}}}}|height={{Pixel2Number|{{{image d height}}}}}}}<!-- -->}}<!--
+
#if: {{{image e}}}|{{Lead/GalleryItemNoCaption|image={{{image e}}}|caption={{{caption e}}}|label={{{label e}}}|width={{Pixel2Number|{{{image e width}}}}}|height={{Pixel2Number|{{{image e height}}}}}}}}}<!--
  -->{{#if: {{{image e}}}|{{Lead/GalleryItemNoCaption|image={{{image e}}}|caption={{{caption e}}}|label={{{label e}}}|width={{Pixel2Number|{{{image e width}}}}}|height={{Pixel2Number|{{{image e height}}}}}}}<!-- -->}}<!--
+
--></tr></table><!--
  --></tr><!--
+
--></table><!--
+
 
// END PART 6: Right Sidebar Images
 
// END PART 6: Right Sidebar Images
 
-->}}</td></tr></includeonly>
 
-->}}</td></tr></includeonly>

Aktuelle Version vom 22. März 2017, 23:57 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:44 von https://offene-naturfuehrer.de/web/Vorlage:Lead/Inner