模板:Exclusive
This template is used to mark features exclusive to a specific edition or editions of Minecraft. It may only be used for pages or page sections that in their entirety describe content that is exclusive to that or those editions, for just feature mentions on pages, see {{only}}
. It generates a centered message box that lists the editions specified by the parameters and cycles through an animated display of the corresponding logos. It also adds the page to the related maintenance categories.
Parameters[編輯原始碼]
Anonymous parameters[編輯原始碼]
The template accepts any number of anonymous parameters, 1 for each version to be shown. It checks for certain parameter values as follows:
- Outdated parameter values are translated to their up-to-date equivalents:
pocket
→bedrock
console
→legacy console
- Known parameter values automatically select an associated edition name to display, page name for linking, and maintenance category. If an unknown parameter value is encountered, default values are generated by a formula.
Parameter value | Edition name | Linked page | Maintenance category |
---|---|---|---|
bedrock | 基岩版 | 基岩版 | Category:基岩版獨有 |
java | Java版 | Java版 | Category:Java版獨有 |
legacy console | 原主機版 | 原主機版 | Category:原主機版獨有 |
ps4 | PlayStation 4版 | PlayStation 4版 | Category:PlayStation 4版獨有 |
education | 教育版 | 教育版 | Category:教育版獨有 |
new3DS | New Nintendo 3DS版 | New Nintendo 3DS版 | Category:New Nintendo 3DS版獨有 |
earth | Minecraft Earth | Minecraft Earth | Category:Minecraft Earth |
(unknown) | <param>版 | [[<param>版]] | Category:<param>版獨有 |
Named parameters[編輯原始碼]
In addition to the anonymous parameters, the template accepts the following named parameter:
nocat=1
If this parameter is specified, the page will not be added to any maintenance categories. This is usually used where the template is only being demonstrated, as in the examples below. It should be omitted if the page actually applies only to the specified editions.
Examples[編輯原始碼]
The following examples illustrate the generated output using various parameters. You can copy an example into your page and modify it if you like.
- Example 1
{{Exclusive|java}}
generates:
此特性為Java版獨有。 |
- Example 2
{{Exclusive|education|console}}
generates:
此特性為教育版和原主機版獨有。 |
- Example 3
{{Exclusive|java|console|bedrock}}
generates:
此特性為Java版、原主機版和基岩版獨有。 |