새로 오신 분들은 길라잡이위키 규칙을 꼭 읽어주세요.

문서 작성번역을 도와주시면 이 위키에 큰 힘이 됩니다.

Fandom 측에서 진행하는 통합 커뮤니티 플랫폼으로의 이주 작업이 이루어지는 동안 일부 기능이 작동하지 않을 수 있습니다. 양해 부탁드립니다.

"틀:Crafting usage"의 두 판 사이의 차이

Minecraft Wiki
이동: 둘러보기, 검색
(틀:제작 용법에 대한 넘겨주기를 제거함)
태그: 넘겨주기 제거
잔글
2번째 줄: 2번째 줄:
 
{{documentation}}
 
{{documentation}}
 
<!-- Put categories/interwiki on the documentation page -->
 
<!-- Put categories/interwiki on the documentation page -->
  +
</noinclude>

2020년 9월 16일 (수) 08:36 판

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

이 틀은 다른 페이지에 있는 제작법을 추출하여 "제작 재료" 페이지를 자동적으로 생성한다.

Category:Recipe using <ingredient>(category list)에 들어 있는 페이지만이 제작법에서 검색한다. {{crafting}}을 사용하는 제작법만 사용된다.

관련 제작법이 없는 경우, 해당 페이지는 Category:Empty crafting usage에 추가된다.

사용법

  • {{{1}}}: is used to control which category to look through and which ingredient it is looking for, this defaults to the page name. Multiple ingredients can be specified here, separated by commas.
  • {{{match}}}: how exact the ingredient match should be, the default being an exact match. Multiple match types can be specified here, separated by commas. If multiple ingredients are specified, but only one match type, then that will be used for all ingredients.
    • start means the start of the ingredient has to exactly match. E.g: "Redstone" will match "Redstone Torch", "Redstone Block", "Redstone", etc.; but not "Block of Redstone", "Some Redstone thing", etc.
    • end means the end of the ingredient has to exactly match. E.g: "Redstone" will match "Block of Redstone", "Redstone", etc.; but not "Redstone Block", "Some Redstone thing", etc.
    • any means the ingredient can be found anywhere within the name. E.g: "Redstone" will match "Block of Redstone, "Redstone", "Redstone Block", "Some Redstone thing", etc.; but not "Red stone", "Block of Reddishstone", etc.
  • {{{category}}}: look through a different category from the ingredient name, defaults to Recipe using {{{1}}}
  • {{{ignore}}}: a regex string of pages to ignore, without namespace and with spaces replaced with underscores. Pipe characters have to be replaced with ¦.
  • {{{description}}}: By default, the description is shown automatically if any of the recipes has one, but if this is set to 0, the description column will be forced to not show and if set to 1, it will be forced to show.
  • {{{continue}}}: if set, the table will not be ended, allowing additional recipes to be manually added to it. As with normal {{crafting}} usage, the last recipe must have {{{foot}}} set. This is really just a stopgap for if the template somehow misses some recipes, or if coupled with {{{ignore}}} used to manually write a recipe, for greater customisability.

{{Crafting}} usage

These args are used on the {{crafting}} templates themselves, but are read by this template.

  • {{{ignoreusage}}}: This can be added to crafting recipes which should be ignored by this template. Best for recipes which need to be ignored by multiple {{crafting usage}} templates.
  • {{{arggroups}}}: Used to manually specify which arguments are grouped (see below). Use the arg names (A1, A2, etc.) if the recipe is shaped, or numbers if the recipe is shapeless. Grouped args are separated by commas, and groups are separated by semi-colons. For example: A1,B1,A2;C1,Output would make A1, B1 and A2 a group and C1 and Output a group.

If not all frames of an animation is used, any value set in the name or ingredients arguments will be removed.

Arg groups

In order to correctly understand how the animations in a recipe should be displayed, the template needs to know which arguments are related. For example: in the bed recipe, any wood plank and any wool color can be mixed, and they will all produce the same color bed, thus none of them are related. However in the firework star recipe, the dye and the resulting firework star are related, but the extra ingredient isn't (any extra ingredient can be used with any color of firework star, but the correct dye has to be used to get the correct firework star).

For animations with different amount of frames, the template knows that they are not grouped, because the animation would get out of sync. However, if they have the same amount of frames (excluding randomised frames from "Any *" aliases), the module assumes they are a group. In cases where this isn't true, {{{arggroups}}} should be used.

Example

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