Crafting/doc: Difference between revisions
imported>Merge merge.py |
imported>Merge merge.py |
||
| (2 intermediate revisions by the same user not shown) | |||
| Line 1: | Line 1: | ||
{{MergeSource|Reincarnated}} | {{MergeSource|Reincarnated}} | ||
{{lua}} | {{lua}} | ||
このテンプレートを使用すると、ブロックやアイテムに関する記事の「クラフト」および「クラフト材料」セクションで一般的に使用されるようなテーブルを作成できます。{{tl|Crafting Table}}と同様に使用できますが、テーブルを自動的に作成する点が異なります。 | |||
デフォルトでは、テーブルは3つの列(名前、材料、および{{tl|Crafting Table}}を含むメイン列)で生成されます。テーブルの最初のテンプレートでパラメータ<code><nowiki>{{{showname=1}}}</nowiki></code>または<code><nowiki>{{{showname=0}}}</nowiki></code>を設定して、名前列を表示または非表示にすることができます。複数のクラフトテンプレートを1つのテーブルにグループ化するには、テーブルの最初のテンプレートで<code><nowiki>{{{head=1}}}</nowiki></code>を設定し、最後のテンプレートで<code><nowiki>{{{foot=1}}}</nowiki></code>を設定する必要もあります。説明と呼ばれる4番目の列は、<code><nowiki>{{{showdescription=1}}}</nowiki></code>および<code><nowiki>{{{description=The description for the recipe}}}</nowiki></code>を使用して追加できます。 | |||
不定形レシピを表示するには、すべての材料のグリッド位置を省略するだけです。レシピが不定形で5スロット未満を使用する場合、テンプレートはアイテムを左下のマスに自動的に配置し、インベントリのクラフトエリアでレシピを使用できることを示します。 | |||
このテンプレートを「クラフト」セクションの外で使用する場合(例:{{tl|Crafting usage}}の代わりに、またはそれと一緒に)、<code><nowiki>{{{ignoreusage}}}</nowiki></code>パラメータを1に設定することが'''非常に重要'''です。これにより、テンプレートが{{tl|Crafting usage}}によって追跡されなくなるため、他の記事でそのテンプレートに関する問題が発生するのを防ぐことができます。 | |||
使用例: | |||
<pre> | <pre> | ||
{{Crafting | {{Crafting | ||
| Line 43: | Line 43: | ||
}} | }} | ||
</pre> | </pre> | ||
出力: | |||
{{Crafting | {{Crafting | ||
| Line 76: | Line 76: | ||
}} | }} | ||
== | == 詳細 == | ||
{{TemplateData}} | {{TemplateData}} | ||
<templatedata> | <templatedata> | ||
| Line 82: | Line 82: | ||
"params": { | "params": { | ||
"1": { | "1": { | ||
"label": " | "label": "最初の材料", | ||
"description": " | "description": "不定形レシピの最初の材料", | ||
"example": " | "example": "火打ち石", | ||
"type": "string" | "type": "string" | ||
}, | }, | ||
"2": { | "2": { | ||
"label": " | "label": "2番目の材料", | ||
"description": " | "description": "不定形レシピの2番目の材料", | ||
"type": "string", | "type": "string", | ||
"example": " | "example": "鉄インゴット" | ||
}, | }, | ||
"3": { | "3": { | ||
"label": " | "label": "3番目の材料", | ||
"description": " | "description": "不定形レシピの3番目の材料", | ||
"type": "string" | "type": "string" | ||
}, | }, | ||
"4": { | "4": { | ||
"label": " | "label": "4番目の材料", | ||
"description": " | "description": "不定形レシピの4番目の材料", | ||
"type": "string" | "type": "string" | ||
}, | }, | ||
"5": { | "5": { | ||
"label": " | "label": "5番目の材料", | ||
"description": " | "description": "不定形レシピの5番目の材料", | ||
"type": "string" | "type": "string" | ||
}, | }, | ||
"6": { | "6": { | ||
"label": " | "label": "6番目の材料", | ||
"description": " | "description": "不定形レシピの6番目の材料", | ||
"type": "string" | "type": "string" | ||
}, | }, | ||
"7": { | "7": { | ||
"label": " | "label": "7番目の材料", | ||
"description": " | "description": "不定形レシピの7番目の材料", | ||
"type": "string" | "type": "string" | ||
}, | }, | ||
"8": { | "8": { | ||
"label": " | "label": "8番目の材料", | ||
"description": " | "description": "不定形レシピの8番目の材料", | ||
"type": "string" | "type": "string" | ||
}, | }, | ||
"9": { | "9": { | ||
"label": " | "label": "9番目の材料", | ||
"description": " | "description": "不定形レシピの9番目の材料", | ||
"type": "string" | "type": "string" | ||
}, | }, | ||
"A1": { | "A1": { | ||
"label": " | "label": "左上のスロット", | ||
"description": " | "description": "左上のスロットにある材料を指定します", | ||
"example": "{ | "example": "{任意の木材}; {任意の石ティアのブロック}; 鉄インゴット; 金インゴット; ダイヤモンド", | ||
"type": "string", | "type": "string", | ||
"suggested": true | "suggested": true | ||
}, | }, | ||
"B1": { | "B1": { | ||
"label": " | "label": "上のスロット", | ||
"description": " | "description": "上のスロットにある材料を指定します", | ||
"example": "{ | "example": "{任意の木材}; {任意の石ティアのブロック}; 鉄インゴット; 金インゴット; ダイヤモンド", | ||
"type": "string", | "type": "string", | ||
"suggested": true | "suggested": true | ||
}, | }, | ||
"C1": { | "C1": { | ||
"label": " | "label": "右上のスロット", | ||
"description": " | "description": "右上のスロットにある材料を指定します", | ||
"example": "{ | "example": "{任意の木材}; {任意の石ティアのブロック}; 鉄インゴット; 金インゴット; ダイヤモンド", | ||
"type": "string", | "type": "string", | ||
"suggested": true | "suggested": true | ||
}, | }, | ||
"A2": { | "A2": { | ||
"label": " | "label": "左のスロット", | ||
"description": " | "description": "左のスロットにある材料を指定します", | ||
"type": "string", | "type": "string", | ||
"suggested": true | "suggested": true | ||
}, | }, | ||
"B2": { | "B2": { | ||
"label": " | "label": "中央のスロット", | ||
"description": " | "description": "中央のスロットにある材料を指定します", | ||
"example": " | "example": "棒", | ||
"type": "string", | "type": "string", | ||
"suggested": true | "suggested": true | ||
}, | }, | ||
"C2": { | "C2": { | ||
"label": " | "label": "右のスロット", | ||
"description": " | "description": "右のスロットにある材料を指定します", | ||
"type": "string", | "type": "string", | ||
"suggested": true | "suggested": true | ||
}, | }, | ||
"A3": { | "A3": { | ||
"label": " | "label": "左下のスロット", | ||
"description": " | "description": "左下のスロットにある材料を指定します", | ||
"type": "string", | "type": "string", | ||
"suggested": true | "suggested": true | ||
}, | }, | ||
"B3": { | "B3": { | ||
"label": " | "label": "下のスロット", | ||
"description": " | "description": "下のスロットにある材料を指定します", | ||
"example": " | "example": "棒", | ||
"type": "string", | "type": "string", | ||
"suggested": true | "suggested": true | ||
}, | }, | ||
"C3": { | "C3": { | ||
"label": " | "label": "右下のスロット", | ||
"description": " | "description": "右下のスロットにある材料を指定します", | ||
"type": "string", | "type": "string", | ||
"suggested": true | "suggested": true | ||
}, | }, | ||
"shapeless": { | "shapeless": { | ||
"label": " | "label": "不定形レシピのオーバーライド", | ||
"description": " | "description": "\"左上のスロット\"や類似のパラメータが使用されている場合に、不定形レシピモードを強制します。", | ||
"type": "unknown", | "type": "unknown", | ||
"suggestedvalues": [ | "suggestedvalues": [ | ||
"1" | "1" | ||
], | ], | ||
"default": " | "default": "\"最初の材料\"パラメータが使用されると、不定形モードが自動的に有効になります。", | ||
"autovalue": "1" | "autovalue": "1" | ||
}, | }, | ||
"fixed": { | "fixed": { | ||
"label": " | "label": "固定レシピモード", | ||
"description": " | "description": "材料の配置をミラーリングできない場合(通常は旗用)に固定レシピモードを有効にします", | ||
"type": "unknown", | "type": "unknown", | ||
"suggestedvalues": [ | "suggestedvalues": [ | ||
| Line 207: | Line 207: | ||
}, | }, | ||
"Output": { | "Output": { | ||
"label": " | "label": "レシピの出力", | ||
"description": " | "description": "レシピの出力を設定します。複数のブロックやアイテムが同時にクラフトされる場合は、カンマの後に数を指定してください。", | ||
"example": " | "example": "木のツルハシ; 石のツルハシ; 鉄のツルハシ; 金のツルハシ; ダイヤモンドのツルハシ", | ||
"type": "string", | "type": "string", | ||
"suggested": true | "suggested": true | ||
}, | }, | ||
"notfixed": { | "notfixed": { | ||
"label": " | "label": "固定されていない材料", | ||
"description": " | "description": "固定レシピにおいて、例外として空いているスロットに配置できる材料を記述します。", | ||
"example": " | "example": "旗""}, | ||
}, | }, | ||
"head": { | "head": { | ||
"label": " | "label": "テーブルヘッダー", | ||
"description": " | "description": "このテンプレートインスタンスをシーケンスの最初として設定します。", | ||
"suggestedvalues": [ | "suggestedvalues": [ | ||
"1" | "1" | ||
| Line 227: | Line 227: | ||
}, | }, | ||
"foot": { | "foot": { | ||
"label": " | "label": "テーブルフッター", | ||
"description": " | "description": "このテンプレートインスタンスをシーケンスの最後として設定します。", | ||
"suggestedvalues": [ | "suggestedvalues": [ | ||
"1" | "1" | ||
| Line 235: | Line 235: | ||
}, | }, | ||
"showname": { | "showname": { | ||
"label": " | "label": "名前列の制御", | ||
"description": " | "description": "レシピによって作成されるブロックまたはアイテムをリストする\"名前\"列を表示するかどうかを制御します。値が1の場合は列が表示され、その他の値では無効になります。マルチテンプレートテーブルの場合は、最初のテンプレート(\"head\"パラメータが設定されているもの)のみでこのパラメータを設定してください。", | ||
"suggestedvalues": [ | "suggestedvalues": [ | ||
"0", | "0", | ||
"1" | "1" | ||
], | ], | ||
"default": " | "default": "テンプレートに\"head\"パラメータが1に設定されている場合、名前列はデフォルトで表示されます。シーケンス内の後続のテンプレートは、最初のテンプレートの値を使用します。テンプレートが単体の場合は表示されません。", | ||
"autovalue": "1" | "autovalue": "1" | ||
}, | }, | ||
"showdescription": { | "showdescription": { | ||
"label": " | "label": "説明列の制御", | ||
"description": " | "description": "説明列を表示するかどうかを制御します。1の値で表示され、その他の値で無効になります。マルチテンプレートテーブルの場合は、最初のテンプレート(\"head\"パラメータが設定されているもの)のみでこのパラメータを設定してください。", | ||
"suggestedvalues": [ | "suggestedvalues": [ | ||
"1" | "1" | ||
], | ], | ||
"default": " | "default": "列はデフォルトでは表示されません。テンプレートシーケンスでは、最初のテンプレートと同じ値を使用します。", | ||
"autovalue": "1" | "autovalue": "1" | ||
}, | }, | ||
"name": { | "name": { | ||
"label": " | "label": "名前のオーバーライド", | ||
"description": " | "description": "[名前]セルに表示される内容をオーバーライドします。", | ||
"example": " | "example": "任意のツルハシ(ネザライトを除く)", | ||
"type": "content", | "type": "content", | ||
"default": " | "default": "名前は出力スロットから自動的に推測されます。" | ||
}, | }, | ||
"description": { | "description": { | ||
"label": " | "label": "追加の説明", | ||
"description": " | "description": "エディションの排他性や、レシピを追加する今後のバージョンなど、レシピに関する追加の説明を提供します。\"showdescription\"パラメータを必ず設定してください。設定しないと表示されません。", | ||
"type": "content" | "type": "content" | ||
}, | }, | ||
"ingredients": { | "ingredients": { | ||
"label": " | "label": "材料のオーバーライド", | ||
"description": " | "description": "[材料]セルに表示される内容をオーバーライドします。", | ||
"type": "content", | "type": "content", | ||
"default": " | "default": "材料は自動的に推測されます。" | ||
}, | }, | ||
"ignoreusage": { | "ignoreusage": { | ||
"label": " | "label": "クラフトの使用法から除外", | ||
"description": " | "description": "テンプレートをクラフト使用法テンプレートから無視されるように設定します。つまり、このレシピは他の記事の\"使用法\"の\"クラフト材料\"サブセクションに表示されません。\"入手方法\"の\"クラフト\"サブセクション内でテンプレートを使用しない場合は、クラフト使用法に関する問題を避けるためにこのパラメータが必須です。", | ||
"suggestedvalues": [ | "suggestedvalues": [ | ||
"1" | "1" | ||
| Line 280: | Line 280: | ||
}, | }, | ||
"nocat": { | "nocat": { | ||
"label": " | "label": "カテゴリを無効化", | ||
"description": " | "description": "ページがどのカテゴリにも追加されないようにテンプレートを設定します。技術的な理由により、これにより\"ignoreusage\"も暗黙的に指定されます。クラフトの使用法はこのテンプレートによって設定される非表示カテゴリに依存しているためです。", | ||
"suggestedvalues": [ | "suggestedvalues": [ | ||
"1" | "1" | ||
], | ], | ||
"default": " | "default": "サブ記事または記事名前空間の外ではカテゴリは追加されません。", | ||
"autovalue": "1" | "autovalue": "1" | ||
}, | }, | ||
"type": { | "type": { | ||
"label": " | "label": "レシピの種類", | ||
"description": " | "description": "このレシピのカテゴリを設定します。設定した場合、レシピはクラフト記事の\"完全なレシピリスト\"セクションの対応するサブセクションに自動的に追加されます。\"ignoreusage\"パラメータがアクティブな場合は効果がありません。", | ||
"example": " | "example": "戦闘", | ||
"type": "string", | "type": "string", | ||
"suggestedvalues": [ | "suggestedvalues": [ | ||
" | "建築ブロック", | ||
" | "装飾ブロック", | ||
" | "レッドストーン", | ||
" | "輸送", | ||
" | "食料品", | ||
" | "ツール", | ||
" | "ユーティリティ", | ||
" | "戦闘", | ||
" | "醸造", | ||
" | "素材", | ||
" | "その他" | ||
] | ] | ||
} | } | ||
}, | }, | ||
"description": " | "description": "クラフトレシピをリストするテーブルを構築します。スロット/材料パラメータはインベントリスロットと同じ構文を使用します。", | ||
"paramOrder": [ | "paramOrder": [ | ||
"A1", | "A1", | ||
| Line 346: | Line 346: | ||
}</templatedata> | }</templatedata> | ||
== | == 関連項目 == | ||
{{recipe table see also}} | {{recipe table see also}} | ||
Latest revision as of 06:24, 26 September 2026
このテンプレートを使用すると、ブロックやアイテムに関する記事の「クラフト」および「クラフト材料」セクションで一般的に使用されるようなテーブルを作成できます。{{Crafting Table}}と同様に使用できますが、テーブルを自動的に作成する点が異なります。
デフォルトでは、テーブルは3つの列(名前、材料、および{{Crafting Table}}を含むメイン列)で生成されます。テーブルの最初のテンプレートでパラメータ{{{showname=1}}}または{{{showname=0}}}を設定して、名前列を表示または非表示にすることができます。複数のクラフトテンプレートを1つのテーブルにグループ化するには、テーブルの最初のテンプレートで{{{head=1}}}を設定し、最後のテンプレートで{{{foot=1}}}を設定する必要もあります。説明と呼ばれる4番目の列は、{{{showdescription=1}}}および{{{description=The description for the recipe}}}を使用して追加できます。
不定形レシピを表示するには、すべての材料のグリッド位置を省略するだけです。レシピが不定形で5スロット未満を使用する場合、テンプレートはアイテムを左下のマスに自動的に配置し、インベントリのクラフトエリアでレシピを使用できることを示します。
このテンプレートを「クラフト」セクションの外で使用する場合(例:{{Crafting usage}}の代わりに、またはそれと一緒に)、{{{ignoreusage}}}パラメータを1に設定することが非常に重要です。これにより、テンプレートが{{Crafting usage}}によって追跡されなくなるため、他の記事でそのテンプレートに関する問題が発生するのを防ぐことができます。
使用例:
{{Crafting
|head=1
|B2=Coal
|B3=Stick
|Output=Torch,4
|showdescription=1
|description=The description cell can contain ''formatted'' text.
}}
{{Crafting
|Blaze Powder
|Gunpowder
|Coal
|Output=Fire Charge,3
}}
{{Crafting
|A1= Coal |B1= Coal |C1= Coal
|A2= Coal |B2= Coal |C2= Coal
|A3= Coal |B3= Coal |C3= Coal
|Output=Block of Coal
}}
{{Crafting
|name=[[Pickaxe]]
|ingredients=[[Stick]]s +<br>[[Planks]] or<br> [[Cobblestone]] or<br>[[Iron Ingot]]s or<br>[[Gold Ingot]]s or<br>[[Diamond]]s
|A1=Oak Planks; Cobblestone; Iron Ingot; Gold Ingot; Diamond
|B1=Oak Planks; Cobblestone; Iron Ingot; Gold Ingot; Diamond
|C1=Oak Planks; Cobblestone; Iron Ingot; Gold Ingot; Diamond
|B2=Stick
|B3=Stick
|Output=Wooden Pickaxe; Stone Pickaxe; Iron Pickaxe; Golden Pickaxe; Diamond Pickaxe
|foot=1
}}
出力:
| Ingredients | Crafting recipe | Description |
|---|---|---|
| Coal + Stick |
The description cell can contain formatted text. |
| Ingredients | Crafting recipe |
|---|---|
| Blaze Powder + Gunpowder + Coal |
| Ingredients | Crafting recipe |
|---|---|
| Coal |
| Ingredients | Crafting recipe |
|---|---|
| Sticks + Planks or Cobblestone or Iron Ingots or Gold Ingots or Diamonds |
詳細
関連項目
cs:Šablona:Crafting/doc de:Vorlage:Handwerksrezept/Dokumentation es:Plantilla:Fabricación/doc fr:Modèle:Fabrication/doc it:Template:Fabbricazione/doc ja:テンプレート:Crafting/doc ko:틀:제작/설명문서 lzh:模板:Crafting/doc nl:Sjabloon:Vervaardiging/doc pt:Predefinição:Fabricação/doc ru:Шаблон:Крафт/док th:แม่แบบ:Crafting/doc uk:Шаблон:Майстрування/док zh:Template:Crafting/doc