Leehan020816 (토론 | 기여) 편집 요약 없음 |
편집 요약 없음 |
||
(다른 사용자 한 명의 중간 판 2개는 보이지 않습니다) | |||
2번째 줄: | 2번째 줄: | ||
<!-- Documentation here --> |
<!-- Documentation here --> |
||
{{lua|Crafting usage}} |
{{lua|Crafting usage}} |
||
+ | 이 틀은 자동으로 문서의 "제작법" 부분을 다른 페이지에서 재료로 쓰인 레시피를 찾아서 채운다. |
||
− | This template automatically populates the "As a crafting ingredient" section of pages by retrieving recipes from other pages which use it as an ingredient. |
||
+ | <code>분류:<재료>을(를) 사용하는 조합법</code> ([[:분류:조합법|분류 목록]])에 있는 페이지만 레시피를 검색한다. {{tl|제작}}이 사용된 레시피만이 사용된다. |
||
− | Only pages which are in <code>Category:Recipe using <ingredient></code> ([[:Category:Recipes|category list]]) are searched for recipes. Only recipes using {{tl|crafting}} are used. |
||
− | + | 만약 관련 레시피가 없다면, 페이지에 자동으로 [[:분류:제작 용법이 비어있음]]을 추가한다. |
|
== 사용법 == |
== 사용법 == |
||
+ | * <code>{{{1}}}</code>: 이 매개변수는 어떤 분류를 둘러보고 어떤 재료를 찾을지를 결정할 때 사용되며, 기본적으로 페이지 이름을 사용한다. 여기에서 여러 재료를 특정할 수 있고, 쉼표로 구분한다. |
||
− | * <code>{{{1}}}</code>: 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. |
||
+ | * <code>{{{match}}}</code>: 재료가 얼마나 정확해야 하는지를 결정하며, 기본적으로 정확히 맞아야 한다. 여기서 여러 검색 유형을 특정할 수 있고, 쉼표로 구분한다. 여러 재료들을 특정했지만 검색 유형이 한 가지라면, 모든 재료를 사용하는 레시피를 찾을 것이다. |
||
− | * <code>{{{match}}}</code>: 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. |
||
− | ** <code>start</code> |
+ | ** <code>start</code>는 재료의 이름의 첫 부분이 정확히 같아야 한다는 뜻이다. 예: "Redstone"은 "Redstone Torch", "Redstone Block", "Redstone", 등등을 검색하지만, "Block of Redstone", "Some Redstone thing" 같은 것은 검색하지 않을 것이다. |
− | ** <code>end</code> |
+ | ** <code>end</code>는 재료의 이름의 끝 부분이 정확히 같아야 한다는 의미이다. 예: "Redstone"은 "Block of Redstone", "Redstone", 등등을 검색하지만, "Redstone Block", "Some Redstone thing" 같은 것은 검색하지 않을 것이다. |
− | ** <code>any</code> |
+ | ** <code>any</code>는 재료의 이름의 어디서든 정확히 같은 부분이 있으면 된다는 의미이다. 예: "Redstone"은 "Block of Redstone, "Redstone", "Redstone Block", "Some Redstone thing", 등등을 검색하지만, "Red stone", "Block of Reddishstone" 같은 것은 검색하지 않을 것이다. |
− | * <code>{{{category}}}</code>: |
+ | * <code>{{{category}}}</code>: 재료의 이름과 다른 분류에서 검색하며, 기본적으로 <code>{{{1}}}을(를) 사용하는 조리법</code>을 사용한다. |
− | * <code>{{{ignore}}}</code>: |
+ | * <code>{{{ignore}}}</code>: 무시할 페이지의 이름공간을 제외하고 공백을 하이픈(_)으로 바꾼 정식 표현 문자열이다. 파이프(|) 문자는 <code>¦</code>으로 교체해야 한다. |
+ | * <code>{{{description}}}</code>: 기본적으로 설명은 조리법 중 하나라도 설명이 있다면 자동으로 보이지만, 이 매개변수를 0으로 설정할 경우에는 설명은 강제로 보이지 않게 하고 1로 설정하면 강제로 보일 것이다. |
||
− | * <code>{{{description}}}</code>: 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. |
||
+ | * <code>{{{continue}}}</code>: 설정하면 표가 끝나지 않아서 레시피를 수동으로 추가할 수 있다. 일반적인 {{tl|제작}} 사용법처럼 마지막 레시피는 <code>{{{foot}}}</code>이 있어야 한다. 이 매개변수는 이 틀이 어떻게든 일부 레시피를 누락했거나 더 자유롭게 사용하기 위해 {{{ignore}}}와 결합해서 수동적으로 레시피를 쓸 때 단순히 마지막에 틈을 만드는 것 뿐이다. |
||
− | * <code>{{{continue}}}</code>: if set, the table will not be ended, allowing additional recipes to be manually added to it. As with normal {{tl|crafting}} usage, the last recipe must have <code>{{{foot}}}</code> 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. |
||
== {{t|제작}} 사용법 == |
== {{t|제작}} 사용법 == |
||
47번째 줄: | 47번째 줄: | ||
<noinclude> |
<noinclude> |
||
<!-- Documentation categories/interwiki here --> |
<!-- Documentation categories/interwiki here --> |
||
+ | [[en:Template:Crafting usage/doc]] |
||
</noinclude> |
</noinclude> |
2018년 1월 18일 (목) 05:55 기준 최신판
이 틀은 자동으로 문서의 "제작법" 부분을 다른 페이지에서 재료로 쓰인 레시피를 찾아서 채운다.
분류:<재료>을(를) 사용하는 조합법
(분류 목록)에 있는 페이지만 레시피를 검색한다. {{제작}}
이 사용된 레시피만이 사용된다.
만약 관련 레시피가 없다면, 페이지에 자동으로 분류:제작 용법이 비어있음을 추가한다.
사용법
{{{1}}}
: 이 매개변수는 어떤 분류를 둘러보고 어떤 재료를 찾을지를 결정할 때 사용되며, 기본적으로 페이지 이름을 사용한다. 여기에서 여러 재료를 특정할 수 있고, 쉼표로 구분한다.{{{match}}}
: 재료가 얼마나 정확해야 하는지를 결정하며, 기본적으로 정확히 맞아야 한다. 여기서 여러 검색 유형을 특정할 수 있고, 쉼표로 구분한다. 여러 재료들을 특정했지만 검색 유형이 한 가지라면, 모든 재료를 사용하는 레시피를 찾을 것이다.start
는 재료의 이름의 첫 부분이 정확히 같아야 한다는 뜻이다. 예: "Redstone"은 "Redstone Torch", "Redstone Block", "Redstone", 등등을 검색하지만, "Block of Redstone", "Some Redstone thing" 같은 것은 검색하지 않을 것이다.end
는 재료의 이름의 끝 부분이 정확히 같아야 한다는 의미이다. 예: "Redstone"은 "Block of Redstone", "Redstone", 등등을 검색하지만, "Redstone Block", "Some Redstone thing" 같은 것은 검색하지 않을 것이다.any
는 재료의 이름의 어디서든 정확히 같은 부분이 있으면 된다는 의미이다. 예: "Redstone"은 "Block of Redstone, "Redstone", "Redstone Block", "Some Redstone thing", 등등을 검색하지만, "Red stone", "Block of Reddishstone" 같은 것은 검색하지 않을 것이다.
{{{category}}}
: 재료의 이름과 다른 분류에서 검색하며, 기본적으로{{{1}}}을(를) 사용하는 조리법
을 사용한다.{{{ignore}}}
: 무시할 페이지의 이름공간을 제외하고 공백을 하이픈(_)으로 바꾼 정식 표현 문자열이다. 파이프(|) 문자는¦
으로 교체해야 한다.{{{description}}}
: 기본적으로 설명은 조리법 중 하나라도 설명이 있다면 자동으로 보이지만, 이 매개변수를 0으로 설정할 경우에는 설명은 강제로 보이지 않게 하고 1로 설정하면 강제로 보일 것이다.{{{continue}}}
: 설정하면 표가 끝나지 않아서 레시피를 수동으로 추가할 수 있다. 일반적인{{제작}}
사용법처럼 마지막 레시피는{{{foot}}}
이 있어야 한다. 이 매개변수는 이 틀이 어떻게든 일부 레시피를 누락했거나 더 자유롭게 사용하기 위해 {{{ignore}}}와 결합해서 수동적으로 레시피를 쓸 때 단순히 마지막에 틈을 만드는 것 뿐이다.
{{제작}}
사용법
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.