Template:Alchemy tree/doc

From SpiralKnights

Revision as of 00:47, 23 January 2015 by Novaster (Talk | contribs)

Jump to: navigation, search

Usage

This is a template structure used for creating alchemy trees.

Parameters

Required
None.

Optional
name : The name of the item to appear in the tree [defaults to blank].
rows : The number of rows the cell should take up [defaults to 1]
minSize : Set to true to pack the cell as small as possible. Reduces icon size, removes padding, and attempts to align text as strategically as possible. [defaults to blank, the "normal" setting.]

Instructions to Create a Tree

1. Start a SKWindowsmall.
2. Create a table within the SKWindowsmall template with style="background: #114255;".
3. Add in the Alchemy path header.
4. For each cell, call this template. The ordering of each cells should be from left to right.
5. When an alchemy line terminates, add a {{SKWindow/NewRow}} to continue onto the next line.
6. Finish the table and close the SKWindowsmall template.

Tips and Tricks
It is easiest to copy the structure from either an existing tree or the example code below.
The number of "rows" in the parameters, is the number of possible items that can be crafted from the current item.
Despite not having any "craftable" items, empty spaces before items must be placed with correct rows to ensure the table is output correctly.

Example Code and Appearance

The code:
(This does not go on individual pages, it is used to build a template for an item's tree that is copy/pasted onto the relevant pages for that item):
{{SKWindowsmall
| title = {{PAGENAME}}'s alchemy path
| body =
{{SKWindow/NewRow}}
{{Alchemy paths header}}
{{SKWindow/NewRow}}
{{Alchemy tree|name=|rows=6}}
{{Alchemy tree|name=|rows=6}}
{{Alchemy tree|name=Brandish|rows=6}}
{{Alchemy tree|name=Cautery Sword|rows=1}}
{{SKWindow/NewRow}}
{{Alchemy tree|name=Nightblade|rows=2}}
{{Alchemy tree|name=Silent Nightblade|rows=2}}
{{Alchemy tree|name=Acheron|rows=1}}
{{SKWindow/NewRow}}
{{Alchemy tree|name=Obsidian Edge|rows=1}}
{{SKWindow/NewRow}}
{{Alchemy tree|name=Fireburst Brandish|rows=1}}
{{Alchemy tree|name=Blazebrand|rows=1}}
{{Alchemy tree|name=Combuster|rows=1}}
{{SKWindow/NewRow}}
{{Alchemy tree|name=Iceburst Brandish|rows=1}}
{{Alchemy tree|name=Blizzbrand|rows=1}}
{{Alchemy tree|name=Glacius|rows=1}}
{{SKWindow/NewRow}}
{{Alchemy tree|name=Shockburst Brandish|rows=1}}
{{Alchemy tree|name=Boltbrand|rows=1}}
{{Alchemy tree|name=Voltedge|rows=1}}
}}


Provides a table as appears here:

Brandish's alchemy path
☆☆☆☆☆ ★☆☆☆☆ ★★☆☆☆ ★★★☆☆ ★★★★☆ ★★★★★
Brandish
Brandish
Cautery Sword
Cautery Sword
Nightblade
Nightblade
Silent Nightblade
Silent Nightblade
Acheron
Acheron
Obsidian Edge
Obsidian Edge
Fireburst Brandish
Fireburst Brandish
Blazebrand
Blazebrand
Combuster
Combuster
Iceburst Brandish
Iceburst Brandish
Blizzbrand
Blizzbrand
Glacius
Glacius
Shockburst Brandish
Shockburst Brandish
Boltbrand
Boltbrand
Voltedge
Voltedge
Personal tools