Template:TemplateData: Difference between revisions

From CrossCode Wiki
Jump to navigation Jump to search
m (Fixup revision 18117)
m (Correctly define the variable: `templateData‑convert`)
Line 1: Line 1:
{{Doc}}
{{Doc}}
<onlyinclude><includeonly><!--
<onlyinclude><includeonly><!--
-->{{#vardefine:templateData-convert|{{#expr:not{{WsBool|{{{noConvert|}}}}}}}}}<!--
-->{{#ifexpr:{{#if:{{{1|}}}|1|not{{WsBool|{{#var:templateData-continue}}}}or{{WsBool|{{{noConvert|}}}}}}}|<!--
-->{{#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>
Line 10: Line 11:
! style="width: 10%;" scope="col" {{!}} Status
! style="width: 10%;" scope="col" {{!}} Status
{{!}}-
{{!}}-
{{#vardefine:templateData-convert<!--
-->|{{#expr:not{{WsBool|{{{noConvert|}}}}}}}<!--
-->}}
{{{1}}}
{{{1}}}
{{!)}}
{{!)}}
Line 19: Line 17:
-->{{#ifeq:{{#var:templateData-convert}}|1<!--
-->{{#ifeq:{{#var:templateData-convert}}|1<!--
-->|{{#ifeq:{{WsBool|{{{partial|}}}}}|0<!--
-->|{{#ifeq:{{WsBool|{{{partial|}}}}}|0<!--
-->|{{#if:{{#var:templateData-params}}<!--
-->|{{#vardefine:templateData-continue}}<!--
-->{{#if:{{#var:templateData-params}}<!--
-->|<nowiki/>
-->|<nowiki/>
<div class="{{#ifeq:{{WsBool|{{{debug|}}}}}|0|wds-is-hidden|mw-collapsible mw-collapsed" style="display: flow-root;}}"><!--
<div class="{{#ifeq:{{WsBool|{{{debug|}}}}}|0|wds-is-hidden|mw-collapsible mw-collapsed" style="display: flow-root;}}"><!--

Revision as of 23:12, 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}}