Difference between revisions of "Template:TemplateData header"
Jump to navigation
Jump to search
>ExE Boss (Add pages to translated categories) |
>ExE Boss (Add `editlinks` and `docpage` parameters) |
||
Line 2: | Line 2: | ||
<languages/> | <languages/> | ||
</noinclude> | </noinclude> | ||
<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>}} | <div class="templatedata-header"><!-- | ||
-->{{#if:{{yesno|{{{editlinks|}}}}}<!-- | |||
-->|{{#if:{{IsDocSubpage}}||<!-- | |||
-->{{Navbar|{{{docpage|{{BASEPAGENAME}}/doc}}}|plain=1|brackets=1|style=float: {{#switch:{{dir|{{pagelang2}}}}|rtl=left|#default=right}};}}<!-- | |||
-->}}<!-- | |||
-->}} | |||
{{#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}}}}}''' | '''{{{1|{{BASEPAGENAME}}}}}''' | ||
Line 12: | Line 18: | ||
== Usage == | == Usage == | ||
{{#tag:syntaxhighlight| | |||
==TemplateData== or ==Parameters== or ==Usage== | ==TemplateData== or ==Parameters== or ==Usage== | ||
{{TemplateData header}} | {{((}}TemplateData header{{))}} | ||
{{^(}}templatedata{{)^}}{ | |||
... | ... | ||
} | }{{^(}}/templatedata{{)^}} | ||
|lang=html | |||
}} | |||
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>]]. | 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>]]. | ||
<dl><dd> | |||
{{TemplateData header|Template name}} | |||
</dd></dl> | |||
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. | 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. | ||
<dl><dd> | |||
{{TemplateData header|nolink=1}} | |||
</dd></dl> | |||
Use <code><nowiki>{{TemplateData header|noheader=1}}</nowiki></code> to omit the first sentence of the header text. | Use <code><nowiki>{{TemplateData header|noheader=1}}</nowiki></code> to omit the first sentence of the header text. | ||
<dl><dd> | |||
{{TemplateData header|noheader=1}} | |||
</dd></dl> | |||
==Parameters== | ==Parameters== |
Revision as of 02:24, 1 June 2021
<languages/>
<translate> 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>
TemplateData header
Lua error in Module:TNT at line 158: Missing JsonConfig extension; Cannot load https://commons.wikimedia.org/wiki/Data:I18n/Documentation.tab.[[Category:Template documentation pages{{#translation:}}]]