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...") |
Another OWL (talk | contribs) |
||
(2 intermediate revisions by the same 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" | {{Code|preset=1|{{param|1}}}} | | style="text-align:center" | {{Code|preset=1|{{param|1}}}} | ||
| Name of the current template. | | Name of the current template. | ||
| style="padding:.2em .5em" | {{CodeBlock|<nowiki>{{tpl error|Gordon Freeman}}</nowiki>}} | | style="padding:.2em .5em" | {{CodeBlock|<nowiki>{{tpl error|Gordon Freeman}}</nowiki>}} | ||
| style="padding:.2em .5em" | {{Capsule|{{tpl error|Gordon Freeman}}}} | | style="text-align:center; padding:.2em .5em" | {{Capsule|{{tpl error|Gordon Freeman}}}} | ||
|- | |- | ||
| style="text-align:center" | {{Code|preset=1|{{param|2}}}} | | style="text-align:center" | {{Code|preset=1|{{param|2}}}} | ||
| | | Name of another template. Used in different types of errors. | ||
| style="padding:.2em .5em" | {{CodeBlock|<nowiki>{{tpl error|Gordon Freeman|Alyx Vance}}</nowiki>}} | | style="padding:.2em .5em" | {{CodeBlock|<nowiki>{{tpl error|Gordon Freeman|Alyx Vance}}</nowiki>}} | ||
| style="text-align:center" | See [[#Type]]. | | style="text-align:center" | See [[#Type]]. | ||
|- | |- | ||
| id="Type" style="text-align:center" | {{Code|preset=1|{{param|type}}}} | | id="Type" style="text-align:center" | {{Code|preset=1|{{param|type}}}} | ||
| Error type. | | Error type. List of available types: | ||
* deprecated - for cases when the template is deprecated but has not been deleted; | |||
* Default - for cases where no value was specified in the template. | |||
| style="padding:.2em .5em" | {{CodeBlock|<nowiki>{{tpl error|type = deprecated|Gordon Freeman|Alyx Vance}}</nowiki>}} | | style="padding:.2em .5em" | {{CodeBlock|<nowiki>{{tpl error|type = deprecated|Gordon Freeman|Alyx Vance}}</nowiki>}} | ||
| {{Capsule|{{tpl error|type = deprecated|Gordon Freeman|Alyx Vance}}}} | | style="text-align:center; padding:.2em .5em" | {{Capsule|{{tpl error|type = deprecated|Gordon Freeman|Alyx Vance}}}} | ||
|} | |} |
Latest revision as of 22:08, 21 September 2023

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. | {{Gordon Freeman}} | |
{{{2}}} | Name of another template. Used in different types of errors. | See #Type. | |
{{{type}}} | Error type. List of available types:
|
{{Gordon Freeman}} is deprecated. Use {{Alyx Vance}} instead. |