Difference between revisions of "Template:TemplateData header"

Jump to navigation Jump to search
Fix broken transclusion including the <translate> tags
>ExE Boss
(Prepare for changing the default of the `false` parameter of {{IsDocSubpage}})
>ExE Boss
(Fix broken transclusion including the <translate> tags)
 
(One intermediate revision 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|}}}}}<!--
Line 12: Line 13:
-->}}<!--
-->}}<!--
-->}}
-->}}
{{#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 ==
Anonymous user

Navigation menu