Codex Gamicus
(Protected "Template:Templateinfo" (‎[edit=sysop] (indefinite) ‎[move=sysop] (indefinite)))
m (Protected "Template:Templateinfo" ([Edit=Allow only administrators] (indefinite) [Move=Allow only administrators] (indefinite)))
 
(2 intermediate revisions by the same user not shown)
Line 16: Line 16:
 
|style="text-align:left;"|{{{reqparam}}}
 
|style="text-align:left;"|{{{reqparam}}}
 
|- style="vertical-align: top;"
 
|- style="vertical-align: top;"
|colspan="5"|<div class="NavFrame"><div class="NavHead" style="font-weight:bold"><span style="color: black;">Display list of pages this template is used in: </span></div>
+
|colspan="5"|<includeonly><div class="NavFrame"><div class="NavHead" style="font-weight:bold"><span style="color: black;">Display list of pages this template is used in: </span></div>
 
<div class="NavContent" style="display:none">
 
<div class="NavContent" style="display:none">
 
{{#dpl: uses={{#ifexist:Template:{{{name}}}|Template:}}{{{name}}}}}
 
{{#dpl: uses={{#ifexist:Template:{{{name}}}|Template:}}{{{name}}}}}
</div></div>
+
</div></div></includeonly>
 
|}
 
|}
<noinclude>==Usage==
+
<noinclude>
  +
{{Documentation}}
This template is used on a template page to show information about it. The primary use for the information is to build the list of templates on the [[Project:Useful Templates (Games)|Useful Templates (Games)]] page.
 
  +
[[Category:Formatting template]]
 
  +
</noinclude>
Copy and paste the following:
 
<pre>
 
{{Templateinfo
 
|name = {{subst:PAGENAME}}
 
|usedfor = Link to series or base article that this template is used for
 
|dpl = Does this template use DPL? (Yes/Partial/No)
 
|reqparam = Does this template have required parameters? (Yes/No)
 
|optparam = Does this template have optional parameters? (Yes/No)
 
}}
 
</pre>
 
 
====Required parameters====
 
*'''name''' must be the name of the template (for example, this template would be '''Templateinfo'''). It is generally easiest to leave it set to '''<nowiki>{{subst:PAGENAME}}</nowiki>'''.
 
*'''usedfor''' is a link to the series or base article that the template is used for, such as '''<nowiki>[[Myst series]]</nowiki>''' or '''<nowiki>[[Blizzard Entertainment]]</nowiki>'''.
 
*'''dpl''' can be answered "Yes", "No", or "Partial". DPL is [[Help:Templates#DPL|Dynamic Page Listing]]; if you don't know what that is, and you created the template yourself, it probably does not use it.
 
*'''reqparam''' can be answered "Yes" or "No", depending on whether there are required parameters (also called ''fields'' or ''attributes'').
 
*'''optparam''' can be answered "Yes" or "No", depending on whether there are optional parameters (also called ''fields'' or ''attributes'').
 
 
====Optional parameters====
 
''There are no optional parameters for this template.''
 
 
[[Category:Function templates|{{PAGENAME}}]]</noinclude>
 

Latest revision as of 00:41, 20 December 2020

Template Used For? Uses DPL? Opt. Param.? Req. Param.?
{{{name}}} {{{usedfor}}} {{{dpl}}} {{{optparam}}} {{{reqparam}}}
Template documentation (for the template shown above, sometimes hidden or invisible)
Template-info Documentation

Usage

This template is used on a template page to show information about it. The primary use for the information is to build the list of templates on the Useful Templates (Games) page.

Copy and paste the following:

{{Templateinfo
|name		= {{subst:PAGENAME}}
|usedfor	= Link to series or base article that this template is used for
|dpl		= Does this template use DPL? (Yes/Partial/No)
|reqparam	= Does this template have required parameters? (Yes/No)
|optparam	= Does this template have optional parameters? (Yes/No)
}}

Required parameters

  • name must be the name of the template (for example, this template would be Templateinfo). It is generally easiest to leave it set to {{subst:PAGENAME}}.
  • usedfor is a link to the series or base article that the template is used for, such as [[Myst series]] or [[Blizzard Entertainment]].
  • dpl can be answered "Yes", "No", or "Partial". DPL is Dynamic Page Listing; if you don't know what that is, and you created the template yourself, it probably does not use it.
  • reqparam can be answered "Yes" or "No", depending on whether there are required parameters (also called fields or attributes).
  • optparam can be answered "Yes" or "No", depending on whether there are optional parameters (also called fields or attributes).

Optional parameters

There are no optional parameters for this template.


Visit Template:Templateinfo/doc to edit this text! (How does this work?)