Content deleted Content added
Funandtrvl (talk | contribs) make easier to copy & paste |
Funandtrvl (talk | contribs) add example |
||
Line 1:
{{Documentation subpage}}
<!--
The {{tlx|TemplateData header}} template inserts a brief header for the template data section, and adds the page to [[:Category:Templates using TemplateData]].
Line 30:
|}
===Parameters===
{{TemplateData header}}
<templatedata>{
Line 55:
}
}</templatedata>
==Example==
:Using a collapse box for {{elc|Template:User}}:
{{nowiki template demo|code=<nowiki>
{{collapse top|title=TemplateData}}
{{TemplateData header|User}}
<templatedata>
{
"description": "This template is used to create a link to a user's user page (unless using {{Useranon}}), talk page, and contributions, and generates a special notification (aka 'ping').",
"params": {
"1": {
"label": "User name",
"type": "string",
"required": true,
"description": "The user name that you want to create links to and notify.",
"aliases":["user"]
},
"project": {
"label": "Sister project",
"type": "string",
"description": "Used to link to a sister project instead of the English Wikipedia. Use the standard interwiki prefix."
},
"lang": {
"label": "Other language project",
"type": "string",
"description": "Used to link to another language project. If used with the \"sister project\" parameter, links to another language of a sister project. Otherwise links to another language Wikipedia. Use the standard language code."
},
"separator": {
"label": "Separator",
"description": "Used to change the separator between the links. If unused, defaults to a dot."
}
}
}
</templatedata>
{{collapse bottom}}</nowiki>}}
==Tracking category==
==See also==
* {{clc|Category:Templates using TemplateData}}
▲* {{clc|Category:Pages using TemplateData header with unknown parameters}} – Tracking
* {{tl|Template parameter usage}}▼
* {{tl|Crude TemplateData}}
▲* {{tl|Template parameter usage}}
<includeonly>{{sandbox other||▼
<!-- Categories go here, and interwikis go in Wikidata -->▼
[[Category:TemplateData|header]]▼
▲<includeonly>{{sandbox other||
{{DEFAULTSORT:Templatedata Header}}
[[Category:Documentation header templates]]
}}</includeonly>
|