TemplateData header

From Eating Asturias, the Encyclopedia of Asturian Gastronomy
m (remove translation links)
m (1 revision imported: newest versions)
 
(7 intermediate revisions by 3 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
-->}}<!--
-->}}
-->}}


'''TemplateData for {{{1|{{BASEPAGENAME}}}}}'''
</div><includeonly><!--


'''{{{1|{{BASEPAGENAME}}}}}'''
check parameters
</div><includeonly>{{#ifeq:{{SUBPAGENAME}}|sandbox|<!--
-->{{#invoke:Check for unknown parameters|check
-->|{{#if:{{IsDocSubpage|false=}}<!--
|unknown={{template other|1=[[Category:Pages using TemplateData header with unknown parameters|_VALUE_]]}}
-->|[[Category:TemplateData documentation{{#translation:}}]]<!--
|template=Template:TemplateData header
-->|[[Category:Templates using TemplateData{{#translation:}}]]<!--
|1 |nolink |noheader
-->}}<!--
|preview=<div class="error" style="font-weight:normal">Unknown parameter '_VALUE_' in [[Template:TemplateData header]].</div>
-->}}</includeonly>
}}<!--
| #default=
-->{{template other|{{sandbox other||
  {{#invoke:Template translation|renderTranslatedTemplate|template=Template:TemplateData header|noshift=1|uselang={{#if:{{pagelang}}|{{pagelang}}|{{int:lang}}}}}}
[[Category:Templates using TemplateData]]
}}</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:}}]].
}}}}</includeonly><!--


== Usage ==
--><noinclude>{{Documentation}}</noinclude>
{{#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>]].
<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 12:22, 24 January 2025

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