Vorlage:Feldgenerator: Unterschied zwischen den Versionen

Aus Splitterwiki
Zur Navigation springen Zur Suche springen
(upper case)
(Änderung 143063 von Maggus (Diskussion) rückgängig gemacht.)
Markierung: Rückgängigmachung
Zeile 42: Zeile 42:
  
 
### zeige das Label an
 
### zeige das Label an
--><td class="formtable.Label" ><!--
+
--><td class="formtable.label" ><!--
 
   -->{{#show: Attribut:{{#var:Attribut}} | ?Label# | default={{#var:Attribut}} }}<!--
 
   -->{{#show: Attribut:{{#var:Attribut}} | ?Label# | default={{#var:Attribut}} }}<!--
 
   --></td><!--
 
   --></td><!--
Zeile 56: Zeile 56:
 
### Attribut name
 
### Attribut name
 
-->{{#var:Attribut}}<!--
 
-->{{#var:Attribut}}<!--
### Input type
+
### input type
-->{{#show: Attribut:{{#var:Attribut}} | ?Input type# | intro= {{!}}Input type= }}<!--
+
-->{{#show: Attribut:{{#var:Attribut}} | ?input type# | intro= {{!}}input type= }}<!--
 
### Auswahlliste
 
### Auswahlliste
-->{{#if: {{#show: Attribut:{{#var:Attribut}} | ?Values from }}<!--
+
-->{{#if: {{#show: Attribut:{{#var:Attribut}} | ?values from }}<!--
   -->| {{#show: Attribut:{{#var:Attribut}} | ?Values from# | intro= {{!}} }} <!--
+
   -->| {{#show: Attribut:{{#var:Attribut}} | ?values from# | intro= {{!}} }} <!--
     --> {{#show: Attribut:{{#var:Attribut}} | ?Values# | intro= = }} <!--
+
     --> {{#show: Attribut:{{#var:Attribut}} | ?values# | intro= = }} <!--
 
   -->|}}<!--
 
   -->|}}<!--
### Label
+
### label
-->{{#show: Attribut:{{#var:Attribut}} | ?Label# | default={{#var:Attribut}} | intro = {{!}}Label=  }}<!--
+
-->{{#show: Attribut:{{#var:Attribut}} | ?label# | default={{#var:Attribut}} | intro = {{!}}label=  }}<!--
 
### Hilfetext Attribut
 
### Hilfetext Attribut
 
-->{{#show: Attribut:{{#var:Attribut}} | ?Hilfetext Attribut# | intro = {{!}}tooltip=  }}<!--
 
-->{{#show: Attribut:{{#var:Attribut}} | ?Hilfetext Attribut# | intro = {{!}}tooltip=  }}<!--
### Placeholder
+
### placeholder
-->{{#show: Attribut:{{#var:Attribut}} | ?Placeholder# | intro = {{!}}Placeholder=  }}<!--
+
-->{{#show: Attribut:{{#var:Attribut}} | ?placeholder# | intro = {{!}}placeholder=  }}<!--
### Mandatory
+
### mandatory
-->{{#if: {{#show: Attribut:{{#var:Attribut}} | ?Mandatory }}<!--
+
-->{{#if: {{#show: Attribut:{{#var:Attribut}} | ?mandatory }}<!--
   -->| {{!}}Mandatory <!--
+
   -->| {{!}}mandatory <!--
 
   -->}}<!--
 
   -->}}<!--
### Existing values only
+
### existing values only
   -->{{#if: {{#show: Attribut:{{#var:Attribut}} | ?Existing values only}}<!--
+
   -->{{#if: {{#show: Attribut:{{#var:Attribut}} | ?existing values only}}<!--
   -->| {{!}}Existing values only<!--
+
   -->| {{!}}existing values only<!--
 
   -->}}<!--
 
   -->}}<!--
### Autogrow
+
### autogrow
   -->{{#if: {{#show: Attribut:{{#var:Attribut}} | ?Autogrow}}<!--
+
   -->{{#if: {{#show: Attribut:{{#var:Attribut}} | ?autogrow}}<!--
   -->| {{!}}Autogrow{{!}}rows=1<!--
+
   -->| {{!}}autogrow{{!}}rows=1<!--
 
   -->}}<!--
 
   -->}}<!--
### Uploadable
+
### uploadable
   -->{{#if: {{#show: Attribut:{{#var:Attribut}} | ?Uploadable }}<!--
+
   -->{{#if: {{#show: Attribut:{{#var:Attribut}} | ?uploadable }}<!--
   -->| {{!}}Uploadable{{!}}Image preview <!--
+
   -->| {{!}}uploadable{{!}}image preview <!--
 
   -->}}<!--
 
   -->}}<!--
  

Version vom 4. Oktober 2020, 10:54 Uhr

Dies ist die Vorlage „Feldgenerator“. Sie sollte im folgenden Format genutzt werden:

{{Feldgenerator|<Attribut>}}

wobei <Attribut> (Pflichtangabe) der Attributsname ist, aus dem heraus das Formularfeld generiert wird (ohne den Namespace, also zum Beispiel "Wappen" statt "Attribut:Wappen").

Beispiel

Eingabe

{{Feldgenerator
  | Label
}}

Ausgabe

LabelDer siohtbare Feldbezeichner; ohne Eintrag wird der Feldname genommen{{{field|Label|input type=text|label=Label|tooltip=Der siohtbare Feldbezeichner; ohne Eintrag wird der Feldname genommen|placeholder=}}}

Klick auf „Bearbeiten“, um den Quelltext der Vorlage anzusehen.

Bearbeiten