Vorlage:Lead/Inner: Unterschied zwischen den Versionen

Aus Offene Naturführer
Wechseln zu: Navigation, Suche
K (fix syntax)
K (subheading: if parentlead 2 + 4 else 6 colspan)
 
(4 dazwischenliegende Versionen desselben Benutzers werden nicht angezeigt)
Zeile 41: Zeile 41:
 
   #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; {{
+
     -->{{#if:{{{parentlead}}}<!--
 +
      then: indent 2 columns -->|<td></td><td></td><td colspan="4" <!--
 +
      else: full six columns -->|<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 option=orange:-->
 
       |<!-- empty style parameter → next option=orange:-->
Zeile 69: Zeile 71:
  
 
// 3rd 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}}}|width="95%"<!-- needed on table-layout: fixed -->|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"><tr><!--
+
   --><table class="nested" style="width:100%;" cellspacing="0" cellpadding="0"><tr><!--
     --><td class="leadtxt {{#if:{{{next}}}|leadon}}" width="95%" ><!--
+
     --><td class="leadtxt {{#if:{{{next}}}|leadon}}" style="width:95%;" ><!--
 
     --><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: {{{detailspresent|}}}|<span class="leadspan noprint mw-customtoggle-{{{IDprefix}}}{{{coupletID}}}_{{#var:decisiontreeAlternative}}row"></span>}}<!--
+
     -->{{#if: {{{detailspresent|}}}|<span class="leadspan noprint {{#replace:{{ANCHORENCODE:mw-customtoggle-{{{IDprefix}}}{{{coupletID}}}_{{#var:decisiontreeAlternative}}}}|.|dot}}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)!
 
     // 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.
 
     // 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.
 
     -->{{#if:{{{next|}}}<!-- fixed width 5%
 
     -->{{#if:{{{next|}}}<!-- fixed width 5%
then -->|<td class="leadresult leadon" width="5%"><span class="leadon">&nbsp;[[#{{{IDprefix}}}{{{next}}}|&nbsp;►<!--  
+
then -->|<td class="leadresult leadon" style="width:5%;"><span class="leadon">&nbsp;[[#{{{IDprefix}}}{{{next}}}|&nbsp;►<!--  
 
       -->{{#if:{{{resulttext}}}|►}}&nbsp;{{{next}}}]]</span><!--  
 
       -->{{#if:{{{resulttext}}}|►}}&nbsp;{{{next}}}]]</span><!--  
 
       --></td><!--  
 
       --></td><!--  
else -->|<td width="5%"></td>}}{{
+
else -->|<td style="width:5%;"></td>}}{{
 
     #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><td class="leadresult {{#if: {{{next}}} |{{#if: {{{resulttext}}}{{{commonnames}}} | |leadon}}}}" width="100%" 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
 
     // FIRST NESTED (= pointer to indented subkey with parentlead) in addition to result, all result-layout variants
 
     -->{{#if:{{{nested}}}<!--
 
     -->{{#if:{{{nested}}}<!--
Zeile 153: Zeile 155:
 
// THEN  
 
// THEN  
 
-->|<tr><td class="leadextras" colspan="2"><!--
 
-->|<tr><td class="leadextras" colspan="2"><!--
--><div class="mw-collapsible mw-collapsed mw-collapsible-content leadextras" id="mw-customcollapsible-{{{IDprefix}}}{{{coupletID}}}_{{#var:decisiontreeAlternative}}row"><!--
+
--><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}}}<!--

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:41 von https://offene-naturfuehrer.de/web/Vorlage:Lead/Inner