Vorlage:Lead/Inner: Unterschied zwischen den Versionen
Aus Offene Naturführer
(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}}<!-- | ||
− | |||
− | |||
-->|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! | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
-->| #default =[[Category:Keys based on lead template]]<!-- Hidden cat for SWM form! | -->| #default =[[Category:Keys based on lead template]]<!-- Hidden cat for SWM form! | ||
− | |||
− | |||
− | |||
− | |||
-->}}<!-- | -->}}<!-- | ||
− | |||
// 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| | + | -->|{{#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}}}}} | |
− | + | |<!-- empty style parameter = next switch option = orange:--> | |
− | + | | orange = background-color:#FCFFEC; border:1px solid #ffc51a; | |
− | + | | green = background-color:#e5febe; border:1px solid #c5de9e; | |
− | + | | bigorange = background-color:#FCFFEC; border:2px solid #ffc51a; font-size:120%; | |
− | + | | biggreen = background-color:#e5febe; border:2px solid #c5de9e; font-size:120%; | |
− | + | | simple = | |
− | + | | #default = {{{subheadingstyle}}} | |
− | + | }}">{{{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. | ||
− | // | + | // 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><!-- | ||
− | // | + | // 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}}}}} </span><!-- | --><span class="leadspan">{{Trim|1={{{statement}}}}} </span><!-- | ||
// Add mw-collapsible span (the "more…") | // Add mw-collapsible span (the "more…") | ||
− | -->{{#if: {{{ | + | -->{{#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: {{{ | + | -->{{#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) | + | // 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]
Dokumentation der Vorlage