Template:Tpl error/doc: Difference between revisions
Jump to navigation
Jump to search
Another OWL (talk | contribs) (Created page with "{{doc/subpage}} == Parameters and Examples == {| class="standard-table" style="width:100%" |- style="position:sticky; z-index:10; top:0" ! style="width:17em" | Parameter ! De...") |
No edit summary |
||
| (3 intermediate revisions by one other user not shown) | |||
| Line 1: | Line 1: | ||
{{doc/subpage}} | {{doc/subpage}} | ||
A message indicating an error in the template. | |||
== Parameters and Examples == | == Parameters and Examples == | ||
| Line 7: | Line 8: | ||
! Description | ! Description | ||
! Example | ! Example | ||
! Preview | |||
|- | |- | ||
| style="text-align:center" | | | style="text-align:center" | <code>{{param|1}}</code> | ||
| Name of the current template. | | Name of the current template. | ||
| style="padding:.2em .5em" | | style="padding:.2em .5em" | <pre style="margin:0">{{tpl error|Gordon Freeman}}</pre> | ||
| style="padding:.2em .5em" | | style="background-color:#262626; text-align:center; padding:.2em .5em" | {{tpl error|Gordon Freeman}} | ||
|- | |- | ||
| style="text-align:center" | | | style="text-align:center" | <code>{{param|2}}</code> | ||
| | | Name of another template. Used in different types of errors. | ||
| style="padding:.2em .5em" | | style="padding:.2em .5em" | <pre style="margin:0">{{tpl error|Gordon Freeman|Alyx Vance}}</pre> | ||
| style="text-align:center" | See [[#Type]]. | | style="background-color:#262626; text-align:center" | See [[#Type]]. | ||
|- | |- | ||
| id="Type" style="text-align:center" | | | id="Type" style="text-align:center" | <code>{{param|type}}</code> | ||
| Error type. | | Error type. List of available types: | ||
| style="padding:.2em .5em" | * deprecated - for cases when the template is deprecated but has not been deleted; | ||
| {{Capsule|{{tpl error|type = deprecated|Gordon Freeman|Alyx Vance}}}} | * Default - for cases where no value was specified in the template. | ||
| style="padding:.2em .5em" | <pre style="margin:0">{{tpl error|type = deprecated|Gordon Freeman|Alyx Vance}}</pre> | |||
| style="background-color:#262626; text-align:center; padding:.2em .5em" | {{Capsule|{{tpl error|type = deprecated|Gordon Freeman|Alyx Vance}}}} | |||
|} | |} | ||
Latest revision as of 04:53, 17 September 2025
This is a documentation subpage for Template:Tpl error.
Don't forget to purge the contents of the base page upon creating or editing this subpage.
Don't forget to purge the contents of the base page upon creating or editing this subpage.
A message indicating an error in the template.
Parameters and Examples
| Parameter | Description | Example | Preview |
|---|---|---|---|
{{{1}}}
|
Name of the current template. | {{tpl error|Gordon Freeman}}
|
{{Gordon Freeman}}
|
{{{2}}}
|
Name of another template. Used in different types of errors. | {{tpl error|Gordon Freeman|Alyx Vance}}
|
See #Type. |
{{{type}}}
|
Error type. List of available types:
|
{{tpl error|type = deprecated|Gordon Freeman|Alyx Vance}}
|
{{Gordon Freeman}} is deprecated. Use {{Alyx Vance}} instead. |