Feed The Beast Wiki

Follow the Feed The Beast Wiki on Discord or Mastodon!

READ MORE

Feed The Beast Wiki
Line 56: Line 56:
 
== Crafting grids ==
 
== Crafting grids ==
 
<div class="plainlinks" style="text-align:right">'''[http://wiki.feed-the-beast.com/index.php?title={{FULLPAGENAMEE}}&action=purge [Purge&#93;]'''</div>
 
<div class="plainlinks" style="text-align:right">'''[http://wiki.feed-the-beast.com/index.php?title={{FULLPAGENAMEE}}&action=purge [Purge&#93;]'''</div>
{{Project:Template documentation project/Progress bar|20|35}}
+
{{Project:Template documentation project/Progress bar|21|35}}
* {{Status|done|Done.}} {{Tl|Cg/Alloy Furnace}} creates a crafting grid for the [[Alloy Furnace]].
+
* {{Status|alreadydone|Add link.}} {{Tl|Cg/Alloy Furnace}} creates a crafting grid for the [[Alloy Furnace]].
* {{Status|done|Done.}} {{Tl|Cg/Alloy Smelter}} creates a crafting grid for the [[Allow Smelter]].
+
* {{Status|alreadydone|Add link.}} {{Tl|Cg/Alloy Smelter}} creates a crafting grid for the [[Allow Smelter]].
* {{Status|done|Done.}} {{Tl|Cg/Assembling Machine}} creates a crafting grid for the [[Assembling Machine]].
+
* {{Status|alreadydone|Add link.}} {{Tl|Cg/Assembling Machine}} creates a crafting grid for the [[Assembling Machine]].
* {{Status|done|Done.}} {{Tl|Cg/Automatic Canning Machine}} creates a crafting grid for the [[Automatic Canning Machine]].
+
* {{Status|alreadydone|Add link.}} {{Tl|Cg/Automatic Canning Machine}} creates a crafting grid for the [[Automatic Canning Machine]].
* {{Status|done|Done.}} {{Tl|Cg/Automatic Wiremill}} creates a crafting grid for the [[Automatic Wiremill]].
+
* {{Status|alreadydone|Add link.}} {{Tl|Cg/Automatic Wiremill}} creates a crafting grid for the [[Automatic Wiremill]].
* {{Status|done|Done.}} {{Tl|Cg/Canning Machine}} creates a crafting grid for the [[Canning Machine]].
+
* {{Status|alreadydone|Add link.}} {{Tl|Cg/Canning Machine}} creates a crafting grid for the [[Canning Machine]].
 
* {{Status|done|Done.}} {{Tl|Cg/Carpenter}} creates a crafting grid for the [[Carpenter]].
 
* {{Status|done|Done.}} {{Tl|Cg/Carpenter}} creates a crafting grid for the [[Carpenter]].
* {{Status|done|Done.}} {{Tl|Cg/Centrifuge}} creates a crafting grid for the [[Centrifuge]].
+
* {{Status|alreadydone|Add link.}} {{Tl|Cg/Centrifuge}} creates a crafting grid for the [[Centrifuge]].
* {{Status|done|Done.}} {{Tl|Cg/Chemical Reactor}} creates a crafting grid for the [[Chemical Reactor]].
+
* {{Status|alreadydone|Add link.}} {{Tl|Cg/Chemical Reactor}} creates a crafting grid for the [[Chemical Reactor]].
* {{Status|done|Done.}} {{Tl|Cg/Coke Oven}} creates a crafting grid for the [[Coke Oven]].
+
* {{Status|alreadydone|Add link.}} {{Tl|Cg/Coke Oven}} creates a crafting grid for the [[Coke Oven]].
 
* {{Status|wait|Pending...}} {{Tl|Grid/Compressor}} creates a crafting grid for the [[Compressor]].
 
* {{Status|wait|Pending...}} {{Tl|Grid/Compressor}} creates a crafting grid for the [[Compressor]].
 
* {{Status|notdone|Won't create.}} <s>{{Tl|Grid/Crafting Table}} creates a crafting grid for the [[Crafting Table]].</s>
 
* {{Status|notdone|Won't create.}} <s>{{Tl|Grid/Crafting Table}} creates a crafting grid for the [[Crafting Table]].</s>
 
* {{Status|done|Done.}} {{Tl|Cg/Crafting Table}} creates an alternative crafting grid for the [[Crafting Table]].
 
* {{Status|done|Done.}} {{Tl|Cg/Crafting Table}} creates an alternative crafting grid for the [[Crafting Table]].
 
* {{Status|alreadydone|Add link.}} {{Tl|Cg/Distillation Tower}} creates a crafting grid for the [[Distillation Tower]].
{{Cg/Crafting Table
 
|O={{G|Ice}}
 
}}
 
* {{Status|done|Done.}} {{Tl|Cg/Distillation Tower}} creates a crafting grid for the [[Distillation Tower]].
 
 
* {{Status|wait|Pending...}} {{Tl|Grid/Extractor}} creates a crafting grid for the [[Extractor]].
 
* {{Status|wait|Pending...}} {{Tl|Grid/Extractor}} creates a crafting grid for the [[Extractor]].
* {{Status|wait|Pending...}} {{Tl|Grid/Furnace}} creates a crafting grid for the [[Furnace]].
+
* {{Status|done|Done.}} {{Tl|Grid/Furnace}} creates a crafting grid for the [[Furnace]].
* {{Status|done|Done.}} {{Tl|Cg/Fusion Reactor}} creates a crafting grid for the [[Fusion Reactor]].
+
* {{Status|alreadydone|Add link.}} {{Tl|Cg/Fusion Reactor}} creates a crafting grid for the [[Fusion Reactor]].
* {{Status|done|Done.}} {{Tl|Cg/Implosion Compressor}} creates a crafting grid for the [[Implosion Compressor]].
+
* {{Status|alreadydone|Add link.}} {{Tl|Cg/Implosion Compressor}} creates a crafting grid for the [[Implosion Compressor]].
 
* {{Status|wait|Pending...}} {{Tl|Grid/Induction Smelter}} creates a crafting grid for the [[Induction Smelter]].
 
* {{Status|wait|Pending...}} {{Tl|Grid/Induction Smelter}} creates a crafting grid for the [[Induction Smelter]].
* {{Status|done|Done.}} {{Tl|Cg/Industrial Blast Furnace}} creates a crafting grid for the [[Industrial Blast Furnace]].
+
* {{Status|alreadydone|Add link.}} {{Tl|Cg/Industrial Blast Furnace}} creates a crafting grid for the [[Industrial Blast Furnace]].
 
* {{Status|wait|Pending...}} {{Tl|Grid/Industrial Centrifuge}} creates a crafting grid for the [[Industrial Centrifuge]].
 
* {{Status|wait|Pending...}} {{Tl|Grid/Industrial Centrifuge}} creates a crafting grid for the [[Industrial Centrifuge]].
 
* {{Status|wait|Pending...}} {{Tl|Grid/Industrial Electrolyzer}} creates a crafting grid for the [[Industrial Electrolyzer]].
 
* {{Status|wait|Pending...}} {{Tl|Grid/Industrial Electrolyzer}} creates a crafting grid for the [[Industrial Electrolyzer]].
* {{Status|done|Done.}} {{Tl|Cg/Industrial Grinder}} creates a crafting grid for the [[Industrial Grinder]].
+
* {{Status|alreadydone|Add link.}} {{Tl|Cg/Industrial Grinder}} creates a crafting grid for the [[Industrial Grinder]].
* {{Status|done|Done.}} {{Tl|Cg/Industrial Sawmill}} creates a crafting grid for the [[Industrial Sawmill]].
+
* {{Status|alreadydone|Add link.}} {{Tl|Cg/Industrial Sawmill}} creates a crafting grid for the [[Industrial Sawmill]].
 
* {{Status|wait|Pending...}} {{Tl|Grid/Liquid Transposer}} creates a crafting grid for the [[Liquid Transposer]].
 
* {{Status|wait|Pending...}} {{Tl|Grid/Liquid Transposer}} creates a crafting grid for the [[Liquid Transposer]].
 
* {{Status|wait|Pending...}} {{Tl|Grid/Macerator}} creates a crafting grid for the [[Macerator]].
 
* {{Status|wait|Pending...}} {{Tl|Grid/Macerator}} creates a crafting grid for the [[Macerator]].
 
* {{Status|wait|Pending...}} {{Tl|Grid/Magma Crucible}} creates a crafting grid for the [[Magma Crucible]].
 
* {{Status|wait|Pending...}} {{Tl|Grid/Magma Crucible}} creates a crafting grid for the [[Magma Crucible]].
* {{Status|done|Done.}} {{Tl|Cg/Plate Bending Machine}} creates a crafting grid for the [[Plate Bending Machine]].
+
* {{Status|alreadydone|Add link.}} {{Tl|Cg/Plate Bending Machine}} creates a crafting grid for the [[Plate Bending Machine]].
 
* {{Status|wait|Pending...}} {{Tl|Grid/Powered Furnace}} creates a crafting grid for the [[Power Furnace]].
 
* {{Status|wait|Pending...}} {{Tl|Grid/Powered Furnace}} creates a crafting grid for the [[Power Furnace]].
 
* {{Status|wait|Pending...}} {{Tl|Grid/Pulverizer}} creates a crafting grid for the [[Pulverizer]].
 
* {{Status|wait|Pending...}} {{Tl|Grid/Pulverizer}} creates a crafting grid for the [[Pulverizer]].
Line 94: Line 91:
 
* {{Status|wait|Pending...}} {{Tl|Grid/Squeezer}} creates a crafting grid for the [[Squeezer]].
 
* {{Status|wait|Pending...}} {{Tl|Grid/Squeezer}} creates a crafting grid for the [[Squeezer]].
 
* {{Status|wait|Pending...}} {{Tl|Grid/Thermionic Fabricator}} creates a crafting grid for the [[Thermionic Fabricator]].
 
* {{Status|wait|Pending...}} {{Tl|Grid/Thermionic Fabricator}} creates a crafting grid for the [[Thermionic Fabricator]].
* {{Status|done|Done.}} {{Tl|Cg/Vacuum Freezer}} creates a crafting grid for the [[Vacuum Freezer]].
+
* {{Status|alreadydone|Add link.}} {{Tl|Cg/Vacuum Freezer}} creates a crafting grid for the [[Vacuum Freezer]].
   
 
== Crafting grids documentation ==
 
== Crafting grids documentation ==

Revision as of 10:15, 21 August 2013

Welcome to the Template documentation project.

Warning

The new system will not be backwards compatible, old crafting grids will be automatically converted to the new crafting grids. You are safe to continue to use the current system but please do not modify the old grid templates.

Goals

  • Remove the animation frames limit
  • Introduce oreDict support.
  • Increase the implementation of stuff that grids support.
  • Improve the readability of templates in articles.
  • Ease the creation of crafting grid templates.
  • ...and more...

Links

Progress

 
72% (18/25)
72% (18/25)

Preparations

  • Yes checkDone. Protect crafting grid templates.

Code

  • Black checkAlready done. Code animation.
  • Yes checkDone. Code crafting grid controls.

Grid

  • Yes checkDone. Style grids.
  • Yes checkDone. Create grids template.

Animation

  • Yes checkDone. Create crafting grid controls to flip through different crafting recipes.
  • Yes checkDone. Create "activate animation" wrapping metatemplate.
  • Yes checkDone. Create "activate controls" wrapping metatemplate.

Tooltips

  • Yes checkDone. Code support for variables in tooltips.

Ore Dictionary

  • Yes checkDone. Create Ore Dictionary template
  • Yes checkDone. Create Ore Dictionary activation template
  • Yellow checkIn progress... Populate Ore Dictionary

Tanks

  • Yes checkDone. Create tanks template.
  • Yes checkDone. Tank image truncation script.
  • Yes checkDone. Tank image helper.

Crafting Grids

  • Yes checkDone. Create "cells" metatemplate for crafting grid creation.
  • Yes checkDone. Create "tanks" metatemplate for crafting grid creation.
  • Yes checkDone. Create a crafting grid metatemplate.
  • Yellow checkIn progress... Recreate all crafting grids.
  • Yes checkDone. Create documentation cell.

Cleanup

  • Yellow checkIn progress... Move new templates into position.
  • Pictogram voting waitPending... Bot: Convert old template to new templates.
  • Pictogram voting waitPending... Unprotect crafting grid templates.
  • Pictogram voting waitPending... Document templates.
  • Pictogram voting waitPending... Update templates associated with grids. (Infoboxes)

Crafting grids

 
60% (21/35)
60% (21/35)

Crafting grids documentation

 
2.8571% (1/35)
2.8571% (1/35)
  • Pictogram voting waitPending... {{Grid/Alloy Furnace}} creates a crafting grid for the Alloy Furnace.
  • Pictogram voting waitPending... {{Grid/Alloy Smelter}} creates a crafting grid for the Allow Smelter.
  • Pictogram voting waitPending... {{Grid/Assembling Machine}} creates a crafting grid for the Assembling Machine.
  • Pictogram voting waitPending... {{Grid/Automatic Canning Machine}} creates a crafting grid for the Automatic Canning Machine.
  • Pictogram voting waitPending... {{Grid/Automatic Wiremill}} creates a crafting grid for the Automatic Wiremill.
  • Pictogram voting waitPending... {{Grid/Canning Machine}} creates a crafting grid for the Canning Machine.
  • Pictogram voting waitPending... {{Grid/Carpenter}} creates a crafting grid for the Carpenter.
  • Pictogram voting waitPending... {{Grid/Centrifuge}} creates a crafting grid for the Centrifuge.
  • Pictogram voting waitPending... {{Grid/Chemical Reactor}} creates a crafting grid for the Chemical Reactor.
  • Pictogram voting waitPending... {{Cg/Coke Oven}} creates a crafting grid for the Coke Oven.
  • Pictogram voting waitPending... {{Grid/Compressor}} creates a crafting grid for the Compressor.
  • X markWon't create. {{Grid/Crafting Table}} creates a crafting grid for the Crafting Table.
  • Pictogram voting waitPending... {{Grid/Crafting Table2}} creates an alternative crafting grid for the Crafting Table.
  • Pictogram voting waitPending... {{Grid/Distillation Tower}} creates a crafting grid for the Distillation Tower.
  • Pictogram voting waitPending... {{Grid/Extractor}} creates a crafting grid for the Extractor.
  • Pictogram voting waitPending... {{Grid/Furnace}} creates a crafting grid for the Furnace.
  • Pictogram voting waitPending... {{Grid/Fusion Reactor}} creates a crafting grid for the Fusion Reactor.
  • Pictogram voting waitPending... {{Grid/Implosion Compressor}} creates a crafting grid for the Implosion Compressor.
  • Pictogram voting waitPending... {{Grid/Induction Smelter}} creates a crafting grid for the Induction Smelter.
  • Pictogram voting waitPending... {{Grid/Industrial Blast Furnace}} creates a crafting grid for the Industrial Blast Furnace.
  • Pictogram voting waitPending... {{Grid/Industrial Centrifuge}} creates a crafting grid for the Industrial Centrifuge.
  • Pictogram voting waitPending... {{Grid/Industrial Electrolyzer}} creates a crafting grid for the Industrial Electrolyzer.
  • Pictogram voting waitPending... {{Grid/Industrial Grinder}} creates a crafting grid for the Industrial Grinder.
  • Pictogram voting waitPending... {{Grid/Industrial Sawmill}} creates a crafting grid for the Industrial Sawmill.
  • Pictogram voting waitPending... {{Grid/Liquid Transposer}} creates a crafting grid for the Liquid Transposer.
  • Pictogram voting waitPending... {{Grid/Macerator}} creates a crafting grid for the Macerator.
  • Pictogram voting waitPending... {{Grid/Magma Crucible}} creates a crafting grid for the Magma Crucible.
  • Pictogram voting waitPending... {{Grid/Plate Bending Machine}} creates a crafting grid for the Plate Bending Machine.
  • Pictogram voting waitPending... {{Grid/Powered Furnace}} creates a crafting grid for the Power Furnace.
  • Pictogram voting waitPending... {{Grid/Pulverizer}} creates a crafting grid for the Pulverizer.
  • Pictogram voting waitPending... {{Grid/Rolling Machine}} creates a crafting grid for the Rolling Machine.
  • Pictogram voting waitPending... {{Grid/Sawmill}} creates a crafting grid for the Sawmill.
  • Pictogram voting waitPending... {{Grid/Squeezer}} creates a crafting grid for the Squeezer.
  • Pictogram voting waitPending... {{Grid/Thermionic Fabricator}} creates a crafting grid for the Thermionic Fabricator.
  • Pictogram voting waitPending... {{Grid/Vacuum Freezer}} creates a crafting grid for the Vacuum Freezer.

Scope

  • Crafting grids and related templates.

Project Members

Please add your name to the list if you wish to participate in this project.

Template list

This is a list of experimental and final templates that the project is currently using.

Experimental templates

  • {{X1}} -
  • {{X2}} -
  • {{X3}} -
  • {{X4}} -
  • {{X5}} -
  • {{X6}} - Animation/slideshow wrapper
  • {{X7}} -
  • {{X8}} -
  • {{X9}} -

Final templates

  • {{G}} - Main grid wrapper.
  • {{Cg}} - Crafting grid components.
  • {{G/Dict}} - Ore Dictionary.
  • {{G/Mods}} - Resolves mod names.
  • {{G/T}} > {{G/Tank}} - Single tank wrapper.
  • {{Gc}} > {{G/Cell}} - Grid display logic.
  • {{Gcd}} > {{G/Cell doc}} - Documentation cell
  • {{O}} > {{G/O}} - Ore dictionary wrapper, call by tag.
  • {{S}} - Creates a string wrapped in the span tag, used in crafting grids.
  • {{T}} - Liquid display logic, used in crafting grids.

Prototypes

Working prototypes

Future code example

Single crafting grids

This is what the code to create single crafting grids will look like in the future.

{{Furnace
 |I={{G|Oak Wood}}
 |O={{G|Charcoal}}
 |F={{G|Oak Wood Planks|tooltiptext=$1<br><span class="tcAspectTooltipDesc">Can smelt 1.5 items.</span>}}
}}
Code Explanation
  • Line 1: No more Grid/ prefix in front of crafting grid templates.
  • Line 2-4: Instead of providing a list of items to the crafting grid template, you give it a list of grids that can be fully customized. A redirect will be made for less typing (G->Grid).
  • {{G|Oak Wood}} and {{G|Oak Wood Planks|...}}: A animation will display ore dict compatible items.
  • {{G|Oak Wood Planks|tooltiptext=$1<br><span class="tcAspectTooltipDesc">Can smelt 1.5 items.</span>}}: Demonstrates that grids in crafting grids can be fully customized. And that tooltips will support variables.

Multiple crafting grids

This is what the code to create multiple crafting grids will look like in the future. Instead of flipping through animations automatically by the script, the user must flip through them manually with the controls provided.

{{Furnace
 |I={{G|Oak Wood|16}}{{G|Clay|9}}
 |O={{G|Charcoal|16}}{{G|Brick|9}}
 |F={{G|Charcoal|2|tooltiptext=Charcoal<br><span class="tcAspectTooltipDesc">Can smelt 8 items.</span>}}{{G|Oak Wood Planks|6|tooltiptext=$1<br><span class="tcAspectTooltipDesc">Can smelt 1.5 items.</span>}}
}}

Crafting grid creation

This is an example of how crafting grids will be created in the future. Ideally, templates used here should be substituted to allow for shallower expansion depth, however, by not substituting the templates you increase the maintainability of these crafting grids.

{{Crafting grid/Start}}
{{Crafting grid/Image|Link to image|style=Additional styles|class=Additional classes}}
{{Crafting grid/Cell|{{{1|{{{A1}}} }}}|X position|Y position|style=Additional styles|class=Additional classes}}
...
{{Crafting grid/Cell|{{{9|{{{C3}}} }}}|X position|Y position|style=Additional styles|class=Additional classes}}
...
{{Crafting grid/Tank|{{{liquid}}}|X position|Y position|style=Additional styles|class=Additional classes}}
{{Crafting grid/End}}