163
edits
m (1 revision imported: Importing template code from MediaWiki) |
No edit summary |
||
Line 13: | Line 13: | ||
-->}}<!-- | -->}}<!-- | ||
-->}} | -->}} | ||
{{#if:{{{noheader|}}}||<translate><!--T:1--> This is the | {{#if:{{{noheader|}}}||<translate><!--T:1--> This is the TemplateData documentation for this template used by VisualEditor and other tools.</translate>}} | ||
'''{{{1|{{BASEPAGENAME}}}}}''' | '''{{{1|{{BASEPAGENAME}}}}}''' | ||
</div><includeonly>{{#ifeq:{{SUBPAGENAME}}|sandbox|<!-- | </div><includeonly>{{#ifeq:{{SUBPAGENAME}}|sandbox|<!-- | ||
-->|{{#if:{{IsDocSubpage|false=}}<!-- | -->|{{#if:{{IsDocSubpage|false=}}<!-- | ||
-->|[[Category:TemplateData documentation | -->|[[Category:TemplateData documentation]]<!-- | ||
-->|[[Category:Templates using TemplateData | -->|[[Category:Templates using TemplateData]]<!-- | ||
-->}}<!-- | -->}}<!-- | ||
-->}}</includeonly> | -->}}</includeonly> | ||
| #default= | | #default= | ||
}}</onlyinclude> | }}</onlyinclude> | ||
{{Documentation|content= | {{Documentation|content= | ||
<!--T:3--> Inserts a brief header for the template data section. | |||
<!--T:4--> Adds the /doc subpage to {{ll|Category:TemplateData documentation}} and the template page to {{ll|Category:Templates using TemplateData}}. | |||
== Usage == <!--T:2--> | == Usage == <!--T:2--> | ||
{{#tag:syntaxhighlight| | {{#tag:syntaxhighlight| | ||
==TemplateData== or ==Parameters== or ==Usage== | ==TemplateData== or ==Parameters== or ==Usage== | ||
Line 42: | Line 41: | ||
}} | }} | ||
<!--T:5--> | <!--T:5--> | ||
Use {{ | Use {{tmpl|0=<code>{{((}}TemplateData header{{!}}$1{{))}}</code>|Template name}} to display a name for the template other than the default, which is {{ll|Help:Magic words#Variables|<nowiki>{{BASEPAGENAME}}</nowiki>}}. | ||
<dl><dd> | <dl><dd> | ||
Line 51: | Line 50: | ||
</dd></dl> | </dd></dl> | ||
<!--T:6--> | <!--T:6--> | ||
Use | Use <code><nowiki>{{TemplateData header|noheader=1}}</nowiki></code> to omit the first sentence of the header text. | ||
<dl><dd> | <dl><dd> | ||
Line 60: | Line 58: | ||
</dd></dl> | </dd></dl> | ||
==Parameters== <!--T:7--> | ==Parameters== <!--T:7--> | ||
{{TemplateData header/doc}} | {{TemplateData header/doc}} | ||
}} | }} | ||
</noinclude> | </noinclude> |