Vorlage:Lead/Inner: Unterschied zwischen den Versionen

Aus Offene Naturführer
Wechseln zu: Navigation, Suche
(Test removal of part 0: semantic properties and categories)
(semantic properties are back; fix for resulttext without result-link case)
Zeile 2: Zeile 2:
 
[[Category:Single-access key templates]]
 
[[Category:Single-access key templates]]
 
</noinclude><includeonly><!--
 
</noinclude><includeonly><!--
 +
// PART 0. Semantic properties and hidden category for SMW forms
 +
-->{{#switch: {{CONTENTLANGUAGE}}<!--
 +
 +
// German: Deutschsprachige Attribute
 +
-->|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!
 +
 +
! 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
 
-->{{#ifeq: {{{leadID}}}|{{#var: decisiontreePreviousCouplet}}<!--
 
-->{{#ifeq: {{{leadID}}}|{{#var: decisiontreePreviousCouplet}}<!--
Zeile 109: Zeile 141:
 
     // THEN http-link:
 
     // THEN http-link:
 
     -->|[{{{resultlink}}} {{{resulttext}}}]<!--
 
     -->|[{{{resultlink}}} {{{resulttext}}}]<!--
     // ELSE
+
     // ELSE wiki link or result-text-only (non-link).
       -->|{{#if:{{{resultlink|}}}<!--
+
       -->{{#if: {{{resultlink}}}<!--
       // THEN wiki-link showing resulttext:
+
       // THEN
      -->|[[{{{resultlink}}}|{{{resulttext}}}]]<!--
+
        -->|[[{{{resultlink}}}|{{{resulttext}}}]]<!--
       // ELSE linking and displaying resulttext:
+
       // ELSE
      -->|[[{{StripFormatting|{{{resulttext}}}}}|{{{resulttext}}}]]<!--
+
        -->|{{{resulttext}}}<!--
       // END (if resultlink)
+
       // END resultlink
 
       -->}}<!--
 
       -->}}<!--
 
     // END (if http-link)
 
     // END (if http-link)

Version vom 3. September 2012, 13:41 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:40 von https://offene-naturfuehrer.de/web/Vorlage:Lead/Inner