Template:GetDiscipline: Difference between revisions

From Shadow Chronicles - Game Master
Jump to navigation Jump to search
No edit summary
No edit summary
 
(26 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|{{{3|}}}|{{{4|}}}}}
== Template ==
{{#ifexpr:1<{{{2|}}}|{{getDisciplineLevel|{{{1|}}}|2|{{{5|}}}|{{{6|}}}}}
<nowiki>{{getDiscipline|||lvl1att =|lvl1skl=|lvl2att=|lvl2skl=|lvl3att=|lvl3skl=|lvl4att=|lvl4skl=|lvl5att=|lvl5skl=}}</nowiki>
{{#ifexpr:2<{{{2|}}}|{{getDisciplineLevel|{{{1|}}}|3|{{{7|}}}|{{{8|}}}}}
{{#ifexpr:3<{{{2|}}}|{{getDisciplineLevel|{{{1|}}}|4|{{{9|}}}|{{{10|}}}}}
{{#ifexpr:4<{{{2|}}}|{{getDisciplineLevel|{{{1|}}}|5|{{{11|}}}|{{{12|}}}}}</includeonly><noinclude>
==Example use==
{{getDiscipline|Auspex|5|2|3|2|3|2|3|2|3|2|3}}
[[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=}}