Difference between revisions of "Template:TemplateData header"
From Polyphasic Sleep Wiki
(Replace {{Template error report}} with {{Template parameter usage}} – per edit request) |
MediaWiki>Shirayuki m (dummy edit to update translation pages) |
||
Line 1: | Line 1: | ||
− | <div class="templatedata-header">{{#if:{{{noheader|}}}|< | + | <noinclude> |
− | + | <languages/> | |
− | + | </noinclude>{{#switch:<translate></translate> | |
− | + | | = | |
− | -->This is the | + | <div class="templatedata-header">{{#if:{{{noheader|}}}| |<translate><!--T:1--> This is the [[<tvar|1>Special:MyLanguage/Help:TemplateData</>|TemplateData]] documentation for this template used by [[<tvar|2>Special:MyLanguage/VisualEditor</>|VisualEditor]] and other tools.</translate>}} |
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | ''' | + | '''{{{1|{{BASEPAGENAME}}}}}''' |
− | </div><includeonly>< | + | </div><includeonly>{{#ifeq:{{SUBPAGENAME}}|sandbox||[[Category:TemplateData documentation]]}}</includeonly> |
+ | | #default= | ||
+ | {{#invoke:Template translation|renderTranslatedTemplate|template=Template:TemplateData header|noshift=1|uselang={{{uselang|{{int:lang}}}}}}} | ||
+ | }}<noinclude> | ||
+ | {{Documentation|content= | ||
− | + | Inserts a brief header for the template data section. Adds the page to [[:Category:TemplateData documentation]]. | |
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | }} | + | == Usage == |
+ | <pre> | ||
+ | ==TemplateData== or ==Parameters== or ==Usage== | ||
+ | {{TemplateData header}} | ||
+ | <templatedata>{ | ||
+ | ... | ||
+ | }</templatedata> | ||
+ | </pre> | ||
− | + | Use <code><nowiki>{{TemplateData header|Template name}}</nowiki></code> to display a name for the template other than the default, which is [[Help:Magic_words#Variables|<nowiki>{{BASEPAGENAME}}</nowiki>]]. | |
+ | :{{(}}{{!}} | ||
+ | {{!}}{{TemplateData header|Template name}} | ||
+ | {{!}}{{)}} | ||
+ | |||
+ | Use <code><nowiki>{{TemplateData header|nolink=1}}</nowiki></code> to omit the [[Help:Link#Wikilinks|wikilink]] from the word "TemplateData" in the header text, for instances where it is already linked outside this template. | ||
+ | :{{(}}{{!}} | ||
+ | {{!}}{{TemplateData header|nolink=1}} | ||
+ | {{!}}{{)}} | ||
+ | |||
+ | Use <code><nowiki>{{TemplateData header|noheader=1}}</nowiki></code> to omit the first sentence of the header text. | ||
+ | :{{(}}{{!}} | ||
+ | {{!}}{{TemplateData header|noheader=1}} | ||
+ | {{!}}{{)}} | ||
+ | |||
+ | ==Parameters== | ||
+ | {{TemplateData header/doc}} | ||
+ | |||
+ | }} | ||
+ | </noinclude> |
Revision as of 22:45, 6 July 2020
This is the TemplateData documentation for this template used by VisualEditor and other tools.
TemplateData header
50px Template documentation
Inserts a brief header for the template data section. Adds the page to Category:TemplateData documentation.
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 documentation for this template used by VisualEditor and other tools.
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 documentation for this template used by VisualEditor and other tools.
TemplateData header
Use {{TemplateData header|noheader=1}}
to omit the first sentence of the header text.
TemplateData header