Template:Testing: Difference between revisions

From PZwiki
m (minor)
(update doc)
Line 3: Line 3:
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:Testing branch|Testing branch}} category.
Adds articles to the "{{ll|:Category:Testing branch|Testing branch}}" category.


==Usage==
==Usage==
===Parameters===
;<code>1</code>
:The version page name of the item/feature being added.
;<code>hidecat</code>
:If not empty, the page will not be added to the "{{ll|:Category:Testing branch|Testing branch}}" category.
===Example===
The default notice:
The default notice:
<pre>{{Testing}}</pre>
<pre>{{Testing}}</pre>
:'''Produces:'''
'''Produces:'''
{{Testing|hidecat=true}}
{{Testing|hidecat=true}}
Provide a version the item/feature is being added:
Provide a version the item/feature is being added:
<pre>{{Testing|Build 42}}</pre>
<pre>{{Testing|Build 42}}</pre>
:'''Produces:'''
'''Produces:'''
{{Testing|Build 42|hidecat=true}}
{{Testing|Build 42|hidecat=true}}


Line 23: Line 30:
}}
}}
</syntaxhighlight>}}
</syntaxhighlight>}}
==See also==
*{{ll|PZwiki:Mboxes}}
}}
}}
{{ll|Category:Maintenance templates}}
{{ll|Category:Mbox templates}}
{{ll|Category:Mbox templates}}
</noinclude><includeonly>{{Mbox
</noinclude><includeonly>{{Mbox

Revision as of 07:33, 29 December 2023

Notebook.pngTemplate Documentation

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 "Testing branch" category.

Usage

Parameters

1
The version page name of the item/feature being added.
hidecat
If not empty, the page will not be added to the "Testing branch" category.

Example

The default notice:

{{Testing}}

Produces:

Profession engineer.png
This is a testing feature.
This article/section is about an item or mechanic that is currently in testing and not part of the stable version of the game.

Provide a version the item/feature is being added:

{{Testing|Build 42}}

Produces:

Profession engineer.png
This is a testing feature.
This article/section is about an item or mechanic that is currently in testing and not part of the stable version of the game.
This feature can be accessed via the testing branch for 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 article/section 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 = [[Category:Incorrect template usage]]
}}

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.

See also

Editors can experiment in this template's sandbox.