Feed The Beast Wiki

Follow the Feed The Beast Wiki on Discord or Mastodon!

READ MORE

Feed The Beast Wiki
Advertisement

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

 
92% (23/25)
92% (23/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
  • Yes checkDone. 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.
  • Yes checkDone. Recreate all crafting grids.
  • Yes checkDone. Create documentation cell.

Cleanup

Crafting grids

 
100% (42/42)
100% (42/42)

Crafting grids documentation

 
100% (42/42)
100% (42/42)

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

Final templates

  • Yes checkDocumented. {{G}} - Main grid wrapper.
  • Yellow checkIn progress... {{Cg}} - Crafting grid components.
  • X markDeprecated. {{G/Dict}} - Ore Dictionary.
  • Yes checkDocumented. {{G/Mods}} - Resolves mod names.
  • Yes checkDocumented. {{G/T}} > {{G/Tank}} - Single tank wrapper.
  • Yes checkDocumented. {{Gc}} > {{G/Cell}} - Grid display logic.
  • Yes checkDocumented. {{Gcd}} > {{G/Cell doc}} - Documentation cell
  • Yellow checkIn progress... {{I}} - Creates a image wrapped in the span tag, used in crafting grids.
  • Yellow checkIn progress... {{N}} - Animation/slideshow wrapper
  • Yellow checkIn progress... {{O}} > {{G/O}} - Ore dictionary wrapper, call by tag.
  • Yellow checkIn progress... {{S}} - Creates a string wrapped in the span tag, used in crafting grids.
  • Yes checkDocumented. {{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}}
Advertisement