Difference between revisions of "Template:TemplateData header"

From Railway Operation Simulator Wiki
Jump to navigation Jump to search
w>Evad37
(Replace {{Template error report}} with {{Template parameter usage}} – per edit request)
 
w>Shirayuki
m (Reverted edits by 147.30.100.70 (talk) to last version by Shirayuki)
Line 1: Line 1:
<div class="templatedata-header">{{#if:{{{noheader|}}}|<!--
+
<noinclude>
noheader:
+
<languages/>
-->{{Template parameter usage}}|<!--
+
</noinclude>
+header:
+
<div class="templatedata-header">{{#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>}}
-->This is the {{#if:{{{nolink|}}}|<!--
 
  +header, nolink TD
 
  -->TemplateData|<!--
 
  +header,  +link [[TD]]; DEFAULT:
 
-->[[Wikipedia:TemplateData|TemplateData]]}}<!--
 
  e.o. #if:nolink; DEFAULT:
 
--> documentation for this template used by [[Wikipedia:VisualEditor|VisualEditor]] and other tools; {{Template parameter usage|lc=yes}}<!--
 
  e.o. #if:noheader
 
-->}}
 
  
'''TemplateData for {{{1|{{BASEPAGENAME}}}}}'''
+
'''{{{1|{{BASEPAGENAME}}}}}'''
</div><includeonly><!--
+
</div><includeonly>{{#ifeq:{{SUBPAGENAME}}|sandbox||[[Category:TemplateData documentation]]}}</includeonly><!--
 +
--><noinclude>
 +
{{Documentation|content=
  
check parameters
+
Inserts a brief header for the template data section. Adds the page to [[:Category:TemplateData documentation]].
-->{{#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]]
 
  
}}}}</includeonly><!--
+
== Usage ==
 +
<pre>
 +
==TemplateData== or ==Parameters== or ==Usage==
 +
{{TemplateData header}}
 +
<templatedata>{
 +
...
 +
}</templatedata>
 +
</pre>
  
--><noinclude>{{Documentation}}</noinclude>
+
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>]].
 +
:{{(}}{{!}}
 +
{{!}}{{TemplateData header|Template name}}
 +
{{!}}{{)}}
 +
 
 +
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.
 +
:{{(}}{{!}}
 +
{{!}}{{TemplateData header|nolink=1}}
 +
{{!}}{{)}}
 +
 
 +
Use <code><nowiki>{{TemplateData header|noheader=1}}</nowiki></code> to omit the first sentence of the header text.
 +
:{{(}}{{!}}
 +
{{!}}{{TemplateData header|noheader=1}}
 +
{{!}}{{)}}
 +
 
 +
==Parameters==
 +
{{TemplateData header/doc}}
 +
 
 +
}}
 +
</noinclude>

Revision as of 05:19, 20 March 2021

<languages/>

<translate> 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>

TemplateData header