Änderungen

Zur Navigation springen Zur Suche springen
51 Bytes hinzugefügt ,  19:27, 5. Sep. 2020
Array | Landschafts-Informationen
Zeile 185: Zeile 185:  
/// Formularblock.Landschafts-Informationen
 
/// Formularblock.Landschafts-Informationen
 
//////////////////////////////////////////////////////////////
 
//////////////////////////////////////////////////////////////
/// Alle Werte in ein Array
+
/// Name dieses Block
-->{{#arraydefine: Landschafts-Informationen<!--
+
-->{{#vardefine: Array | Landschafts-Informationen }}<!--
 +
/// Alle Keys in ein Array
 +
-->{{#arraydefine: Keys <!--
 
   -->| Landschaft , Klima , Flora , Fauna <!--
 
   -->| Landschaft , Klima , Flora , Fauna <!--
 
   -->| ,<!--
 
   -->| ,<!--
 
   -->|}}<!--
 
   -->|}}<!--
/// Einzelwerte in einzelne Attribute
+
/// Alle Values als Attribute anlegen
-->{{#if: {{{Landschaft |}}} <!--
+
-->{{#arraymap: {{#arrayprint:Keys|@//@}}<!--
   -->| {{#set: Landschaft = {{{Landschaft }}} }}<!--
+
   -->| @//@ <!--
   -->|}}<!--
+
   -->| @@KEY@@ <!--
-->{{#if: {{{Klima |}}} <!--
+
  -->| {{#if: {{{@@KEY@@|}}}<!--
  -->| {{#set: Klima = {{{Klima }}} }}<!--
+
    -->| <!--
  -->|}}<!--
+
    -->{{#arraymap: {{{@@KEY@@}}} | , | @@VALUE@@ | {{#set: @@KEY@@ = @@VALUE@@ }} | }}<!--
-->{{#if: {{{Flora |}}} <!--
+
    -->{{#arraydefine: {{#var:Array}} | {{#arrayprint:{{#var:Array}}|@//@}} @//@ @@KEY@@ }}<!--
  -->| {{#set: Flora = {{{Flora }}} }}<!--
+
    -->|}}<!--
  -->|}}<!--
  −
-->{{#if: {{{Fauna |}}} <!--
  −
  -->| {{#set: Fauna = {{{Fauna }}} }}<!--
   
   -->|}}<!--
 
   -->|}}<!--
 
//////////////////////////////////////////////////////////////
 
//////////////////////////////////////////////////////////////

Navigationsmenü