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

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

틀:사용자:BSkyWcloud/보관함 슬롯/설명문서

Minecraft Wiki
이동: 둘러보기, 검색
이 문서는 설명문서입니다. 틀 페이지 본문에 삽입되어야 합니다. 자세한 정보는 틀:설명문서를 참조하십시오.
문서 바로가기
슬롯
격자
Lua logo.svg
이 틀은 모듈:Inventory slot을(를) 사용하고 모듈:Inventory slot/Aliases에 저장된 데이터를 참조하는,
루아로 작성된 스크립트입니다. 자세히 알아보려면 루아 혹은 mw:Extension:Scribunto를 참조하십시오.

보관함 슬롯 틀은 실제 게임의 보관함 슬롯처럼 보이고 작동하는 인터페이스 요소를 만듭니다.

사용된 이미지는 우선으로 {{InvSprite}}에서 가져오지만, 지정된 이미지를 찾을 수 없는 경우, 틀은 Grid <아이템 이름>.png 형식의 개별 이미지에서 가져옵니다.

사용법[원본 편집]

모든 입력은 선택 사항입니다:

{{슬롯
|[제목]모드:이름,수량[설명]; [제목2]모드2:이름2,수량2[설명2]; ...
|mod=기본 모드 (애니메이션 및 레이아웃 틀에 유용함)
|default=기본 이미지 아래에 항상 표시되는 이미지
|align=수직 정렬
|link=기존의 링크에다 덮어쓸 링크
|title=마우스를 올려놓을 때 표시되는 텍스트
|class=.invslot 클래스에 추가 클래스 추가
|style=.invslot에 스타일 추가
|imgclass=.invslot-item 에 추가 클래스 추가
|numstyle=수량 숫자에 스타일 추가
}}

부분[원본 편집]

첫 번째 매개 변수는 여러 "부분"으로 구성된 특수 매개 변수로 ;로 구분되고 프레임에 함께 그룹화되며, 자바스크립트가 활성화되면 차례로 표시됩니다. 모든 부분은 선택 사항이지만, "이름"이 없으면 아무것도 하지 않을 것입니다.

간단한 예시[원본 편집]

20개가 쌓인 "익히지 않은 돼지고기"의 보관함 아이템을 표시하려면 다음을 입력: {{슬롯|Raw Porkchop,20}}

표시

틀:슬롯

An amount of 2–999 is supported, anything else will not be displayed.

별칭[원본 편집]

Note: Banner variations are not included due to how many there are.

The above aliases can be used to shorten common items, such as all wood blocks or adding parts to certain names by default.

{{Slot|Any Wood;Golden Apple}}

shows









When using the alias, parts can be added which will override any parts in the alias.

{{Slot|Any Wood,4;[&oShiny Apple]Enchanted Golden Apple}}

shows


4

4

4

4

4

4


Mods can specify an additional aliases table using the modaliases parameter.

Titles and description[원본 편집]

The title parameter can be used to set a title for all frames.

{{Slot|Raw Porkchop; Cooked Porkchop|title=Smelly Porkchop}}

shows




To remove the title, set it to "none": {{Slot|Raw Porkchop; Cooked Porkchop|title=none}}

shows




However, the first bracketed text can be used to specify a title for each frame individually, and also supports standard formatting codes using & instead of §. If the title only contains formatting codes and no actual text, the formatting will be added to the normal title.

{{Slot|[&b]Diamond Sword}}

shows



The last bracketed text can be used to specify a description, this also supports standard formatting codes, and can also have multiple lines by using forward slashes (/).

{{Slot|[&b&oExcalibur]Iron Sword[&7Smite V/Fire Aspect I//&9+6 Attack Damage]}}

shows


Subframes[원본 편집]

Subframes are shown as a single frame, but the frames within it are advanced every time the subframe is displayed. A set of frames can be put in a subframe by wrapping it in braces.

Here, an alias (which resolves to multiple frames) is wrapped in a subframe, and a different wood plank variant is shown each animation cycle:

{{Slot|{Any Wood Planks};Iron Ingot}}

shows








Align[원본 편집]

Align uses the vertical-align CSS property. For example to align to the middle: 여기에 {{Slot|Raw Porkchop|align=middle}}같은 냄새가 난다!

shows

여기에
같은 냄새가 난다!

Default[원본 편집]

Default is always shown and is placed under the image. {{Slot|default=Grid layout Brewing Empty}}{{Slot|Splash Mundane Potion|default=Grid layout Brewing Empty}}

shows


Link[원본 편집]

To change the link for all frames from the image name put: {{Slot|Charcoal|link=Coal#Charcoal}}

shows



To remove the link, set link to none: {{Slot|Charcoal|link=none}}

shows


Note that this retains the title.


Mods[원본 편집]

A mod image is specified with the Mod: section of the name (or by setting a default mod using the mod parameter). The image link will then link to the mod sub-page allowing correct linking of mod images. The uploaded image name should by uploaded as Grid <Name> (<Mod>).png and should be added to the Inventory slot mods category, which prevents them from being confused with official Minecraft items.
For example, to display this mod image File:Grid Bronze Sword (IndustrialCraft).png: {{Slot|IndustrialCraft:Bronze Sword}} (or {{Slot|mod=IndustrialCraft|Bronze Sword}})

shows

Bronze Sword


Slots can be animated with a theoretically unlimited amount of frames, between mod items and vanilla items. Frames are separated by semi-colons (;).

{{Slot|
Dirt;
TNT,64;
IndustrialCraft:Bronze Sword,6;
;
Grass Block,5;
Sand;
Gold Helmet,12;
IndustrialCraft:Bronze Helmet,2;
IndustrialCraft:Copper,50;
Redstone
}}
shows



64
Bronze Sword6
5

Gold Helmet12Bronze Helmet2Copper50

As you can see, the mod had to be specified for each mod frame, this is where the default mod parameter is useful. {{Slot|mod=IndustrialCraft|Bronze Sword,6; ; Bronze Helmet,12; Copper,50; Copper Dust}}

shows

Bronze Sword6Bronze Helmet12Copper50Copper Dust

To use a vanilla minecraft item when a default mod is set, use "vanilla" (shortcut "v") or "minecraft" (shortcut "mc") as the mod (case insensitive).

{{Slot|mod=IndustrialCraft|
Vanilla:Dirt;
vanilla:TNT,64;
Bronze Sword,6;
;
V:Grass Block,5;
v:Sand;
Minecraft:Gold Helmet,12;
Bronze Helmet,2;
Copper,50;
mc:Redstone Dust
}}
shows



64
Bronze Sword6
5

Gold Helmet12Bronze Helmet2Copper50

가능한 이미지[원본 편집]

In general, an item can be referred to by its tooltip name.

For dyes, dyed items and wood, there are two shortcuts to refer to all colors or tree species. Use e.g. "Any Wood Planks" if the item appears in more than one input slot and doesn't have to be the same color in all slots. Different copies of the same "Any [item]" will switch randomly and separately among the variants. Otherwise, use "Matching [item]"; all slots containing a "Matching" item will cycle through the species or dye colors in unison, even if they're not the same item.

{{Slot|Any Wood Planks}}{{Slot|Any Wood Slab}}{{Slot|Any Wood Stairs}}

{{Slot|Matching Wood Planks}}{{Slot|Matching Wood Slab}}{{Slot|Matching Wood Stairs}}

shows





































Most items with a durability bar exist as "Damaged [item]".

List

[편집]

기타 틀[원본 편집]

These templates implement this template into a GUI screen which mimics how it would look in Minecraft. Thus, they have mostly the same features as this template.