Template:TemplateData: Difference between revisions
Jump to navigation
Jump to search
m (Correctly define the variable: `templateData‑convert`) |
(Add `desc` and `format` parameters) |
||
Line 20: | Line 20: | ||
-->{{#if:{{#var:templateData-params}}<!-- | -->{{#if:{{#var:templateData-params}}<!-- | ||
-->|<nowiki/> | -->|<nowiki/> | ||
<div class="{{#ifeq:{{WsBool|{{{debug|}}}}}|0|wds-is-hidden|mw-collapsible | <div class="{{#ifeq:{{WsBool|{{{debug|1}}}}}|0|wds-is-hidden|mw-collapsible" style="display: flow-root;}}"><!-- | ||
-->{{#tag:templatedata| | -->{{#tag:templatedata| | ||
{{(}} | {{(}} | ||
"params": {{(}}{{#var:templateData-params}} | {{#if:{{{desc|}}}|"description": {{#invoke:Json|encode|{{{desc}}}}}}}<!-- | ||
{{)}} | -->{{#if:{{{format|}}}|{{#if:{{{desc|}}}|, | ||
"|"}}format": {{#invoke:Json|encode|{{{format}}}}}}}<!-- | |||
-->{{#if:{{{desc|}}}{{{format|}}}|, | |||
"|"}}params": {{#if:{{#var:templateData-params}}|{{(}} | |||
{{#var:templateData-params}} | |||
{{)}}|{{(}}{{)}}}} | |||
{{)}} | {{)}} | ||
}}</div><!-- | }}</div><!-- |
Revision as of 00:12, 11 May 2021
Template for creating a unified parameter format for templates
About
Creates a list that displays Template parameter in a unified format.
Parameter
Do not use named parameter for 1
... x
. The first Parameter will be automatically marked as 1
, the second as 2
and so on.
Parameter | Description | Type | Status |
---|
See Template:TemplateData and Template:TemplateData/entry for more information about the parameter list and DDNCode for more information about types and the DDN Notation
Examples
{{#lsth:Template:TemplateData/entry/doc|Examples}}