Jump to content
Toggle menu
  • 8 articles
  • 75 files
  • 7 users
  • 37.8K edits
Neodyland Wiki
Toggle preferences menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.
Revision as of 09:22, 27 February 2015 by commons>Sarang (format)

Meta template for template description. Describes template parameters

Usage

{{Tle}}

Template parameters

ParameterDescriptionDefaultStatus
tname of the template. Will be displayed as plain textTleoptional
Tname of the template. Will be displayed as linkable item
When parameter "T" is specified, an additional parameter "t" is ignored
emptyoptional
1 … 16parameter valueemptyoptional
p1 … p16parameter nameemptyoptional

Additional information

The template is intended to be used in the following namespaces: the Template talk namespace

The template is intended to be used by the following user groups: all users == Localization ==

The template does not generate any localizable text.

Wikimedia Commons has lots of template templates, but none was really able to describe the parametrizing.

Explanation

It is necessary to distinguish between a template and its parameter names and parameter values, and this meta-template with its meta-parameter-names and meta-parameter-values.

In general, each parameter is described with a meta-pair |pn= |n= , an optional meta-parameter p1...p16 for the name and an unnamed meta-parameter for the value.
For unnamed parameters this name can be the number; if even that is not needed some or all named meta-parameters may dismiss.

Examples

After specifying the template name, its parameter values are specified with the unnamed meta-parameters; its parameter names can be specified with the meta-parameters p1 to pn.

To describe the parameters of template Tle, the following can be used:
{{ TleT = template-name1 = parm-value12 = parm-value2 | ...n = parm-valuenp1 = parm-name1p2 = parm-name2 | ...pn = parm-namen }}

A template with only unnamed parameters e.g.
{{ Example1 = parm-value12 = parm-value2 | ...n = parm-valuen }}

or without the numbers
{{ Exampleparm-value1parm-value2 | ...parm-valuen }}

Example

The template {{Color}} has two unnamed parameters (1=color, 2=text) and three named parameters (bg, title and css). With
{{Tle|T=color|text color|any text|p3=bg|background color|p4=title|tooltip text|p5=css|CSS attributes}}
this description is made: {{ Colortext colorany textbg = background colortitle = tooltip textcss = CSS attributes }}

Without any meta-parameter {{Tle}} just shows the template name: {{ Clr }} or {{ Clr }}.

{{Commons:Link templates/Template links}}

Cookies help us deliver our services. By using our services, you agree to our use of cookies.