Template:TemplateData: Difference between revisions

From CrossCode Wiki
Jump to navigation Jump to search
(Add `partial` parameter)
(Improve support for the `partial` parameter)
Line 1: Line 1:
{{Doc}}
{{Doc}}
<onlyinclude><includeonly><!--
<onlyinclude><includeonly><!--
-->{{#ifexpr:{{#if:{{{1|}}}|1|not{{WsBool|{{#var:templateData-continue}}}}or{{WsBool|{{{noConvert|}}}}}}}|<!--
--><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>
--><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%;"
{{(!}} class="wikitable sortable" style="width: 100%;"
|-
{{!}}-
! style="width: 25%;" scope="col" colspan="2" | Parameter
! style="width: 25%;" scope="col" colspan="2" {{!}} Parameter
! style="width: 40%;" scope="col" | Description
! style="width: 40%;" scope="col" {{!}} Description
! style="width: 25%;" scope="col" | Type
! style="width: 25%;" scope="col" {{!}} Type
! style="width: 10%;" scope="col" | Status
! style="width: 10%;" scope="col" {{!}} Status
|-
{{!}}-
{{#vardefine:templateData-convert|<!--
{{#vardefine:templateData-convert|<!--
-->{{#expr:<!--
-->{{#expr:<!--
Line 16: Line 17:
-->}}<!--
-->}}<!--
-->}}<!--
-->}}<!--
-->}}<!--
-->{{#ifexpr:{{#var:templateData-convert}}and(not{{#var:templateData-continue|0}})<!--
-->|{{#vardefine:templateData-params}}<!--
-->|{{#vardefine:templateData-continue}}<!--
-->}}
-->}}
{{{1}}}
{{{1}}}
|}
{{!)}}
<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><!--
<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}}<!--
-->}}<!--
-->{{#ifeq:{{#var:templateData-convert}}|1<!--
-->|{{#ifeq:{{WsBool|{{{partial|}}}}}|0<!--
-->|{{#ifeq:{{WsBool|{{{partial|}}}}}|0<!--
-->|<nowiki/>
-->|{{#if:{{#var:templateData-params}}<!--
<div class="{{#ifeq:{{WsBool|{{{debug|}}}}}|0|wds-is-hidden|mw-collapsible collapse" style="display: flow-root;}}"><!--
-->|<nowiki/>
<div class="{{#ifeq:{{WsBool|{{{debug|}}}}}|0|wds-is-hidden|mw-collapsible mw-collapsed" style="display: flow-root;}}"><!--
-->{{#tag:templatedata|
-->{{#tag:templatedata|
{{(}}
{{(}}
Line 34: Line 33:
{{)}}
{{)}}
}}</div><!--
}}</div><!--
-->{{#vardefine:templateData-params}}<!--
-->{{#vardefine:templateData-params}}<!--
-->}}<!--
-->|{{#vardefine:templateData-continue|1}}<!--
-->|{{#vardefine:templateData-continue|1}}<!--
-->}}<!--
-->}}<!--

Revision as of 22:48, 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}}