Templates

From Junk Jack Wiki
Jump to navigation Jump to search

Templates are used to display information...

The code of a template is surrounded by two braces on each side {{ }} and divided into sections by vertical lines (lines, not the number one, not a capital i).


The first section is the name of the template, after that each section is a variable.


Variables are how you input information into the template.
They consist of the variable's name (in most cases), an equal sign, then your input.
You do not need to type out variables if you aren't using them.
This may sound confusing, but is relatively simple when you see it.


See Template Codes for easy copy/pastable versions
See Special:AllPages/Template: for a list of templates

Item

Displays a single item, in a single inventory square.
See Template:Item for more information

Accepted variables:

  • A1: Item's name.
  • #: Item count, displayed in the bottom right.
  • O: "Inventory Outline" (Tool, Consumable, Equip, Treasure, Weapon, Junk, Material, Placeable)
  • E: Encrustment. (Emerald, Ruby, Diamond, Amethyst, Topaz, Sapphire)
  • D: Durability. (0-16)

Left example: {{Item| A1=Plank| #=10| O=Material| E=Emerald}}

Right example: {{Item|A1=Wood Shovel|#=10|D=16}}


Interface Hotslot.png
I Plank.png
Encrustment Emerald.png
10
Interface Hotslot Durability.png
Durability 16.png
I Wood Shovel.png
10



Craft

Displays the crafting grid with appropriate information.
See Template:Craft for more information

Accepted variables:

  • A: Addon. Changes background. (Workbench, Anvil, Cooking Ware, Cooking Pot, Dying, Loom, Mason, Spinning, Tanning, Tinkerer's Tools, Carpentry)
  • A1: The top/left item.
  • A2: The top/middle item.
  • A3: Top/right...
  • B1: Middle/left…
  • B2: Middle/middle…
  • B3: Middle/right...
  • C1: Bottom/left…
  • C2: Bottom/middle…
  • C3: Bottom/right…
  • O: Output item of craft.
  • #: Number of items made.

Example:{{Craft |A=Workbench |A1=Wood |B2=Plank |C3=Plank |O=Wood Shovel |#=7 }}

Workbench Interface.png
.
Crafted Using
Workbench

.

.
I Wood.png
.
I Null.png
.
I Null.png
.
I Null.png
.
I Plank.png
.
I Null.png
.
I Null.png
.
I Null.png
.
I Plank.png
.
I Wood Shovel.png

.

.
7



Forge

Displays the forge interface, complete with adjustable progress bars!
See Template:Forge for more information

Accepted variables:

  • A1: The top/left item. "Smeltee"
  • A2: The top/right item. "Fuel"
  • A3: The output. "Smelted"
  • A1#: Number of items for smeltee.
  • A2#: Number of items for fuel.
  • A3#: Number of items for smelted.
  • B1: Position of green melting progress bar. Accepts 1 through 15, if no input default is 15 (full).
  • B2: Position of heat bar. Accepts 1 through 15, if no input default is 15 (full).

{{Forge| A1=Copper Lump| A1#=5| A2=Wood| A3=Copper Ingot| A3#=10| B1=7| B2=12}}

Example:

Forge Interface.png
Forge Bar 7.png
Heat 12.png
I Copper Lump.png
I Wood.png
I Copper Ingot.png
5
10



Build

Displays up to a 10x4 area of blocks, with several layers. This one takes more explaining… Go here -> Template:Build



Block

Same as Template:Build
But instead of 40 blocks, with 3 layers each. This is one block with 5 layers.

Example: {{Block|A1=Dirt|A12=Copper Ore|A13=Back|A14=Torch}}




Equip

Displays equip pane, with stats panel pulled down
See Template:Equip for more information


  • Name: Player name (default is Player).
  • Health: Health (default is 5.0/5.0)


  • Helm: Head item slot.
  • Helm E: Head encrustment.
  • Chest: Body item.
  • Chest E: Body encrustment.
  • Legs:
  • Legs E;
  • Feet:
  • Feet E:


  • Acc: Accessory item.
  • Acc E: Accessory encrustment.


  • Ammo: Ammo slot item.
  • Ammo E: Ammo encrustment.


  • A1: Top left stat
  • A1: Top right stat
  • B1: Below A1
  • B2: Below A2

(continue pattern to F2)

Example: {{Equip|Name=TwelveFoot|Health=6.7/12|Helm=Copper Armor Helm|Helm E=Sapphire|A1=1|C2=5|F1=14}}

Equip Stats.png
TwelveFoot

6.7/12
1
0
0
0
0
14
0
0
5
0
0
0
Encrustment Sapphire.png



Player

Displays a character, wearing armor or clothes…
See Template:Player for more information

  • Head
  • Chest
  • Legs
  • Feet

Example: {{Player|Helm=Twistrazor Armor Helm|Chest=Green Turtle Chest|Legs=Gold Armor Legs|Feet=Titanium Armor Feet}}



Chemistry

Displays the chemistry bench used for making potions. See Template:Chemistry for more information

Example {{Chemistry|A1=Iguana Tail|A2=Insect Leg|A3=Bone|O=Purple|Size=Major}}


Chemistry Interface.png
Crafted Using
Chemistry Lab
I Iguana Tail.png
I Insect Leg.png
I Bone.png
I Major Potion Bottle.png
Major Potion Indicator.png
I Purple Potion.png
Major Potion Indicator.png


Grassy Field

Displays a mob (generally passive) on a grassy field

Example: {{Grassy Field| Pig}}


B Pig.png
B Dirt.png
B Grass Cover.png
B Dirt.png
B Grass Cover.png
B Dirt.png
B Grass Cover.png



B Link

Displays a block or mob, with name and link aligned below.
See Template:B Link for more information


I Link

This template just like B Link Template but it creates linked images for items!

{I Link| Image| Name| Link}}


Example: {I Link|Torch|A Torch|Torch#Coal Torch}}:
Will display the image of "I_Torch.png", with the name/caption "A Torch", and a link to "Torch#Coal Torch"


If you simply want to display a torch, with a link to Torches, {I Link| Torch}}

If you want to display Torch, with a link to Mobs, {I Link| Torch| Mobs}}

If you want to display Torch, with the name Torch, and a link to Mobs, {I Link|Torch||Mobs}}

Notice: This Template is based on TwelveFoot Original Template:B Link but for items