Template:TemplateData: Difference between revisions

From CrossCode Wiki
Jump to navigation Jump to search
m (Use consistent column widths)
(Support generating MediaWiki TemplateData)
Line 1: Line 1:
<noinclude>{{doc}}</noinclude><includeonly>Do not use named parameter for <code>1</code> ... <code>x</code>. The first Parameter will be automatically marked as <code>1</code>, the second as <code>2</code> and so on.
{{Doc}}
 
<onlyinclude><includeonly><!--
{| class="wikitable" style="width:100%"
--><p>Do not use named parameter for <code>1</code> ... <code>x</code>. The first Parameter will be automatically marked as <code>1</code>, the second as <code>2</code> and so on.</p>
{| class="wikitable sortable" style="width: 100%;"
|-
|-
! style="width: 25%;" scope="col" colspan="2" | Parameter
! style="width: 25%;" scope="col" colspan="2" | Parameter
Line 8: Line 9:
! style="width: 10%;" scope="col" | Status
! style="width: 10%;" scope="col" | Status
|-
|-
{{#vardefine:templateData-convert|<!--
-->{{#expr:<!--
-->{{#ifeq:{{SUBPAGENAME}}|doc<!--
-->|{{WsBool|{{{debug|}}}}}<!--
-->|not{{WsBool|{{{noConvert|}}}}}<!--
-->}}<!--
-->}}<!--
-->}}<!--
-->{{#vardefine:templateData-params}}
{{{1}}}
{{{1}}}
|}
|}
See [[Template:TemplateData]] and [[Template:TemplateData/entry]] for more information about the parameter list and [[Template:TemplateData/entry#Data Dictionary Notation (DDN) for types|DDNCode]] for more information about types and the DDN Notation</includeonly>
<p>See [[Template:TemplateData]] and [[Template:TemplateData/entry]] for more information about the parameter list and [[Template:TemplateData/entry#Data Dictionary Notation (DDN) for types|DDNCode]] for more information about types and the DDN Notation</p><!--
-->{{#ifexpr:{{#var:templateData-convert}}and{{#if:{{#var:templateData-params}}|1|0}}|<nowiki/>
<div class="{{#ifeq:{{WsBool|{{{debug|1}}}}}|0|wds-is-hidden|mw-collapsible collapse" style="display: flow-root;}}"><!--
-->{{#tag:templatedata|
{{(}}
"params": {{(}}{{#var:templateData-params}}
{{)}}
{{)}}
}}</div>
}}<!--
-->{{#vardefine:templateData-params}}<!--
-->{{#vardefine:templateData-convert}}<!--
--></includeonly></onlyinclude>

Revision as of 21:59, 9 May 2021

File:Template-info.svg Template Documentation

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.

{{{1}}}
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}}