새로 오신 분들은 길라잡이를 꼭 읽어주세요.

문서의 정리·작성번역을 도와주시면 마인크래프트 위키에 큰 힘이 됩니다.

틀:Exclusive

Minecraft Wiki
이동: 둘러보기, 검색
[보기 | 편집 | 역사 | 캐시 제거]설명문서


이 틀은 특정 버전 또는 마인크래프트 버전에만 적용되는 기능을 표시하는 데 사용된다. 이 표시는 해당 절 전체에 적용되는 경우에만 사용하고, 일부에만 적용되는 경우에는 사용하지 않는다. ({{only}}를 참고하라.) 매개 변수로 지정된 버전을 나열하고, 일치하는 로고의 애니메이션이 돌아가며 표시되는 메시지 상자를 생성한다. 또한 관련 유지보수 분류로 해당 페이지를 추가한다.

매개 변수[원본 편집]

이름 없는[원본 편집]

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:
    • pc or computerjava
    • pocketbedrock
    • consolelegacy console
  • Known parameter values automatically select an associated edition name to display, page name for linking, logo image file, and maintenance category. If an unknown parameter value is encountered, default values are generated by a formula.
Parameter value Edition name Linked page Logo file Maintenance category
bedrock Bedrock Edition Bedrock Edition File:mclogo.svg Category:Bedrock Edition
java Java Edition Java Edition File:Java Edition.png Category:Java Edition
legacy console Legacy Console Edition Legacy Console Edition File:Legacy Console Edition.png Category:Legacy Console Edition
education Education Edition Education Edition File:Education Edition.svg Category:Education Edition
new3DS New Nintendo 3DS Edition New Nintendo 3DS Edition File:New Nintendo 3DS Edition.png Category:New Nintendo 3DS Edition
(unknown) <param> Edition [[<param> Edition]] File:<param> Edition.png Category:<param> Edition

Named parameters[원본 편집]

In addition to the anonymous parameters, the template accepts the following named parameters:

logoheight=<n>

Logo images are scaled to a width of 250 pixels, but their height is allowed to auto-scale to avoid distorting the image. The template leaves room for a logo height of 50 pixels, which is adequate in most cases, but if the scaled height is larger than that, the browser may automatically expand the message box height to accommodate it. This causes the remainder of the page to shift down. When multiple logos with different scaled heights are displayed, the page may repeatedly shift up and down as the animation cycles, making reading difficult. To avoid this, this parameter can override the default height of 50 pixels. For <n>, specify the number of pixels to be reserved for displaying the logo's height. (You may have to experiment to find the best value.)

As an alternative to using the logoheight parameter, the edition can be added to the built-in set of known editions, because logo heights for these are handled internally.

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


Example 2
{{Exclusive|education|console}}

generates:

Education Edition.svgLegacy Console Edition.png


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

generates:

Java Edition.pngLegacy Console Edition.pngMclogo.svg


Example 4

This example demonstrates the effect of the logoheight parameter

{{Exclusive|bedrock|education|logoheight=75}}

generates:

Mclogo.svgEducation Edition.svg
[보기 | 편집 | 역사 | 캐시 제거]위 설명문서는 틀:Exclusive/doc에서 왔습니다.