Šablonas:Crafting Table/doc

Iš MCSlime.LT.
Pereiti į navigaciją Jump to search
This is the documentation page. It should be transcluded into the main template page. See Template:Documentation for more information
{{
 #if: 
|

}}{{

 #if: Lua logo.svg
|

}} {{

 #if: 
 | 

}}{{

  #if:Lua logo.svg
  |{{
     #if:  
     | Lua logo.svg 
     | 32px }}}}

}}}}{{

 #if: 
|

}}{{

 #if: Lua logo.svg
|

}}

{{
 #if: 
 | {{{title}}} {{
   #if: 
   | [[{{fullurl:{{
     #if: 
     | {{{discussPage}}}
     | Šablono aptarimas:Crafting Table/doc
   }}{{
     #if: 
     | #{{{discussAnchor}}}
   }}|{{#if:|{{{qs}}}|{{#sub:{{
 #if:  | &action={{{action}}}

}}{{

 #if:  | &redirect={{{redirect}}}

}}{{

 #if:  | &profile={{{profile}}}

}}|1}}}}}} discuss]

 }}

}}{{

 #if: 
 | {{#if:|, links]|[links]}}
 | {{
   #if:
   |]
 }}

}} {{

 #if: This {{#ifeq:10|828|module depends on|template uses}} Module:UI, {{ #if:  | with data stored in [[Module:]]{{ #if:  |  and [[Module:]] }} | a script written in Lua }}.
{{ #if: | These scripts are written in Lua. }}
|
This {{#ifeq:10|828|module depends on|template uses}} Module:UI, {{ #if: | with data stored in [[Module:]]{{ #if: | and [[Module:]] }} | a script written in Lua }}.
{{ #if: | These scripts are written in Lua. }}

}}

{{

  1. if:

| | {{#switch: doc

 | doc | sandbox | testcases =
 | {{#switch: 10
   | 0 | 10 =
   }}
 }}

}} This template is used to create an interface that looks similar to the Crafting Table's.

See Template:Inventory slot for basic usage, this documentation page will cover additional or different functions.

Most of the time, such as when creating the list of crafting recipes on an item's article, {{#if:{{#switch: yes

| y | yes | t | true  | on  | 1 = yes
| n | no  | f | false | off | 0 | = 
| =  
| #default = yes

}}|}}{{{{#if: |subst: }}[[{{#if: {{#pos: Crafting | : }} || Template: }}Crafting|{{ #ifeq: | Template | Crafting | Crafting }}]]{{ #if: | | }}{{ #if: | | }}{{ #if: | | }}{{ #if: | | }}{{ #if: | | }}{{ #if: | | }}{{ #if: | | }}{{ #if: | | }}}}{{#if:{{#switch: yes

| y | yes | t | true  | on  | 1 = yes
| n | no  | f | false | off | 0 | = 
| =  
| #default = yes

}}|}}{{#if: {{#pos: Crafting | File: }}{{#pos: Crafting | Category: }} | }} can be used instead.

Usage[redaguoti vikitekstą]

{{Crafting Table
|A1=  |B1=                 |C1= 
|A2=  |B2= Oak Wood Planks |C2= 
|A3=  |B3= Oak Wood Planks |C3= 
|Output= Stick,4
}}
produces

4

Shapeless[redaguoti vikitekstą]

If a recipe is shapeless, add shapeless=1 to the template, which will display an icon which when hovered over explains what a shapeless recipe is.

{{Crafting Table
|shapeless= 1
|A1=  |B1= Blaze Powder  |C1= 
|A2=  |B2= Coal,Charcoal |C2= 
|A3=  |B3= Gunpowder     |C3= 
|Output= Fire Charge,3
}}
produces

3

The shapeless parameter does not support animation, so shapeless and non-shapeless recipes cannot be combined.

Fixed[redaguoti vikitekstą]

If a recipe is fixed, add fixed=1 to the template, which will display an icon which when hovered over explains what a fixed recipe is. The notfixed parameter can also be set to specify exceptions.

{{Crafting Table
|fixed= 1
|notfixed= the banner
                  |B2= Banner
|A3= Lapis Lazuli |B3= Lapis Lazuli |C3= Lapis Lazuli
|Output= Blue Base Banner
}}
produces


The fixed parameter does not support animation, so fixed, shapeless and normal recipes cannot be combined.

Animated[redaguoti vikitekstą]

To make the slots animate, you make a list of blocks and objects you want to show, separated by semi-colons.

{{Crafting Table
|A1= ; Lapis Lazuli |B1=                   ; Lapis Lazuli |C1= ; Lapis Lazuli
|A2= ; Lapis Lazuli |B2= Lapis Lazuli Block; Lapis Lazuli |C2= ; Lapis Lazuli
|A3= ; Lapis Lazuli |B3=                   ; Lapis Lazuli |C3= ; Lapis Lazuli
|Output= Lapis Lazuli,9; Lapis Lazuli Block
}}
produces

9
{{Crafting Table
|A1= Iron Ingot; Gold Ingot; Diamond; Lapis Lazuli; Netherite Ingot
|B1= Iron Ingot; Gold Ingot; Diamond; Lapis Lazuli; Netherite Ingot
|C1= Iron Ingot; Gold Ingot; Diamond; Lapis Lazuli; Netherite Ingot
 |A2= Iron Ingot; Gold Ingot; Diamond; Lapis Lazuli; Netherite Ingot
 |B2= Iron Ingot; Gold Ingot; Diamond; Lapis Lazuli; Netherite Ingot
 |C2= Iron Ingot; Gold Ingot; Diamond; Lapis Lazuli; Netherite Ingot
  |A3= Iron Ingot; Gold Ingot; Diamond; Lapis Lazuli; Netherite Ingot
  |B3= Iron Ingot; Gold Ingot; Diamond; Lapis Lazuli; Netherite Ingot
  |C3= Iron Ingot; Gold Ingot; Diamond; Lapis Lazuli; Netherite Ingot
|Output= Block of Iron; Block of Gold; Block of Diamond; Lapis Lazuli Block; Block of Netherite
}}
produces

Mods[redaguoti vikitekstą]

Mod images and normal images can be combined just like in a single slot. However, this usage is not recommended, as mod pages are currently being transferred to the FTB Wiki.

See also[redaguoti vikitekstą]

  • {{#if:{{#switch: yes
| y | yes | t | true  | on  | 1 = yes
| n | no  | f | false | off | 0 | = 
| =  
| #default = yes

}}|}}{{{{#if: |subst: }}[[{{#if: {{#pos: Crafting Table | : }} || Template: }}Crafting Table|{{ #ifeq: | Template | Crafting Table | Crafting Table }}]]{{ #if: | | }}{{ #if: | | }}{{ #if: | | }}{{ #if: | | }}{{ #if: | | }}{{ #if: | | }}{{ #if: | | }}{{ #if: | | }}}}{{#if:{{#switch: yes

| y | yes | t | true  | on  | 1 = yes
| n | no  | f | false | off | 0 | = 
| =  
| #default = yes

}}|}}{{#if: {{#pos: Crafting Table | File: }}{{#pos: Crafting Table | Category: }} | }}

  • {{#if:{{#switch: yes
| y | yes | t | true  | on  | 1 = yes
| n | no  | f | false | off | 0 | = 
| =  
| #default = yes

}}|}}{{{{#if: |subst: }}[[{{#if: {{#pos: Inventory Table | : }} || Template: }}Inventory Table|{{ #ifeq: | Template | Inventory Table | Inventory Table }}]]{{ #if: | | }}{{ #if: | | }}{{ #if: | | }}{{ #if: | | }}{{ #if: | | }}{{ #if: | | }}{{ #if: | | }}{{ #if: | | }}}}{{#if:{{#switch: yes

| y | yes | t | true  | on  | 1 = yes
| n | no  | f | false | off | 0 | = 
| =  
| #default = yes

}}|}}{{#if: {{#pos: Inventory Table | File: }}{{#pos: Inventory Table | Category: }} | }}

  • {{#if:{{#switch: yes
| y | yes | t | true  | on  | 1 = yes
| n | no  | f | false | off | 0 | = 
| =  
| #default = yes

}}|}}{{{{#if: |subst: }}[[{{#if: {{#pos: Furnace | : }} || Template: }}Furnace|{{ #ifeq: | Template | Furnace | Furnace }}]]{{ #if: | | }}{{ #if: | | }}{{ #if: | | }}{{ #if: | | }}{{ #if: | | }}{{ #if: | | }}{{ #if: | | }}{{ #if: | | }}}}{{#if:{{#switch: yes

| y | yes | t | true  | on  | 1 = yes
| n | no  | f | false | off | 0 | = 
| =  
| #default = yes

}}|}}{{#if: {{#pos: Furnace | File: }}{{#pos: Furnace | Category: }} | }}

  • {{#if:{{#switch: yes
| y | yes | t | true  | on  | 1 = yes
| n | no  | f | false | off | 0 | = 
| =  
| #default = yes

}}|}}{{{{#if: |subst: }}[[{{#if: {{#pos: Brewing Stand | : }} || Template: }}Brewing Stand|{{ #ifeq: | Template | Brewing Stand | Brewing Stand }}]]{{ #if: | | }}{{ #if: | | }}{{ #if: | | }}{{ #if: | | }}{{ #if: | | }}{{ #if: | | }}{{ #if: | | }}{{ #if: | | }}}}{{#if:{{#switch: yes

| y | yes | t | true  | on  | 1 = yes
| n | no  | f | false | off | 0 | = 
| =  
| #default = yes

}}|}}{{#if: {{#pos: Brewing Stand | File: }}{{#pos: Brewing Stand | Category: }} | }}

  • {{#if:{{#switch: yes
| y | yes | t | true  | on  | 1 = yes
| n | no  | f | false | off | 0 | = 
| =  
| #default = yes

}}|}}{{{{#if: |subst: }}[[{{#if: {{#pos: Stonecutter | : }} || Template: }}Stonecutter|{{ #ifeq: | Template | Stonecutter | Stonecutter }}]]{{ #if: | | }}{{ #if: | | }}{{ #if: | | }}{{ #if: | | }}{{ #if: | | }}{{ #if: | | }}{{ #if: | | }}{{ #if: | | }}}}{{#if:{{#switch: yes

| y | yes | t | true  | on  | 1 = yes
| n | no  | f | false | off | 0 | = 
| =  
| #default = yes

}}|}}{{#if: {{#pos: Stonecutter | File: }}{{#pos: Stonecutter | Category: }} | }}

  • {{#if:{{#switch: yes
| y | yes | t | true  | on  | 1 = yes
| n | no  | f | false | off | 0 | = 
| =  
| #default = yes

}}|}}{{{{#if: |subst: }}[[{{#if: {{#pos: Loom | : }} || Template: }}Loom|{{ #ifeq: | Template | Loom | Loom }}]]{{ #if: | | }}{{ #if: | | }}{{ #if: | | }}{{ #if: | | }}{{ #if: | | }}{{ #if: | | }}{{ #if: | | }}{{ #if: | | }}}}{{#if:{{#switch: yes

| y | yes | t | true  | on  | 1 = yes
| n | no  | f | false | off | 0 | = 
| =  
| #default = yes

}}|}}{{#if: {{#pos: Loom | File: }}{{#pos: Loom | Category: }} | }}

  • {{#if:{{#switch: yes
| y | yes | t | true  | on  | 1 = yes
| n | no  | f | false | off | 0 | = 
| =  
| #default = yes

}}|}}{{{{#if: |subst: }}[[{{#if: {{#pos: Grindstone | : }} || Template: }}Grindstone|{{ #ifeq: | Template | Grindstone | Grindstone }}]]{{ #if: | | }}{{ #if: | | }}{{ #if: | | }}{{ #if: | | }}{{ #if: | | }}{{ #if: | | }}{{ #if: | | }}{{ #if: | | }}}}{{#if:{{#switch: yes

| y | yes | t | true  | on  | 1 = yes
| n | no  | f | false | off | 0 | = 
| =  
| #default = yes

}}|}}{{#if: {{#pos: Grindstone | File: }}{{#pos: Grindstone | Category: }} | }}

  • {{#if:{{#switch: yes
| y | yes | t | true  | on  | 1 = yes
| n | no  | f | false | off | 0 | = 
| =  
| #default = yes

}}|}}{{{{#if: |subst: }}[[{{#if: {{#pos: Hotbar | : }} || Template: }}Hotbar|{{ #ifeq: | Template | Hotbar | Hotbar }}]]{{ #if: | | }}{{ #if: | | }}{{ #if: | | }}{{ #if: | | }}{{ #if: | | }}{{ #if: | | }}{{ #if: | | }}{{ #if: | | }}}}{{#if:{{#switch: yes

| y | yes | t | true  | on  | 1 = yes
| n | no  | f | false | off | 0 | = 
| =  
| #default = yes

}}|}}{{#if: {{#pos: Hotbar | File: }}{{#pos: Hotbar | Category: }} | }}

  • {{#if:{{#switch: yes
| y | yes | t | true  | on  | 1 = yes
| n | no  | f | false | off | 0 | = 
| =  
| #default = yes

}}|}}{{{{#if: |subst: }}[[{{#if: {{#pos: Inventory | : }} || Template: }}Inventory|{{ #ifeq: | Template | Inventory | Inventory }}]]{{ #if: | | }}{{ #if: | | }}{{ #if: | | }}{{ #if: | | }}{{ #if: | | }}{{ #if: | | }}{{ #if: | | }}{{ #if: | | }}}}{{#if:{{#switch: yes

| y | yes | t | true  | on  | 1 = yes
| n | no  | f | false | off | 0 | = 
| =  
| #default = yes

}}|}}{{#if: {{#pos: Inventory | File: }}{{#pos: Inventory | Category: }} | }}

  • {{#if:{{#switch: yes
| y | yes | t | true  | on  | 1 = yes
| n | no  | f | false | off | 0 | = 
| =  
| #default = yes

}}|}}{{{{#if: |subst: }}[[{{#if: {{#pos: Inventory slot | : }} || Template: }}Inventory slot|{{ #ifeq: | Template | Inventory slot | Inventory slot }}]]{{ #if: | | }}{{ #if: | | }}{{ #if: | | }}{{ #if: | | }}{{ #if: | | }}{{ #if: | | }}{{ #if: | | }}{{ #if: | | }}}}{{#if:{{#switch: yes

| y | yes | t | true  | on  | 1 = yes
| n | no  | f | false | off | 0 | = 
| =  
| #default = yes

}}|}}{{#if: {{#pos: Inventory slot | File: }}{{#pos: Inventory slot | Category: }} | }}


de:Vorlage:Grid/Crafting Table/doc es:Plantilla:Mesa de trabajo/doc fr:Modèle:Grille/Établi/doc ja:テンプレート:Crafting Table/doc ko:틀:Crafting Table/doc nl:Template:Grid/Crafting Table/doc pl:Szablon:Grid/Crafting Table/doc pt:Predefinição:Bancada de trabalho/doc ru:Шаблон:Верстак/док uk:Шаблон:Верстак/док zh:Template:Crafting Table/doc