Difference between revisions of "Template:Alchemy tree"

From SpiralKnights

Jump to: navigation, search
m (Attempting to force dynamic width based on # of chars in name...)
m (trying a different stringlength function...)
Line 2: Line 2:
 
Testing for alch tree templates.
 
Testing for alch tree templates.
 
</noinclude><includeonly>
 
</noinclude><includeonly>
{{#if: {{{name}}} | {{#if: {{{minSize|}}} | {{!}} colspan="1" rowspan="{{{rows|1}}}" align="left" valign="middle" style="width:*; height:*; background:#c7dbea; color:#000000; font-size: normal; padding: 2px 5px 2px 5px; border-radius: 5px; -moz-border-radius: 5px; -webkit-border-radius: 5px; -khtml-border-radius: 5px; -icab-border-radius: 5px; -o-border-radius: 5px;" {{!}} <span style="float: left; margin: 0px; padding: 0px 5px 0px 0px;">[[Image:Equipment-{{{name}}}_icon.png | {{#ifexpr: {{{rows}}} < 3 | {{#expr: {{{rows}}}*5+15}}px | 40px }} | link={{{name}}}|{{{name}}} ]] </span> <span style="height: {{#expr: {{{rows}}}*3}}em; width: {{#expr: {{#len: {{{name}}} }}*1.5/{{{rows}}} }}em;" >[[{{{name}}}]] </span> | {{SKWindow/Cell|1=[[Image:Equipment-{{{name}}}_icon.png | 40px | link={{{name}}}|{{{name}}} ]] <br> [[{{{name}}}]] | 2=center | 3=middle| 5={{{rows}}} | background=#c7dbea }} }} | {{SKWindow/Cell|5={{{rows}}}|background=#114255| }} }}</includeonly>
+
{{#if: {{{name}}} | {{#if: {{{minSize|}}} | {{!}} colspan="1" rowspan="{{{rows|1}}}" align="left" valign="middle" style="width:*; height:*; background:#c7dbea; color:#000000; font-size: normal; padding: 2px 5px 2px 5px; border-radius: 5px; -moz-border-radius: 5px; -webkit-border-radius: 5px; -khtml-border-radius: 5px; -icab-border-radius: 5px; -o-border-radius: 5px;" {{!}} <span style="float: left; margin: 0px; padding: 0px 5px 0px 0px;">[[Image:Equipment-{{{name}}}_icon.png | {{#ifexpr: {{{rows}}} < 3 | {{#expr: {{{rows}}}*5+15}}px | 40px }} | link={{{name}}}|{{{name}}} ]] </span> <span style="height: {{#expr: {{{rows}}}*3}}em; width: {{#expr: {{#strlen: {{{name}}} }}*1.5/{{{rows}}} }}em;" >[[{{{name}}}]] </span> | {{SKWindow/Cell|1=[[Image:Equipment-{{{name}}}_icon.png | 40px | link={{{name}}}|{{{name}}} ]] <br> [[{{{name}}}]] | 2=center | 3=middle| 5={{{rows}}} | background=#c7dbea }} }} | {{SKWindow/Cell|5={{{rows}}}|background=#114255| }} }}</includeonly>

Revision as of 15:49, 19 December 2014

Testing for alch tree templates.

Personal tools