Template:GetDiscipline: Difference between revisions

From Shadow Chronicles - Game Master
Jump to navigation Jump to search
No edit summary
No edit summary
 
(19 intermediate revisions by the same user not shown)
Line 1: Line 1:
<includeonly>{{#ifexist:Template:Discipline {{{1|}}}|{{#if: {{{1|}}}|{{Discipline {{{1|}}}|{{{2|}}}}}|<strong class="error">No discipline defined.</strong>}}|<strong class="error">Not a discipline.</strong>}}
<includeonly>{{#ifexist:Template:Discipline {{{1|}}}|{{#if: {{{1|}}}|{{Discipline {{{1|}}}|{{{2|}}}}}|<strong class="error">No discipline defined.</strong>}}|{{#iferror:{{#ifexpr:{{{2|}}}=0|<span style="color:#c0c0c0">}}}}'''{{{1|}}}'''{{#iferror:{{#ifexpr:{{{2|}}}=0|</span>}}}} {{O|{{{2|}}}}}}}{{#ifexist:Template:Discipline {{{1|}}} {{{2|}}}|{{#ifexpr:0<{{{2|}}}|:{{getDisciplineLevel|{{{1|}}}|1|{{{2|}}}|{{#if:{{{lvl1att|}}}|{{{lvl1att|}}}|0}}|{{#if:{{{lvl1skl|}}}|{{{lvl1skl|}}}|0}}}}}}{{#ifexpr:1<{{{2|}}}|:{{getDisciplineLevel|{{{1|}}}|2|{{{2|}}}|{{#if:{{{lvl2att|}}}|{{{lvl2att|}}}|0}}|{{#if:{{{lvl2skl|}}}|{{{lvl2skl|}}}|0}}}}}}{{#ifexpr:2<{{{2|}}}|:{{getDisciplineLevel|{{{1|}}}|3|{{{2|}}}|{{#if:{{{lvl3att|}}}|{{{lvl3att|}}}|0}}|{{#if:{{{lvl3skl|}}}|{{{lvl3skl|}}}|0}}}}}}{{#ifexpr:3<{{{2|}}}|:{{getDisciplineLevel|{{{1|}}}|4|{{{2|}}}|{{#if:{{{lvl4att|}}}|{{{lvl4att|}}}|0}}|{{#if:{{{lvl4skl|}}}|{{{lvl4skl|}}}|0}}}}}}{{#ifexpr:4<{{{2|}}}|:{{getDisciplineLevel|{{{1|}}}|5|{{{2|}}}|{{#if:{{{lvl5att|}}}|{{{lvl5att|}}}|0}}|{{#if:{{{lvl5skl|}}}|{{{lvl5skl|}}}|0}}}}}}|}}</includeonly><noinclude>
{{#ifexpr:0<{{{2|}}}|:{{getDisciplineLevel|{{{1|}}}|1|{{{2|}}}|{{{3|}}}|{{{4|}}}|}}}}
{{#ifexpr:1<{{{2|}}}|:{{getDisciplineLevel|{{{1|}}}|2|{{{2|}}}|{{{5|}}}|{{{6|}}}}}}}
{{#ifexpr:2<{{{2|}}}|:{{getDisciplineLevel|{{{1|}}}|3|{{{2|}}}|{{{7|}}}|{{{8|}}}}}}}
{{#ifexpr:3<{{{2|}}}|:{{getDisciplineLevel|{{{1|}}}|4|{{{2|}}}|{{{9|}}}|{{{10|}}}}}}}
{{#ifexpr:4<{{{2|}}}|:{{getDisciplineLevel|{{{1|}}}|5|{{{2|}}}|{{{11|}}}|{{{12|}}}}}}}</includeonly><noinclude>==Parameters==
# disciplineName
# disciplineLevel
# Attribute for Level 1
# Skill for Level 1
# Attribute for Level 2
# Skill for Level 2
# Attribute for Level 3
# Skill for Level 3
# Attribute for Level 4
# Skill for Level 4
# Attribute for Level 5
# Skill for Level 5
== Template ==
== Template ==
  {{GetDiscipline||||||||||||}}
<nowiki>{{getDiscipline|||lvl1att =|lvl1skl=|lvl2att=|lvl2skl=|lvl3att=|lvl3skl=|lvl4att=|lvl4skl=|lvl5att=|lvl5skl=}}</nowiki>
[[Category:Templates]]</noinclude>
[[Category:Templates]]</noinclude>

Latest revision as of 20:55, 14 March 2017

Template

{{getDiscipline|||lvl1att =|lvl1skl=|lvl2att=|lvl2skl=|lvl3att=|lvl3skl=|lvl4att=|lvl4skl=|lvl5att=|lvl5skl=}}