Vorlage:Lead/Inner: Unterschied zwischen den Versionen
Aus Offene Naturführer
(test: leadon ALWAYS in statement row (even if result present). In this test it is shown in both positions.) |
(first test of final version, next always in same row as statement, even if result present. Single/double triangles stay the same.) |
||
Zeile 90: | Zeile 90: | ||
--><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><!-- | ||
− | --><td class="leadtxt{{#if:{{{next}}} | + | --><td class="leadtxt{{#if:{{{next}}}|<nowiki></nowiki> leadon}}" {{#ifexpr: {{#len:{{{next}}} }} < 5 |width="95%"}}><!-- |
--><span class="leadspan">{{Trim|1={{{statement}}}}} </span><!-- | --><span class="leadspan">{{Trim|1={{{statement}}}}} </span><!-- | ||
// add mw-collapsible mechanism | // add mw-collapsible mechanism | ||
Zeile 97: | Zeile 97: | ||
-->|<span class="leadspan noprint mw-customtoggle-L{{{keyID}}}{{{leadID}}}{{#var:decisiontreeAlternative}}row"></span>}}<!-- | -->|<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 | + | // 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. |
− | // | + | --><td class="leadresult leadon">{{ |
− | + | #if:{{{next}}}|<span class="leadon"> [[#L{{{keyID}}}_{{{parentlead}}}{{{next}}}| ►{{ | |
− | + | #if:{{{resulttext}}}|►}} {{{next}}}]]</span> | |
− | / | + | }}</td><!-- |
-->{{#if:{{{resulttext}}}{{{nested}}}<!-- | -->{{#if:{{{resulttext}}}{{{nested}}}<!-- | ||
// THEN New-Row-For-Results (ELSE td with next in same row). | // THEN New-Row-For-Results (ELSE td with next in same row). | ||
− | -->| | + | -->|</tr><tr><!-- |
− | + | ||
− | + | ||
--><td class="leadresult{{#if: {{{next}}} |<!-- no leaderdots if result-something -->{{#if: {{{resulttext}}}{{{commonnames}}} | |<nowiki></nowiki> leadon}}}}" colspan="2"><!-- | --><td class="leadresult{{#if: {{{next}}} |<!-- no leaderdots if result-something -->{{#if: {{{resulttext}}}{{{commonnames}}} | |<nowiki></nowiki> leadon}}}}" colspan="2"><!-- | ||
Zeile 152: | Zeile 150: | ||
// END if scientificname (new/old layout rules): | // END if scientificname (new/old layout rules): | ||
-->}}<!-- | -->}}<!-- | ||
− | |||
// resultqualifier in all result-layout variants | // resultqualifier in all result-layout variants | ||
Zeile 163: | Zeile 160: | ||
--></span><!-- | --></span><!-- | ||
− | + | // NESTED-LEAD-POINTER in addition to result, all result-layout variants | |
− | / | + | -->{{#if:{{{nested}}}<!-- |
− | -->{{#if: {{{ | + | // 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"> [[#L{{{keyID}}}_{{{leadID}}}<!-- | |
− | + | -->{{#ifeq:{{#sub:{{{leadpart2}}}|0|1}}|[<!-- | |
− | + | -->|<!--THEN nothing | |
− | + | -->|<!--ELSE -->{{{leadpart2}}}<!-- | |
− | + | -->}}{{{nested}}}| ▼▼ {{{nested}}}]]</span><!-- | |
− | + | // END if nested: | |
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
-->}}<!-- | -->}}<!-- | ||
--></td><!-- | --></td><!-- | ||
− | |||
− | |||
− | |||
− | |||
// END New-Row-For-Results | // END New-Row-For-Results | ||
-->}}<!-- | -->}}<!-- |
Version vom 2. September 2012, 01:02 Uhr
[Erstellen]
Dokumentation der Vorlage