本站文本内容除另有声明外,转载时均必须注明出处。(详情…本站文本内容除另有声明外,转载时均必须注明出处。(详情…中文Minecraft Wiki是完全公开的。请勇于扩充与修正内容!中文Minecraft Wiki是完全公开的。请勇于扩充与修正内容!Minecraft中文Wiki微博正在更新!或许有兴趣去看看Minecraft中文Wiki微博正在更新!或许有兴趣去看看想与其他用户进行编辑上的沟通?社区专页正是为此创建的。想与其他用户进行编辑上的沟通?社区专页正是为此创建的。翻译或创建页面之前,不妨看看译名标准化Wiki条例页面。翻译或创建页面之前,不妨看看译名标准化Wiki条例页面。需要管理员的协助?在管理员告示板留言也许可以帮到您。需要管理员的协助?在管理员告示板留言也许可以帮到您。
各位用户:为了让我们能更好了解您的需求,提供更优良的服务,请帮助我们填写一份问卷。编者问卷读者问卷(需要花费7分钟左右)

Hi Gamepedia users and contributors! Please complete this survey to help us learn how to better meet your needs in the future. We have one for editors and readers. This should only take about 7 minutes!

Template:Exclusive

来自Minecraft Wiki
跳转至: 导航搜索
[查看 | 编辑 | 历史 | 清除缓存]文档页面


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:
    • pocketbedrock
    • consolelegacy 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:

Information icon.svg
此特性为Java版独有。


Example 2
{{Exclusive|education|console}}

generates:

Information icon.svg
此特性为教育版原主机版独有。


Example 3
{{Exclusive|java|console|bedrock}}

generates:

Information icon.svg
此特性为Java版原主机版基岩版独有。
[查看 | 编辑 | 历史 | 清除缓存]上述文档是从Template:Exclusive/doc引用的。