Template:Testing: Difference between revisions

From PZwiki
(update doc)
m (update)
Line 12: Line 12:
:If not empty, the page will not be added to the "{{ll|:Category:Testing branch|Testing branch}}" category.
:If not empty, the page will not be added to the "{{ll|:Category:Testing branch|Testing branch}}" category.


===Example===
==Example==
The default notice:
*{{tll|Testing}}
<pre>{{Testing}}</pre>
'''Produces:'''
{{Testing|hidecat=true}}
{{Testing|hidecat=true}}
Provide a version the item/feature is being added:
*{{tll|Testing|Build 42}}
<pre>{{Testing|Build 42}}</pre>
'''Produces:'''
{{Testing|Build 42|hidecat=true}}
{{Testing|Build 42|hidecat=true}}


Line 37: Line 33:
</noinclude><includeonly>{{Mbox
</noinclude><includeonly>{{Mbox
| color = #ff00aa
| color = #ff00aa
| sign = [[File:Profession engineer.png|40px|link=Template:Testing{{#ifeq:{{Language code}}|true|{{Subpage}}|}}]]
| sign = [[File:Profession engineer.png|40px|link=Template:Testing{{lcs}}]]
| title = {{tt
| title = {{tt|name = Testing
  | name = Testing
   | default = This is a testing feature.
   | default = This is a testing feature.
   | arg1 = title
   | arg1 = title
   }}
   }}
| content = {{tt
| content = {{tt|name = Testing
  | name = Testing
   | default = This article/section is about an item or mechanic that is currently in '''testing''' and not part of the stable version of the game.
   | default = This article/section is about an item or mechanic that is currently in '''testing''' and not part of the stable version of the game.
   | arg1 = content
   | arg1 = content
   }}
   }}
| note = {{#if: {{{1|}}}
| note = {{#if: {{{1|}}}
   | {{tt
   | {{tt|name = Testing
    | 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 57: Line 50:
   }}
   }}
| id = mbox-testing
| id = mbox-testing
| cat = {{#if:{{{hidecat|}}}||Testing branch{{#ifeq:{{Language code}}|true|{{Subpage}}|}}}}
| cat = {{#if:{{{hidecat|}}}||Testing branch{{lcs}}}}
| collapsed = true
| collapsed = true
}}</includeonly>
}}</includeonly>

Revision as of 19:08, 30 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

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.
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.