Template:Identity/doc: Difference between revisions
From Warwick Wiki
No edit summary |
No edit summary |
||
Line 1: | Line 1: | ||
{{tlx|identity}} acts as an identity function. That is, it takes a single input and returns that input. | {{tlx|identity}} acts as an identity function. That is, it takes a single input and returns that input. | ||
== TemplateData == | |||
<templatedata> | |||
{ | |||
"params": { | |||
"1": { | |||
"label": "input", | |||
"description": "The input to be returned.", | |||
"example": "foo", | |||
"type": "string", | |||
"required": true | |||
} | |||
}, | |||
"description": "This template acts as an identity function. That is, it takes a single input and returns that input. ", | |||
"format": "inline" | |||
} | |||
</templatedata> | |||
<includeonly>[[Category:Templates]]</includeonly><noinclude>[[Category:Template documentation]]</noinclude> | <includeonly>[[Category:Templates]]</includeonly><noinclude>[[Category:Template documentation]]</noinclude> |
Latest revision as of 22:48, 2 July 2025
{{identity}} acts as an identity function. That is, it takes a single input and returns that input.
TemplateData
This template acts as an identity function. That is, it takes a single input and returns that input.
Parameter | Description | Type | Status | |
---|---|---|---|---|
input | 1 | The input to be returned.
| String | required |