Vorlage:Lead/Inner: Unterschied zwischen den Versionen

Aus Offene Naturführer
Wechseln zu: Navigation, Suche
(Wieder die aktuelle Version von 00:14, 4. Sep. 2012‎. Die alte Version rendert Brassica/Gladis OK, die neue nicht!)
(minor changes, semantic properties removed for testing)
Zeile 4: Zeile 4:
 
// PART 0. Semantic properties and hidden category for SMW forms
 
// PART 0. Semantic properties and hidden category for SMW forms
 
-->{{#switch: {{CONTENTLANGUAGE}}<!--
 
-->{{#switch: {{CONTENTLANGUAGE}}<!--
 
// 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}}}<!--
 
  THEN-->|{{#arraymap: {{{commonnames}}}<!-- values
 
    -->|,<!-- split on ,
 
    -->|§<!-- assign temporary variable
 
    -->|[[Deutscher Name::§| ]]<!-- output
 
    -->|<!-- new output separator
 
    -->}}<!--
 
  END -->}}{{
 
 
 
  #if: {{{synonyms}}}<!--
 
  THEN-->| [[Synonymliste:: {{StripFormatting |{{{synonyms}}}}}| ]]<!--
 
  END -->}}{{
 
 
 
  #if: {{{scientificname}}}<!--
 
  THEN-->|[[Wissenschaftlicher Name::{{StripFormatting | {{{scientificname}}}}}| ]]<!--
 
  END -->}}<!--
 
 
// 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
 
 
// PART 0, END switch CONTENTLANGUAGE
 
 
-->}}<!--  
 
-->}}<!--  
 
  
 
// PART 1. Manage spacer rows and subheadings above a lead row
 
// PART 1. Manage spacer rows and subheadings above a lead row
Zeile 42: Zeile 16:
 
       <td class="dt-nodeid">{{{displayID}}}</td><!--
 
       <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
Zeile 52: Zeile 26:
 
   #if: {{{subheading}}}<!--
 
   #if: {{{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; {{
     -->{{#switch: {{lc:{{{subheadingstyle}}}}}
+
     #switch: {{lc:{{{subheadingstyle}}}}}
        |<!-- empty style parameter = next swwitch option = orange:-->
+
      |<!-- empty style parameter = next switch option = orange:-->
        | orange    = background-color:#FCFFEC; border:1px solid #ffc51a;
+
      | orange    = background-color:#FCFFEC; border:1px solid #ffc51a;
        | green    = background-color:#e5febe; border:1px solid #c5de9e;
+
      | green    = background-color:#e5febe; border:1px solid #c5de9e;
        | bigorange = background-color:#FCFFEC; border:2px solid #ffc51a; font-size:120%;
+
      | bigorange = background-color:#FCFFEC; border:2px solid #ffc51a; font-size:120%;
        | biggreen  = background-color:#e5febe; border:2px solid #c5de9e; font-size:120%;
+
      | biggreen  = background-color:#e5febe; border:2px solid #c5de9e; font-size:120%;
        | simple    =
+
      | simple    =
        | #default  = {{{subheadingstyle}}}
+
      | #default  = {{{subheadingstyle}}}
        }}">{{{subheading}}}</td><!--
+
      }}">{{{subheading}}}</td><!--
 
   --></tr><!--
 
   --></tr><!--
 
   --><tr class="dt-hspacer"><td></td></tr><!--
 
   --><tr class="dt-hspacer"><td></td></tr><!--
Zeile 74: Zeile 48:
  
 
// PART 2. Prepare lead core.
 
// PART 2. Prepare lead core.
// Second column contains either backlink or lead-differentiators (*, ', -, etc.);
+
// 2nd column contains either backlink or lead-differentiators (*, ', -, etc.);
 
// Output empty column if neither is present
 
// Output empty column if neither is present
 
--><td class="leadalt">{{{leadpart2}}}</td><!--
 
--><td class="leadalt">{{{leadpart2}}}</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}}}||colspan="3"}}><!--
 
   --><table class="nested" width="100%" cellspacing="0" cellpadding="0"><tr><!--
 
   --><table class="nested" width="100%" cellspacing="0" cellpadding="0"><tr><!--
Zeile 84: Zeile 58:
 
     --><span class="leadspan">{{Trim|1={{{statement}}}}}&nbsp;</span><!--
 
     --><span class="leadspan">{{Trim|1={{{statement}}}}}&nbsp;</span><!--
 
     // Add mw-collapsible span (the "more…")
 
     // Add mw-collapsible span (the "more…")
     -->{{#if: {{{detailtext}}}{{{image m}}}|<span class="leadspan noprint mw-customtoggle-L{{{keyID}}}{{{leadID}}}{{#var:decisiontreeAlternative}}row"></span>}}<!--
+
     -->{{#if: {{{detailspresent}}}|<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 = number of further leads. NEW: both with and without result in same row (it used to be below result)!
Zeile 176: Zeile 150:
 
// 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  
 
// THEN  
 
-->|<tr><td class="leadextras" colspan="2"><!--
 
-->|<tr><td class="leadextras" colspan="2"><!--
Zeile 205: Zeile 179:
 
--></table><!--
 
--></table><!--
  
// PART 5: Always-on images (image j/k), non-hide-able image below lead statement and result:
+
// PART 5: Always-on images (image j/k) 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><!--

Version vom 4. September 2012, 14:59 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