Difference between revisions of "Template:Alchemy tree/doc"

From SpiralKnights

Jump to: navigation, search
m (created (work done by BlarghBlargh))
 
m (example tweak)
 
(One intermediate revision by the same user not shown)
Line 10: Line 10:
 
name : The name of the item to appear in the tree [defaults to blank].<br>
 
name : The name of the item to appear in the tree [defaults to blank].<br>
 
rows : The number of rows the cell should take up [defaults to 1]<br>
 
rows : The number of rows the cell should take up [defaults to 1]<br>
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.]<br>
+
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.] Use this for items that have huge trees, like the [[Padded Cap]].<br>
  
 
== Instructions to Create a Tree ==
 
== Instructions to Create a Tree ==
Line 20: Line 20:
 
4. For each cell, call this template. The ordering of each cells should be from left to right.<br>
 
4. For each cell, call this template. The ordering of each cells should be from left to right.<br>
 
5. When an alchemy line terminates, add a <nowiki>{{SKWindow/NewRow}}</nowiki> to continue onto the next line.<br>
 
5. When an alchemy line terminates, add a <nowiki>{{SKWindow/NewRow}}</nowiki> to continue onto the next line.<br>
6. Finish the table and close the SKWindowsmall template.<br>
+
6. Finish the table and SKWindowsmall template.<br>
 
<br>
 
<br>
 
'''Tips and Tricks'''<br>
 
'''Tips and Tricks'''<br>
Line 28: Line 28:
  
 
== Example Code and Appearance ==
 
== Example Code and Appearance ==
 
*As a note: Copy the code from the template page, not the template code.
 
 
'''The code:'''<br>
 
'''The code:'''<br>
<nowiki>{{SKWindowsmall</nowiki><br>
+
 
<nowiki>| width = 50%</nowiki><br>
+
The raw code does not go on individual pages, it is used to build a table for an item's tree that is copy/pasted onto the relevant pages for that item, make a table on a page of the lowest-star item like so:
<nowiki>| title = {{PAGENAME}}'s alchemy path</nowiki><br>
+
 
<nowiki>| body =  
+
:1) [[:Magic Hood/alchemy path]]
{{SKWindow/NewRow}} style="background: #114255;" </nowiki><br>
+
:2) then paste it onto all the relevant pages with something like: '''<nowiki>{{:Magic Hood/alchemy path}}</nowiki>''' in the alchemy path section.
<nowiki>{{Alchemy paths header|width5=20%}}</nowiki><br>
+
----
<nowiki>{{SKWindow/NewRow}}</nowiki><br>
+
<br><nowiki>
<nowiki>{{</nowiki>Alchemy tree<nowiki>|name=|rows=6}}</nowiki><br>
+
{{SKWindowsmall</nowiki><br><nowiki>
<nowiki>{{</nowiki>Alchemy tree<nowiki>|name=|rows=6}}</nowiki><br>
+
| width = *</nowiki><br><nowiki>
<nowiki>{{</nowiki>Alchemy tree<nowiki>|name=Brandish|rows=6}}</nowiki><br>
+
| title = {{PAGENAME}}'s alchemy path</nowiki><br><nowiki>
<nowiki>{{</nowiki>Alchemy tree<nowiki>|name=Cautery Sword|rows=1}}</nowiki><br>
+
| body = {{{SKWindow/NewRow}} style="background: #114255;"</nowiki><br><nowiki>  
<nowiki>{{SKWindow/NewRow}}</nowiki><br>
+
{{Alchemy paths header}}</nowiki><br><nowiki>
<nowiki>{{</nowiki>Alchemy tree<nowiki>|name=Nightblade|rows=2}}</nowiki><br>
+
{{SKWindow/NewRow}}</nowiki><br><nowiki>
<nowiki>{{</nowiki>Alchemy tree<nowiki>|name=Silent Nightblade|rows=2}}</nowiki><br>
+
{{Alchemy tree|rows=3}}</nowiki><br><nowiki>
<nowiki>{{</nowiki>Alchemy tree<nowiki>|name=Acheron|rows=1}}</nowiki><br>
+
{{Alchemy tree|rows=3}}</nowiki><br><nowiki>
<nowiki>{{SKWindow/NewRow}}</nowiki><br>
+
{{Alchemy tree|rows=3|name=Magic Hood}}</nowiki><br><nowiki>
<nowiki>{{</nowiki>Alchemy tree<nowiki>|name=Obsidian Edge|rows=1}} </nowiki><br>
+
{{Alchemy tree|rows=3|name=Elemental Hood}}</nowiki><br><nowiki>
<nowiki>{{SKWindow/NewRow}}</nowiki><br>
+
{{Alchemy tree|rows=3|name=Miracle Hood}}</nowiki><br><nowiki>
<nowiki>{{</nowiki>Alchemy tree<nowiki>|name=Fireburst Brandish|rows=1}}</nowiki><br>
+
{{Alchemy tree|name=Chaos Cowl}}</nowiki><br><nowiki>
<nowiki>{{</nowiki>Alchemy tree<nowiki>|name=Blazebrand|rows=1}} </nowiki><br>
+
{{SKWindow/NewRow}}</nowiki><br><nowiki>
<nowiki>{{</nowiki>Alchemy tree<nowiki>|name=Combuster|rows=1}} </nowiki><br>
+
{{Alchemy tree|name=Divine Veil}}</nowiki><br><nowiki>
<nowiki>{{SKWindow/NewRow}}</nowiki><br>
+
{{SKWindow/NewRow}}</nowiki><br><nowiki>
<nowiki>{{</nowiki>Alchemy tree<nowiki>|name=Iceburst Brandish|rows=1}}</nowiki><br>
+
{{Alchemy tree|name=Grey Feather Cowl}}</nowiki><br><nowiki>
<nowiki>{{</nowiki>Alchemy tree<nowiki>|name=Blizzbrand|rows=1}} </nowiki><br>
+
{{!}}}</nowiki><br><nowiki>
<nowiki>{{</nowiki>Alchemy tree<nowiki>|name=Glacius|rows=1}} </nowiki><br>
+
}}</nowiki>
<nowiki>{{SKWindow/NewRow}}</nowiki><br>
+
<nowiki>{{</nowiki>Alchemy tree<nowiki>|name=Shockburst Brandish|rows=1}}</nowiki><br>
+
<nowiki>{{</nowiki>Alchemy tree<nowiki>|name=Boltbrand|rows=1}}</nowiki><br>
+
<nowiki>{{</nowiki>Alchemy tree<nowiki>|name=Voltedge|rows=1}}</nowiki><br>
+
<nowiki>}}</nowiki><br>
+
  
 
<br>'''Provides a table as appears here:'''<br>
 
<br>'''Provides a table as appears here:'''<br>
 
{{SKWindowsmall
 
{{SKWindowsmall
| width = 50%
+
| width = *
| title = Brandish's alchemy path
+
| title = {{PAGENAME}}'s alchemy path
| body =  
+
| body = {{{SKWindow/NewRow}} style="background: #114255;"  
{{SKWindow/NewRow}} style="background: #114255;"  
+
{{Alchemy paths header}}
{{Alchemy paths header|width5=20%}}
+
{{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}}
 
{{SKWindow/NewRow}}
{{Alchemy tree|name=Fireburst Brandish|rows=1}}
+
{{Alchemy tree|rows=3}}
{{Alchemy tree|name=Blazebrand|rows=1}}  
+
{{Alchemy tree|rows=3}}
{{Alchemy tree|name=Combuster|rows=1}}
+
{{Alchemy tree|rows=3|name=Magic Hood}}
 +
{{Alchemy tree|rows=3|name=Elemental Hood}}
 +
{{Alchemy tree|rows=3|name=Miracle Hood}}
 +
{{Alchemy tree|name=Chaos Cowl}}
 
{{SKWindow/NewRow}}
 
{{SKWindow/NewRow}}
{{Alchemy tree|name=Iceburst Brandish|rows=1}}
+
{{Alchemy tree|name=Divine Veil}}
{{Alchemy tree|name=Blizzbrand|rows=1}}
+
{{Alchemy tree|name=Glacius|rows=1}}
+
 
{{SKWindow/NewRow}}
 
{{SKWindow/NewRow}}
{{Alchemy tree|name=Shockburst Brandish|rows=1}}
+
{{Alchemy tree|name=Grey Feather Cowl}}
{{Alchemy tree|name=Boltbrand|rows=1}}
+
{{!}}}
{{Alchemy tree|name=Voltedge|rows=1}}
+
 
}}
 
}}

Latest revision as of 13:09, 31 January 2015

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.] Use this for items that have huge trees, like the Padded Cap.

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 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:

The raw code does not go on individual pages, it is used to build a table for an item's tree that is copy/pasted onto the relevant pages for that item, make a table on a page of the lowest-star item like so:

1) Magic Hood/alchemy path
2) then paste it onto all the relevant pages with something like: {{:Magic Hood/alchemy path}} in the alchemy path section.


{{SKWindowsmall
| width = *
| title = {{PAGENAME}}'s alchemy path
| body = {{{SKWindow/NewRow}} style="background: #114255;"
{{Alchemy paths header}}
{{SKWindow/NewRow}}
{{Alchemy tree|rows=3}}
{{Alchemy tree|rows=3}}
{{Alchemy tree|rows=3|name=Magic Hood}}
{{Alchemy tree|rows=3|name=Elemental Hood}}
{{Alchemy tree|rows=3|name=Miracle Hood}}
{{Alchemy tree|name=Chaos Cowl}}
{{SKWindow/NewRow}}
{{Alchemy tree|name=Divine Veil}}
{{SKWindow/NewRow}}
{{Alchemy tree|name=Grey Feather Cowl}}
{{!}}}
}}


Provides a table as appears here:

Alchemy tree/doc's alchemy path
☆☆☆☆☆ ★☆☆☆☆ ★★☆☆☆ ★★★☆☆ ★★★★☆ ★★★★★
Magic Hood
Magic Hood
Elemental Hood
Elemental Hood
Miracle Hood
Miracle Hood
Chaos Cowl
Chaos Cowl
Divine Veil
Divine Veil
Grey Feather Cowl
Grey Feather Cowl
Personal tools