Template:TemplateData header: Difference between revisions

From Goldmask Wiki
Jump to navigation Jump to search
w>Clump
m (Reverted edits by 105.113.40.185 (talk) to last version by Kaganer)
m (1 revision imported)
 
(2 intermediate revisions by 2 users not shown)
Line 1: Line 1:
<noinclude>
<div class="templatedata-header">{{#if:{{{noheader|}}}|<!--
<languages/>
noheader:
<onlyinclude>{{#switch:<translate></translate>
-->{{Template parameter usage|{{{1|{{BASEPAGENAME}}}}}|based=y}}|<!--
|=
+header:
<div class="templatedata-header"><!--
-->This is the {{#if:{{{nolink|}}}|<!--
-->{{#if:{{yesno|{{{editlinks|}}}}}<!--
  +header, nolink TD
-->|{{#ifexpr:<!--
  -->TemplateData|<!--
-->{{#if:{{{docpage|}}}<!--
  +header,  +link [[TD]]; DEFAULT:
-->|{{#ifeq:{{FULLPAGENAME}}|{{transclude|{{{docpage}}}}}|0|1}}<!--
-->[[Wikipedia:TemplateData|TemplateData]]}}<!--
-->|not{{IsDocSubpage|false=0}}<!--
  e.o. #if:nolink; DEFAULT:
-->}}<!--
--> for this template used by [[mw:Extension:TemplateWizard|TemplateWizard]], [[Wikipedia:VisualEditor|VisualEditor]] and other tools. {{Template parameter usage|{{{1|{{BASEPAGENAME}}}}}|based=y}}<!--
-->|{{Navbar|{{{docpage|{{BASEPAGENAME}}/doc}}}|plain=1|brackets=1|style=float:{{dir|{{PAGELANGUAGE}}|left|right}};}}<!--
  e.o. #if:noheader
-->}}<!--
-->}}
-->}}
{{#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}}}}}'''
'''TemplateData for {{{1|{{BASEPAGENAME}}}}}'''
</div><includeonly>{{#ifeq:{{SUBPAGENAME}}|sandbox|<!--
</div><includeonly><!--
-->|{{#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=


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:}}]].
check parameters
-->{{#invoke:Check for unknown parameters|check
|unknown={{template other|1=[[Category:Pages using TemplateData header with unknown parameters|_VALUE_]]}}
|template=Template:TemplateData header
|1 |nolink |noheader
|preview=<div class="error" style="font-weight:normal">Unknown parameter '_VALUE_' in [[Template:TemplateData header]].</div>
}}<!--
-->{{template other|{{sandbox other||
[[Category:Templates using TemplateData]]


== Usage ==
}}}}</includeonly><!--
{{#tag:syntaxhighlight|
==TemplateData== or ==Parameters== or ==Usage==
{{((}}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>]].
--><noinclude>{{Documentation}}</noinclude>
<dl><dd>
{{TemplateData header|Template name}}
</dd></dl>
 
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==
{{TemplateData header/doc}}
 
}}
</noinclude>

Latest revision as of 19:49, 13 December 2023

This is the TemplateData for this template used by TemplateWizard, VisualEditor and other tools. See a monthly parameter usage report for Template:TemplateData header in articles based on its TemplateData.

TemplateData for TemplateData header