Minecraft Wiki
Advertisement
[보기 | 편집 | 역사 | 캐시 제거]설명문서
Lua logo
이 틀은 모듈:Breaking row을(를) 사용하는, 루아로 작성된 스크립트입니다.
자세히 알아보려면 루아 혹은 mw:Extension:Scribunto를 참조하십시오.

이 틀은 블록을 채굴하는 데 걸리는 시간 표를 생성하는 데 사용된다. 기본 기능은 en:Breaking을 위해 만들어진 것이다.

기본 사용법[]

매개 변수[]

첫번째 열
  • {{{1}}}: Block name.
  • {{{link}}}: Set the link, defaults to {{{1}}}
  • {{{sprite}}}: Sets the sprite ID, defaults to {{{1}}}
  • {{{item}}}: If set, the row uses {{itemSprite}} instead of a {{blockSprite}}.
  • {{{note}}}: Used to add a note after the title, usually using <ref>
  • {{{textTrim}}}: Trims off the stated text from the end of the title. Designed for use with the horizontal function.
Breaking 열
  • {{{2}}}: Proper tool. It can be set to Pickaxe, Axe, Shovel, None, or Any (default).
  • {{{3}}}: Minimum grade of tool required. It can be set to Wooden, Stone, Iron, Diamond, or Any (default).
  • {{{drop}}}: If set to 0, it changes the background for the main columns to yellow, signifying it does not drop.
  • {{{shears}}}: Sets the shears column. If set to 0, it changes the background for the main columns to yellow, signifying it does not drop.
  • {{{sword}}}: Sets the sword column. If set to 0, it changes the background for the main columns to yellow, signifying it does not drop.
Table parameters
  • {{{foot}}}: If set, adds the footer. If set to 2, it adds the header columns at the bottom as well.
  • {{{sort}}}: If set, the table will be sortable.
  • {{{hidetool}}}: If set, the main tool column will be removed.
  • {{{hideshears}}}: If set, the shears column will be removed.
  • {{{hidesword}}}: If set, the sword column will be removed.

여러가지 이름[]

The parameter {{{1}}} can be a comma separated list to display multiple block names. The first name will be used for the hardness value.

{{{link}}}, {{{sprite}}}, and {{{item}}} will perform their function on all names in the row if set, unless set to a comma separated list, in which case each part corresponds to the same part of the name, with a part containing only white space setting the name to use the value from {{{1}}}

모드[]

테이블은 두가지 모드를 지원한다.

간이식[]

If {{{simple}}} is set, the table will not show the "Hardness", "Tool", "Shears", or "Sword" columns. {{{2}}} will also take the function previously done by {{{3}}}.

This mode is designed to be used on tool articles, such as Pickaxe, where the available tool is already stated.

수평식[]

If {{{horizontal}}} is set, the table will rotate, displaying columns of individual blocks instead of rows. In this mode, the entire table is built using a single call of the template. Individual columns are specified using a semi-colon separated list within the parameters. If the corresponding part of the parameter is only white space, the parameter will use the default value.

When using this mode, the parameters {{{foot}}} and {{{sort}}} have no function, and all parameters that previously affected a column will now affect a row.

This mode is designed for displaying a table on block articles, such as Stone.

[보기 | 편집 | 역사 | 캐시 제거]위 설명문서는 틀:Breaking row/doc에서 왔습니다.
Advertisement