Codex Gamicus
(Reformat)
m (Protected "Template:Templateinfo" ([Edit=Allow only administrators] (indefinite) [Move=Allow only administrators] (indefinite)))
 
(28 intermediate revisions by 5 users not shown)
Line 1: Line 1:
  +
<noinclude>
  +
{{Pp-template|small=yes}}
  +
</noinclude>
 
{| style="background: #DDDDDD; width: 95%; padding-left: 10px; padding-right: 10px;" align="center"
 
{| style="background: #DDDDDD; width: 95%; padding-left: 10px; padding-right: 10px;" align="center"
 
|- style="vertical-align: top;"
 
|- style="vertical-align: top;"
|style="text-align: left; width: 25%"|'''Template''': {{{name}}}
+
|style="text-align: left; width: 25%"|'''Template'''
|style="text-align: center; width: 25%"|'''Used For?''' {{{series}}}
+
|style="text-align: left; width: 40%"|'''Used For?'''
|style="text-align: center; width: 25%"|'''Uses [[Help:Contents/Templates#DPL|DPL]]?''' {{{dpl}}}
+
|style="text-align: left; width: 11%"|'''Uses [[Help:Templates#DPL|DPL]]?'''
|style="text-align: right; width:25%"|'''Optional Attributes?''' {{{optattr}}}
+
|style="text-align: left; width: 12%"|'''Opt. Param.?'''
  +
|style="text-align: left; width: 12%"|'''Req. Param.?'''
  +
|- style="vertical-align: top;"
  +
|style="text-align:left;"|{{{name}}}
  +
|style="text-align:left;"|{{{usedfor}}}
  +
|style="text-align:left;"|{{{dpl}}}
  +
|style="text-align:left;"|{{{optparam}}}
  +
|style="text-align:left;"|{{{reqparam}}}
  +
|- style="vertical-align: top;"
  +
|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">
  +
{{#dpl: uses={{#ifexist:Template:{{{name}}}|Template:}}{{{name}}}}}
  +
</div></div></includeonly>
 
|}
 
|}
 
<noinclude>
 
<noinclude>
{{-}}
+
{{Documentation}}
  +
[[Category:Formatting template]]
==Usage==
 
  +
</noinclude>
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 [[Egamia:Useful Templates (Games)|Useful Templates (Games)]] page.
 
 
Copy and paste the following:
 
 
{| style="background: transparent; float: left;"
 
|<pre>
 
{{Templateinfo
 
|name = {{PAGENAME}}
 
|series = Name of series template is related to
 
|dpl = Does this template use DPL? (Yes/Partial/No)
 
|optattr = Does this template have optional attributes? (Yes/No)
 
}}
 
</pre>
 
|}
 
{{-}}
 
 
All fields are required; ''optattr'' must be answered "Yes" or "No"; ''dpl'' can be answered "Yes", "No", or "Partial". DPL is [[Help:Contents/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.
 
 
====Optional attributes====
 
''There are no optional attributes for this template.''
 
 
[[Category: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?)