Difference between revisions of "Template:ShowSkillCaps"
(changed parameter name from "source" to "skill") |
(debug output) |
||
Line 72: | Line 72: | ||
<!-- check if it's the first cap range being displayed (in that case only write 1x "{{!}}", otherwise write 2x "{{!}}")--> | <!-- check if it's the first cap range being displayed (in that case only write 1x "{{!}}", otherwise write 2x "{{!}}")--> | ||
{{#ifeq: {{#var: firstOutput}} | 1 | {{#ifeq: {{#var: firstOutput}} | 1 | ||
− | | {{! | + | | {{!}} |
− | | {{!}}{{!}} colspan="{{#expr: {{#var: endRange}} - {{#var: startRange}} + 1 }}" {{#var: backgroundColorModifier}} {{!}} {{#show: {{{skill | {{PAGENAME}} }}} |?{{#var: queryText}}{{#var: i}}# }} | + | | {{!}}{{!}} |
− | + | }} colspan="{{#expr: {{#var: endRange}} - {{#var: startRange}} + 1 }}" {{#var: backgroundColorModifier}} {{!}} a: {{#show: {{{skill | {{PAGENAME}} }}} |?{{#var: queryText}}{{#var: i}}# }}, b: {{#var: i}} | |
<!-- reset some variables and increment i--> | <!-- reset some variables and increment i--> |
Revision as of 13:15, 6 February 2019
This template shows the skill caps of a skill within certain boundaries If parameter "standalone" is set to true (default), it generates a table head to be used completely on its own, if set to false it only shows the name, description and skill caps without adding wikitable beginnings and ends