Template:TemplateData header: Difference between revisions
Remove Wikipedia-specific code |
m Visual aesthetic tweaks |
||
| Line 1: | Line 1: | ||
<div class="templatedata-header" style="line-height: 2. | <div class="templatedata-header" style="line-height: 2.25;>This is the {{#if:{{{nolink|}}}|TemplateData|[[wikipedia:Wikipedia:TemplateData|TemplateData]]}} for this template, used by [[mediawikiwiki:Extension:TemplateWizard|TemplateWizard]], [[wikipedia:Wikipedia:VisualEditor|VisualEditor]] and other tools.<br /> | ||
'''TemplateData for {{{1|{{BASEPAGENAME}}}}}'''</div><includeonly>{{#invoke:Check for unknown parameters|check|template=Template:TemplateData header|1|nolink|noheader|preview=<div class="error" style="font-weight: 400;">Unknown parameter '_VALUE_' in [[Template:TemplateData header]].</div>}}{{Template other|{{Sandbox other||[[Category:Templates using TemplateData]]}}}}</includeonly><noinclude> | <span style="font: 500 0.95rem 'Noto Serif', 'Times New Roman', 'Linux Libertine', 'Liberation Serif', 'Nimbus Roman', Times, serif;">TemplateData for '''{{{1|{{BASEPAGENAME}}}}}'''</span></div><includeonly>{{#invoke:Check for unknown parameters|check|template=Template:TemplateData header|1|nolink|noheader|preview=<div class="error" style="font-weight: 400;">Unknown parameter '_VALUE_' in [[Template:TemplateData header]].</div>}}{{Template other|{{Sandbox other||[[Category:Templates using TemplateData]]}}}}</includeonly><noinclude> | ||
{{Documentation}}</noinclude> | {{Documentation}}</noinclude> | ||
Latest revision as of 15:56, 25 November 2024
TemplateData for TemplateData header
The {{TemplateData header}} template inserts a brief header for the TemplateData section of template documentation, and adds the transcluding page to Category:Templates using TemplateData.
Usage
== TemplateData == or == Parameters == or == Usage ==
{{TemplateData header}}
<templatedata>{
…
}</templatedata>
Use {{TemplateData header|Template name}} to display a name for the template other than the default, which is {{BASEPAGENAME}}.
- This is the TemplateData for this template, used by TemplateWizard, VisualEditor and other tools.
TemplateData for Template name
Use {{TemplateData header|nolink=1}} to omit the wikilink from the word "TemplateData" in the header text, for instances where it is already linked outside this template.
- This is the TemplateData for this template, used by TemplateWizard, VisualEditor and other tools.
TemplateData for TemplateData header
Parameters
TemplateData for TemplateData header
Inserts a brief header for the TemplateData section of template documentation, and adds the page to Category:Templates using TemplateData
| Parameter | Description | Type | Status | |
|---|---|---|---|---|
| Template name | 1 | Used to display a name for the template other than the default of {{BASEPAGENAME}}
| Template | optional |
| Disable link | nolink | Omits the wikilink from the word 'TemplateData' in the header text when assigned any value; for instances where it is already linked outside this template.
| Line | optional |