Template:Testing: Difference between revisions
m (minor) |
(added deprecated notice) |
||
(7 intermediate revisions by 4 users not shown) | |||
Line 1: | Line 1: | ||
<noinclude> | <noinclude> | ||
{{Deprecated|Page version}} | |||
{{Documentation/sandbox|doc = | {{Documentation/sandbox|doc = | ||
Added to articles or sections that are about a feature that is part of a testing branch and not part of the stable version of the game. | Added to articles or sections that are about a feature that is part of a testing branch and not part of the stable version of the game. | ||
Adds articles to the {{ll|:Category: | Adds articles to the "{{ll|:Category:Unstable features|Unstable features}}" category. | ||
==Usage== | ==Usage== | ||
The | ===Parameters=== | ||
< | ;<code>1</code> | ||
: | :The version page name of the item/feature being added. | ||
;<code>section</code> | |||
:If set to <code>true</code>, will display "section" instead of "article" in the title. | |||
;<code>hidecat</code> | |||
:If set to <code>true</code>, the page will not be added to the "{{ll|:Category:Unstable features|Unstable features}}" category. | |||
==Examples== | |||
*{{tll|Testing}} | |||
{{Testing|hidecat=true}} | {{Testing|hidecat=true}} | ||
*{{tll|Testing|build 42}} | |||
{{Testing|build 42|hidecat=true}} | |||
{{Testing| | |||
{{Translation guide|<syntaxhighlight lang="html"> | {{Translation guide|<syntaxhighlight lang="html"> | ||
{{#switch: {{{1|}}} | {{#switch: {{{1|}}} | ||
| title = This is a testing feature. | | title = This is a testing feature. | ||
| content = This | | content = This {{{2}}} is about an item or mechanic that is currently in '''testing''' and not part of the stable version of the game. | ||
| note = This feature can be accessed via the testing branch for {{{2}}}. | | note = This feature can be accessed via the testing branch for {{{2}}}. | ||
| #default = | | #default = {{Error|translation}} | ||
}} | }} | ||
</syntaxhighlight>}} | </syntaxhighlight>}} | ||
==See also== | |||
*{{ll|PZwiki:Mboxes}} | |||
}} | }} | ||
{{ll|Category:Mbox}} | |||
{{ll|Category:Mbox | |||
</noinclude><includeonly>{{Mbox | </noinclude><includeonly>{{Mbox | ||
| color = #ff00aa | | color = #ff00aa | ||
| sign = [[File:Profession engineer.png|40px|link=Template:Testing{{ | | sign = [[File:Profession engineer.png|40px|link=Template:Testing{{lcs}}]] | ||
| title = {{tt | | title = {{tt|name=Testing | ||
| default = This is a testing feature. | | default = This is a testing feature. | ||
| arg1 = title | | arg1 = title | ||
}} | }} | ||
| content = {{tt | | content = {{tt|name=Testing | ||
| default = This {{Page ns|{{{section|}}}}} is about an item or mechanic that is currently in '''testing''' and not part of the stable version of the game. | |||
| default = This | |||
| arg1 = content | | arg1 = content | ||
| arg2 = {{Page ns|{{{section|}}}}} | |||
}} | }} | ||
| note = {{#if: {{{1|}}} | | note = {{#if: {{{1|}}} | ||
| {{tt | | {{tt|name=Testing | ||
| default = This feature can be accessed via the testing branch for {{ll|{{{1}}}}}. | | default = This feature can be accessed via the testing branch for {{ll|{{{1}}}}}. | ||
| arg1 = note | | arg1 = note | ||
Line 47: | Line 53: | ||
}} | }} | ||
}} | }} | ||
| id = | | id = testing | ||
| cat = {{ | | cat = {{yesno|{{{hidecat|}}}|yes=|no=Unstable features{{lcs}}}} | ||
| collapsed = true | | collapsed = true | ||
}}</includeonly> | }}</includeonly> |
Latest revision as of 13:01, 23 March 2024
Added to articles or sections that are about a feature that is part of a testing branch and not part of the stable version of the game.
Adds articles to the "Unstable features" category.
Usage
Parameters
1
- The version page name of the item/feature being added.
section
- If set to
true
, will display "section" instead of "article" in the title. hidecat
- If set to
true
, the page will not be added to the "Unstable features" category.
Examples
{{Testing}}
{{Testing|build 42}}
How to translate
This template is translatable.
Template code
Paste the following code into the <includeonly>
tag of the translated template and translate the text after each =
sign (except for #default =
).
{{#switch: {{{1|}}}
| title = This is a testing feature.
| content = This {{{2}}} is about an item or mechanic that is currently in '''testing''' and not part of the stable version of the game.
| note = This feature can be accessed via the testing branch for {{{2}}}.
| #default = {{Error|translation}}
}}
Template documentation
Copy the code wrapped in the <noinclude>
tag in this template and translate the text after doc =
in the {{Documentation}}
template.
{{Translation guide}}
template should be removed from the translated documentation.