Difference between revisions of "Template:TemplateData header"

From WPRDC Wiki
Jump to navigation Jump to search
>ExE Boss
(Add `editlinks` and `docpage` parameters)
>ExE Boss
(Fix broken transclusion including the <translate> tags)
 
(6 intermediate revisions by the same user not shown)
Line 1: Line 1:
<noinclude>
<noinclude>
<languages/>
<languages/>
</noinclude>
<onlyinclude>{{#switch:<translate></translate>
|=
<div class="templatedata-header"><!--
<div class="templatedata-header"><!--
-->{{#if:{{yesno|{{{editlinks|}}}}}<!--
-->{{#if:{{yesno|{{{editlinks|}}}}}<!--
-->|{{#if:{{IsDocSubpage}}||<!--
-->|{{#ifexpr:<!--
-->{{Navbar|{{{docpage|{{BASEPAGENAME}}/doc}}}|plain=1|brackets=1|style=float: {{#switch:{{dir|{{pagelang2}}}}|rtl=left|#default=right}};}}<!--
-->{{#if:{{{docpage|}}}<!--
-->|{{#ifeq:{{FULLPAGENAME}}|{{transclude|{{{docpage}}}}}|0|1}}<!--
-->|not{{IsDocSubpage|false=0}}<!--
-->}}<!--
-->|{{Navbar|{{{docpage|{{BASEPAGENAME}}/doc}}}|plain=1|brackets=1|style=float:{{dir|{{pagelang2}}|left|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>}}
{{#if:{{{noheader|}}}||<translate><!--T:1--> This is the [[<tvar name=1>Special:MyLanguage/Help:TemplateData</tvar>|TemplateData]] documentation for this template used by [[<tvar name=2>Special:MyLanguage/VisualEditor</tvar>|VisualEditor]] and other tools.</translate>}}


'''{{{1|{{BASEPAGENAME}}}}}'''
'''{{{1|{{BASEPAGENAME}}}}}'''
</div><includeonly>{{#ifeq:{{SUBPAGENAME}}|sandbox||[[Category:TemplateData documentation{{#translation:}}]]}}</includeonly><!--
</div><includeonly>{{#ifeq:{{SUBPAGENAME}}|sandbox|<!--
--><noinclude>
-->|{{#if:{{IsDocSubpage|false=}}<!--
-->|[[Category:TemplateData documentation{{#translation:}}]]<!--
-->|[[Category:Templates using TemplateData{{#translation:}}]]<!--
-->}}<!--
-->}}</includeonly>
| #default=
  {{#invoke:Template translation|renderTranslatedTemplate|template=Template:TemplateData header|noshift=1|uselang={{#if:{{pagelang}}|{{pagelang}}|{{int:lang}}}}}}
}}</onlyinclude>
{{Documentation|content=
{{Documentation|content=


Inserts a brief header for the template data section. Adds the page to [[:Category:TemplateData documentation{{#translation:}}]].
Inserts a brief header for the template data section. Adds the /doc subpage to [[:Category:TemplateData documentation{{#translation:}}]] and the template page to [[:Category:Templates using TemplateData{{#translation:}}]].


== Usage ==
== Usage ==
Line 30: Line 42:
<dl><dd>
<dl><dd>
{{TemplateData header|Template name}}
{{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.
<dl><dd>
{{TemplateData header|nolink=1}}
</dd></dl>
</dd></dl>



Latest revision as of 05:10, 13 June 2021

<languages/>

This is the TemplateData documentation for this template used by VisualEditor and other tools.

TemplateData header

[[Category:Templates using TemplateData{{#translation:}}]]

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:}}]]