Vorlage:Lead/Inner: Unterschied zwischen den Versionen
Aus Offene Naturführer
(next step) |
(fix 1) |
||
Zeile 117: | Zeile 117: | ||
// 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}}}<!-- | -->{{#if: {{{scientificname}}}<!-- | ||
// THEN: NEW LAYOUT AND RULES (if scientificname present) | // THEN: NEW LAYOUT AND RULES (if scientificname present) | ||
− | |||
-->|{{#if: {{{resulttextoverride}}}|<!-- | -->|{{#if: {{{resulttextoverride}}}|<!-- | ||
// Explicit result text override -> ignore commonnames+scientificname, i.e. | // Explicit result text override -> ignore commonnames+scientificname, i.e. | ||
Zeile 144: | Zeile 131: | ||
// resulttext = one of: resulttextoverride, scientificname, or resultlink itself. | // resulttext = one of: resulttextoverride, scientificname, or resultlink itself. | ||
// resulttext and qualifier need white background and (if together <40 char) a common nowrap: | // resulttext and qualifier need white background and (if together <40 char) a common nowrap: | ||
− | --> | + | --><span class="leadresults{{#ifexpr:{{#len:{{{resulttext}}}{{{resultqualifier}}} }} < 40|<nowiki> </nowiki>nowrap}}"><!-- |
--><span class="leadout{{#ifexpr:{{#len:{{{resulttext}}} }} < 40|<nowiki> </nowiki>nowrap}}"> <!-- | --><span class="leadout{{#ifexpr:{{#len:{{{resulttext}}} }} < 40|<nowiki> </nowiki>nowrap}}"> <!-- | ||
-->{{Lead/MakeLink|resultlink={{{resultlink}}}|displaytext={{{resulttext}}}}}<!-- | -->{{Lead/MakeLink|resultlink={{{resultlink}}}|displaytext={{{resulttext}}}}}<!-- |
Version vom 31. August 2012, 17:15 Uhr
[Erstellen]
Dokumentation der Vorlage