Difference between revisions of "Template:Infonav skill"

From Discworld MUD Wiki
Jump to: navigation, search
(Fix child skills format)
(Handle top-level skills)
Line 1: Line 1:
{| class="infobox" border="1" style="font-size:89%; {{#ifeq:{{#expr:{{#len:{{PAGENAME}}}} < 20}}|1|width:150px;|}} float:right; border:1px solid lightgray" cellspacing="0"
+
{| class="infobox" border="1" style="font-size:89%; {{#ifeq:{{#expr:{{#len:{{{name|{{PAGENAME}}}}}}} < 20}}|1|width:150px;|}} float:right; border:1px solid lightgray" cellspacing="0"
 
|-
 
|-
 
! colspan="5" style="background-color:#CCCCCC; font-size:120%; padding:1em; border:1px solid white" |  {{{name|{{PAGENAME}}}}}
 
! colspan="5" style="background-color:#CCCCCC; font-size:120%; padding:1em; border:1px solid white" |  {{{name|{{PAGENAME}}}}}
Line 27: Line 27:
 
! colspan="5" style="background-color:#000000; color:#ffffff;" | Skill tree
 
! colspan="5" style="background-color:#000000; color:#ffffff;" | Skill tree
 
|-
 
|-
| colspan="5" style="border:0px;font-family:monospace" | [[{{#explode:{{PAGENAME}}|.|0}}_(skill)|{{#explode:{{PAGENAME}}|.|0}}]]
+
| colspan="5" style="border:0px;font-family:monospace" | [[{{#explode:{{{name|{{PAGENAME}}}}}|.|0}}_(skill)|{{#explode:{{{name|{{PAGENAME}}}}}|.|0}}]]
 
|-
 
|-
 
{{#if:{{#explode:{{PAGENAME}}|.|1}}|{{!}} colspan="5" style="border:0px;font-family:monospace;text-indent:5%" {{!}} [[{{#explode:{{PAGENAME}}|.|0}}.{{#explode:{{PAGENAME}}|.|1}}{{!}}{{#explode:{{PAGENAME}}|.|1}}]]}}
 
{{#if:{{#explode:{{PAGENAME}}|.|1}}|{{!}} colspan="5" style="border:0px;font-family:monospace;text-indent:5%" {{!}} [[{{#explode:{{PAGENAME}}|.|0}}.{{#explode:{{PAGENAME}}|.|1}}{{!}}{{#explode:{{PAGENAME}}|.|1}}]]}}
Line 35: Line 35:
 
{{#if:{{#explode:{{PAGENAME}}|.|3}}|{{!}} colspan="5" style="border:0px;font-family:monospace;text-indent:15%" {{!}} [[{{#explode:{{PAGENAME}}|.|0}}.{{#explode:{{PAGENAME}}|.|1}}.{{#explode:{{PAGENAME}}|.|2}}.{{#explode:{{PAGENAME}}|.|3}}{{!}}{{#explode:{{PAGENAME}}|.|3}}]]}}
 
{{#if:{{#explode:{{PAGENAME}}|.|3}}|{{!}} colspan="5" style="border:0px;font-family:monospace;text-indent:15%" {{!}} [[{{#explode:{{PAGENAME}}|.|0}}.{{#explode:{{PAGENAME}}|.|1}}.{{#explode:{{PAGENAME}}|.|2}}.{{#explode:{{PAGENAME}}|.|3}}{{!}}{{#explode:{{PAGENAME}}|.|3}}]]}}
 
|-
 
|-
{{#if:{{{child1|}}}|{{!}} colspan="5" style="border:0px;font-family:monospace;text-indent:{{#expr:({{{childlevel}}} - 1) * 5}}%" {{!}} [[{{PAGENAME}}.{{{child1}}}{{!}}{{{child1}}}]]|}}
+
{{#if:{{{child1|}}}|{{!}} colspan="5" style="border:0px;font-family:monospace;text-indent:{{#expr:({{{childlevel}}} - 1) * 5}}%" {{!}} [[{{{name|{{PAGENAME}}}}}.{{{child1}}}{{!}}{{{child1}}}]]|}}
 
|-
 
|-
{{#if:{{{child2|}}}|{{!}} colspan="5" style="border:0px;font-family:monospace;text-indent:{{#expr:({{{childlevel}}} - 1) * 5}}%" {{!}} [[{{PAGENAME}}.{{{child2}}}{{!}}{{{child2}}}]]|}}
+
{{#if:{{{child2|}}}|{{!}} colspan="5" style="border:0px;font-family:monospace;text-indent:{{#expr:({{{childlevel}}} - 1) * 5}}%" {{!}} [[{{{name|{{PAGENAME}}}}}.{{{child2}}}{{!}}{{{child2}}}]]|}}
 
|-
 
|-
{{#if:{{{child3|}}}|{{!}} colspan="5" style="border:0px;font-family:monospace;text-indent:{{#expr:({{{childlevel}}} - 1) * 5}}%" {{!}} [[{{PAGENAME}}.{{{child3}}}{{!}}{{{child3}}}]]|}}
+
{{#if:{{{child3|}}}|{{!}} colspan="5" style="border:0px;font-family:monospace;text-indent:{{#expr:({{{childlevel}}} - 1) * 5}}%" {{!}} [[{{{name|{{PAGENAME}}}}}.{{{child3}}}{{!}}{{{child3}}}]]|}}
 
|-
 
|-
{{#if:{{{child4|}}}|{{!}} colspan="5" style="border:0px;font-family:monospace;text-indent:{{#expr:({{{childlevel}}} - 1) * 5}}%" {{!}} [[{{PAGENAME}}.{{{child4}}}{{!}}{{{child4}}}]]|}}
+
{{#if:{{{child4|}}}|{{!}} colspan="5" style="border:0px;font-family:monospace;text-indent:{{#expr:({{{childlevel}}} - 1) * 5}}%" {{!}} [[{{{name|{{PAGENAME}}}}}.{{{child4}}}{{!}}{{{child4}}}]]|}}
 
|-
 
|-
{{#if:{{{child5|}}}|{{!}} colspan="5" style="border:0px;font-family:monospace;text-indent:{{#expr:({{{childlevel}}} - 1) * 5}}%" {{!}} [[{{PAGENAME}}.{{{child5}}}{{!}}{{{child5}}}]]|}}
+
{{#if:{{{child5|}}}|{{!}} colspan="5" style="border:0px;font-family:monospace;text-indent:{{#expr:({{{childlevel}}} - 1) * 5}}%" {{!}} [[{{{name|{{PAGENAME}}}}}.{{{child5}}}{{!}}{{{child5}}}]]|}}
 
|-
 
|-
{{#if:{{{child6|}}}|{{!}} colspan="5" style="border:0px;font-family:monospace;text-indent:{{#expr:({{{childlevel}}} - 1) * 5}}%" {{!}} [[{{PAGENAME}}.{{{child6}}}{{!}}{{{child6}}}]]|}}
+
{{#if:{{{child6|}}}|{{!}} colspan="5" style="border:0px;font-family:monospace;text-indent:{{#expr:({{{childlevel}}} - 1) * 5}}%" {{!}} [[{{{name|{{PAGENAME}}}}}.{{{child6}}}{{!}}{{{child6}}}]]|}}
 
|-
 
|-
{{#if:{{{child7|}}}|{{!}} colspan="5" style="border:0px;font-family:monospace;text-indent:{{#expr:({{{childlevel}}} - 1) * 5}}%" {{!}} [[{{PAGENAME}}.{{{child7}}}{{!}}{{{child7}}}]]|}}
+
{{#if:{{{child7|}}}|{{!}} colspan="5" style="border:0px;font-family:monospace;text-indent:{{#expr:({{{childlevel}}} - 1) * 5}}%" {{!}} [[{{{name|{{PAGENAME}}}}}.{{{child7}}}{{!}}{{{child7}}}]]|}}
 
|-
 
|-
{{#if:{{{child8|}}}|{{!}} colspan="5" style="border:0px;font-family:monospace;text-indent:{{#expr:({{{childlevel}}} - 1) * 5}}%" {{!}} [[{{PAGENAME}}.{{{child8}}}{{!}}{{{child8}}}]]|}}
+
{{#if:{{{child8|}}}|{{!}} colspan="5" style="border:0px;font-family:monospace;text-indent:{{#expr:({{{childlevel}}} - 1) * 5}}%" {{!}} [[{{{name|{{PAGENAME}}}}}.{{{child8}}}{{!}}{{{child8}}}]]|}}
 
|-
 
|-
{{#if:{{{child9|}}}|{{!}} colspan="5" style="border:0px;font-family:monospace;text-indent:{{#expr:({{{childlevel}}} - 1) * 5}}%" {{!}} [[{{PAGENAME}}.{{{child9}}}{{!}}{{{child9}}}]]|}}
+
{{#if:{{{child9|}}}|{{!}} colspan="5" style="border:0px;font-family:monospace;text-indent:{{#expr:({{{childlevel}}} - 1) * 5}}%" {{!}} [[{{{name|{{PAGENAME}}}}}.{{{child9}}}{{!}}{{{child9}}}]]|}}
 
|-
 
|-
{{#if:{{{child10|}}}|{{!}} colspan="5" style="border:0px;font-family:monospace;text-indent:{{#expr:({{{childlevel}}} - 1) * 5}}%" {{!}} [[{{PAGENAME}}.{{{child10}}}{{!}}{{{child10}}}]]|}}
+
{{#if:{{{child10|}}}|{{!}} colspan="5" style="border:0px;font-family:monospace;text-indent:{{#expr:({{{childlevel}}} - 1) * 5}}%" {{!}} [[{{{name|{{PAGENAME}}}}}.{{{child10}}}{{!}}{{{child10}}}]]|}}
 
|-
 
|-
{{#if:{{{child11|}}}|{{!}} colspan="5" style="border:0px;font-family:monospace;text-indent:{{#expr:({{{childlevel}}} - 1) * 5}}%" {{!}} [[{{PAGENAME}}.{{{child11}}}{{!}}{{{child11}}}]]|}}
+
{{#if:{{{child11|}}}|{{!}} colspan="5" style="border:0px;font-family:monospace;text-indent:{{#expr:({{{childlevel}}} - 1) * 5}}%" {{!}} [[{{{name|{{PAGENAME}}}}}.{{{child11}}}{{!}}{{{child11}}}]]|}}
 
|-
 
|-
{{#if:{{{child12|}}}|{{!}} colspan="5" style="border:0px;font-family:monospace;text-indent:{{#expr:({{{childlevel}}} - 1) * 5}}%" {{!}} [[{{PAGENAME}}.{{{child12}}}{{!}}{{{child12}}}]]|}}
+
{{#if:{{{child12|}}}|{{!}} colspan="5" style="border:0px;font-family:monospace;text-indent:{{#expr:({{{childlevel}}} - 1) * 5}}%" {{!}} [[{{{name|{{PAGENAME}}}}}.{{{child12}}}{{!}}{{{child12}}}]]|}}
 
|-
 
|-
 
|}<noinclude>[[Category:Infoboxes]][[Category:Navboxes]]<br style="clear:both;" />
 
|}<noinclude>[[Category:Infoboxes]][[Category:Navboxes]]<br style="clear:both;" />
 
{{documentation}}</noinclude>
 
{{documentation}}</noinclude>

Revision as of 13:57, 7 July 2009

Infonav skill
Short form
In
Stat dependencies
Con Dex Int Str Wis
 ?  ?  ?  ?  ?
Skill tree
Infonav skill

[edit]

Documentation
This template provides information and navigation for a skill.

Parameters

  • con: The skill's constitution weighting.
  • dex: The skill's desterity weighting.
  • int: The skill's intelligence weighting.
  • str: The skill's strength weighting.
  • wis: The skill's wisdom weighting.
  • shortform (optional): The abbreviated form of this skill. If unspecified, the template will work out the conventional 2.2.2.2 name from the name of the skill. This parameter should be used where the 2.2.2.2 form is ambiguous (for example, between magic.methods.mental.charming and magic.methods.mental.channeling).

Skill branches

When filling out a skill branch, this template can be provided with the child skills of the branch as follows:

  • childlevel: The level of the tree the children are at. For example, 'magic.methods' has children at level 3, 'magic.methods.physical' has children at level 4.
  • child1, child2, childn...: The names of the child skills. You should only provide the leaf name - for example, if you're editing 'magic.methods.mental', then set 'child1=channeling' to add channeling. This template currently supports up to 12 children per entry.