Vorlage:TemplateData/json

From Wikiup


Generate TemplateData as JSON source code

Template parameters

Descriptiondescription
Brief description of template functionality. Important keywords in the beginning. Multilingual text.
Example
This explanation of template functionality on top.
List of parametersparams
List of template parameters in desired order using Template:TemplateData/param
Source formattingformat
Source formatting in target page
Default
inline
Example
block

Generate TemplateData as JSON source code

Template parameters

This template prefers block formatting of parameters.

ParameterDescriptionTypeStatus
Descriptiondescription

Brief description of template functionality. Important keywords in the beginning. Multilingual text.

Example
This explanation of template functionality on top.
Stringrequired
List of parametersparams

List of template parameters in desired order using Template:TemplateData/param

Stringoptional
Source formattingformat

Source formatting in target page

Default
inline
Example
block
Lineoptional

Kopiervorlage

Nur diese Vorlage:

{{TemplateData/json
|description=
|params=
|format=
}}

Mit umgebender Template:TemplateData sowie Untervorlagen:

{{TemplateData|JSON=
{{TemplateData/json
|description={{TemplateData/I18N
  |en=
  |de=
  }}
|params={{TemplateData/param|
   |label={{TemplateData/I18N
     |en=
     |de=
     }}
   |description={{TemplateData/I18N
     |en=
     |de=
     }}
   |type=
   |required=
   |suggested=
   |default=
   |example=
   }}
|format=
}}
|TOC=1}}

Beispiel

Auszug aus Template:delete(englisch)

{{TemplateData|JSON=
{{TemplateData/json
|description={{TemplateData/I18N
  |en=Tag page for '''speedy deletion'''.<br />
Place the template transclusion on uppermost top of the referred page, please.
  |de=Stellt einen '''Schnelllöschantrag'''.<br />
Die Vorlage bitte ganz oben in der Seite einfügen!
  }}
|params={{TemplateData/param|1
   |label={{TemplateData/I18N
     |en=Reason
     |de=Begründung
     }}
   |description={{TemplateData/I18N
     |en=Reason for the request, and signature (<code>~~&#126;~</code>)
     |de=Begründung für den Schnelllöschantrag und Signatur (<code>~~&#126;~</code>)
     }}
   |type=content
   |required=0
   |suggested=1
   |example={{TemplateData/I18N
     |en=Replaced by white elephant. --~~&#126;~
     |de=Ersetzt durch weißen Elephanten. --~~&#126;~
     }}
   }}
|format=
}}
|TOC=1}}

Siehe auch

Lua

Verwendetes Modul: JSONutil