Template:TemplateData

From OtherX
Revision as of 19:29, 14 January 2024 by OtherXAdmin (talk | contribs) (Created page with "<includeonly>{{#if:{{{noheader|}}}||==Template data==}} <table class="templatedata mw-collapsible mw-collapsed" style="text-align:center" data-expandtext="show" data-collapsetext="hide"> <tr><th style="min-width:400px">Show/hide template's data</th></tr> <tr><td> '''The following information is used by extensions and applications, such as VisualEditor, to help users implement this template onto pages. Please ensure that it is up-to-date.''' {{{1|}}} </td></tr> </table>...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search
Template documentation
This documentation is transcluded from Template:TemplateData/doc. [edit] [history] [purge]

This template should be used on other templates' documentation pages when adding template data using Extension:TemplateData. This template accepts one unnamed parameter, which should be the the whole templatedata text. Also adds Category:Templates using TemplateData to pages.

{{#if:||==Template data==}}

Show/hide template's data

The following information is used by extensions and applications, such as VisualEditor, to help users implement this template onto pages. Please ensure that it is up-to-date.


<templatedata> { "description": "Used on template docs to enclose the templatedata parser tag", "params": { "1": {

           "label": "TemplateData",
           "description": "The body of the TemplateData text.",
           "type": "string",

"required": true },

       "noheader": {
           "label": "Noheader",
           "description": "Set to 'yes' to disable header.",
           "type": "string",
           "default": "'no'"
       },
       "nocat": {
           "label": "Nocat",
           "description": "Set to 'yes' to suppress adding category to pages. Useful for examples.",
           "type": "string",
           "default": "'no'"
       }

} } </templatedata>

{{#if:yes||}}