Difference between revisions of "Template:Crafting"

From ComputerCraft Wiki
Jump to: navigation, search
m
m
Line 1: Line 1:
 
<includeonly><div style="width:256px;height:132px">[[File:Empty-crafting-table.png|link=]]<div style="position:relative;top:-118px;left:14px">{{
 
<includeonly><div style="width:256px;height:132px">[[File:Empty-crafting-table.png|link=]]<div style="position:relative;top:-118px;left:14px">{{
  #if: {{{A1|}}} | <div style="width:32px;height:32px;position:absolute">[[File:Grid {{{A1}}}.png|link={{{A1}}}]]</div> }}{{
+
  #if: {{{A1|}}} | <div style="width:32px;height:32px;position:absolute">[[File:Grid {{{A1}}}.png|link={{{A1}}}|32px]]</div> }}{{
  #if: {{{B1|}}} | <div style="left:36px;width:32px;height:32px;position:absolute">[[File:Grid {{{B1}}}.png|link={{{B1}}}]]</div> }}{{
+
  #if: {{{B1|}}} | <div style="left:36px;width:32px;height:32px;position:absolute">[[File:Grid {{{B1}}}.png|link={{{B1}}}|32px]]</div> }}{{
  #if: {{{C1|}}} | <div style="left:72px;width:32px;height:32px;position:absolute">[[File:Grid {{{C1}}}.png|link={{{C1}}}]]</div> }}{{
+
  #if: {{{C1|}}} | <div style="left:72px;width:32px;height:32px;position:absolute">[[File:Grid {{{C1}}}.png|link={{{C1}}}|32px]]</div> }}{{
  #if: {{{A2|}}} | <div style="top:36px;width:32px;height:32px;position:absolute">[[File:Grid {{{A2}}}.png|link={{{A2}}}]]</div> }}{{
+
  #if: {{{A2|}}} | <div style="top:36px;width:32px;height:32px;position:absolute">[[File:Grid {{{A2}}}.png|link={{{A2}}}|32px]]</div> }}{{
  #if: {{{B2|}}} | <div style="top:36px;left:36px;width:32px;height:32px;position:absolute">[[File:Grid {{{B2}}}.png|link={{{B2}}}]]</div> }}{{
+
  #if: {{{B2|}}} | <div style="top:36px;left:36px;width:32px;height:32px;position:absolute">[[File:Grid {{{B2}}}.png|link={{{B2}}}|32px]]</div> }}{{
  #if: {{{C2|}}} | <div style="top:36px;left:72px;width:32px;height:32px;position:absolute">[[File:Grid {{{C2}}}.png|link={{{C2}}}]]</div> }}{{
+
  #if: {{{C2|}}} | <div style="top:36px;left:72px;width:32px;height:32px;position:absolute">[[File:Grid {{{C2}}}.png|link={{{C2}}}|32px]]</div> }}{{
  #if: {{{Output|}}} | <div style="top:36px;left:188px;width:32px;height:32px;position:absolute">[[File:Grid {{{Output}}}.png|link={{#if:{{{Output-link|}}}|{{{Output-link}}}|{{{Output}}}}}]]</div> }}{{
+
  #if: {{{Output|}}} | <div style="top:36px;left:188px;width:32px;height:32px;position:absolute">[[File:Grid {{{Output}}}.png|link={{#if:{{{Output-link|}}}|{{{Output-link}}}|{{{Output}}}}}|32px]]</div> }}{{
  #if: {{{A3|}}} | <div style="top:72px;width:32px;height:32px;position:absolute">[[File:Grid {{{A3}}}.png|link={{{A3}}}]]</div> }}{{
+
  #if: {{{A3|}}} | <div style="top:72px;width:32px;height:32px;position:absolute">[[File:Grid {{{A3}}}.png|link={{{A3}}}|32px]]</div> }}{{
  #if: {{{B3|}}} | <div style="top:72px;left:36px;width:32px;height:32px;position:absolute">[[File:Grid {{{B3}}}.png|link={{{B3}}}]]</div> }}{{
+
  #if: {{{B3|}}} | <div style="top:72px;left:36px;width:32px;height:32px;position:absolute">[[File:Grid {{{B3}}}.png|link={{{B3}}}|32px]]</div> }}{{
  #if: {{{C3|}}} | <div style="top:72px;left:72px;width:32px;height:32px;position:absolute">[[File:Grid {{{C3}}}.png|link={{{C3}}}]]</div>
+
  #if: {{{C3|}}} | <div style="top:72px;left:72px;width:32px;height:32px;position:absolute">[[File:Grid {{{C3}}}.png|link={{{C3}}}|32px]]</div>
 
}}</div></div></includeonly><noinclude>{{Documentation}}</noinclude>
 
}}</div></div></includeonly><noinclude>{{Documentation}}</noinclude>

Revision as of 06:14, 4 August 2020

[ view | edit | history ] Documentation

This is the standard Minecraft crafting grid.

The name of the images should be in the form of "grid_<name of the item>.png". E.g. the Computer image is named "Grid_Computer.png". Clicking on it will go to the page Computer.

usage:

{{Crafting
 |A1=Computer
 |B3=Disk_Drive
 |Output=Computer
}}

result:

Empty-crafting-table.png
Grid Computer.png
Grid Computer.png
Grid Disk Drive.png