Template:Testing: Difference between revisions

From PZwiki
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:Testing branch|Testing branch}} category.
Adds articles to the "{{ll|:Category:Unstable features|Unstable features}}" category.


==Usage==
==Usage==
The default notice:
===Parameters===
<pre>{{Testing}}</pre>
;<code>1</code>
:'''Produces:'''
: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}}
Provide a version the item/feature is being added:
*{{tll|Testing|build 42}}
<pre>{{Testing|Build 42}}</pre>
{{Testing|build 42|hidecat=true}}
:'''Produces:'''
{{Testing|Build 42|hidecat=true}}


{{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 article/section is about an item or mechanic that is currently in '''testing''' and not part of the stable version of the game.
| 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 = [[Category:Incorrect template usage]]
| #default = {{Error|translation}}
}}
}}
</syntaxhighlight>}}
</syntaxhighlight>}}
==See also==
*{{ll|PZwiki:Mboxes}}
}}
}}
{{ll|Category:Maintenance templates}}
{{ll|Category:Mbox}}
{{ll|Category:Mbox templates}}
</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 {{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 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
  | arg2 = {{Page ns|{{{section|}}}}}
   }}
   }}
| 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 47: Line 53:
     }}
     }}
   }}
   }}
| id = mbox-testing
| id = testing
| cat = {{#if:{{{hidecat|}}}||Testing branch{{#ifeq:{{Language code}}|true|{{Subpage}}|}}}}
| cat = {{yesno|{{{hidecat|}}}|yes=|no=Unstable features{{lcs}}}}
| collapsed = true
| collapsed = true
}}</includeonly>
}}</includeonly>

Latest revision as of 13:01, 23 March 2024

Imbox content.png
This template is deprecated.
This template will eventually be removed. Please use Template:Page version instead.
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 "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

Profession engineer.png
This is a testing feature.
This template 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 template 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 {{{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.

See also

Editors can experiment in this template's sandbox.