Template:Infobox statistics: Difference between revisions

Jump to navigation Jump to search
no edit summary
No edit summary
No edit summary
Line 1: Line 1:
<noinclude>{{license|ccbysa}}</noinclude><includeonly>{{#lvardef:strmod|{{#ifexpr: (({{{str|}}} - 10) / 2) > 0 | +}}{{#expr: floor((({{{str|}}} - 10) / 2))}}}}{{#lvardef:dexmod|{{#ifexpr: (({{{dex|}}} - 10) / 2) > 0 | +}}{{#expr: floor((({{{dex|}}} - 10) / 2))}}}}{{#lvardef:conmod|{{#ifexpr: (({{{con|}}} - 10) / 2) > 0 | +}}{{#expr: floor((({{{con|}}} - 10) / 2))}}}}{{#lvardef:intmod|{{#ifexpr: (({{{int|}}} - 10) / 2) > 0 | +}}{{#expr: floor((({{{int|}}} - 10) / 2))}}}}{{#lvardef:wismod|{{#ifexpr: (({{{wis|}}} - 10) / 2) > 0 | +}}{{#expr: floor((({{{wis|}}} - 10) / 2))}}}}{{#lvardef:chamod|{{#ifexpr: (({{{cha|}}} - 10) / 2) > 0 | +}}{{#expr: floor((({{{cha|}}} - 10) / 2))}}}}{{#lvardef:strsave|{{#expr: {{#lvar:strmod}}{{#if: {{{str_save_proficiency|}}} | {{#lvar:proficiencybonus}} }}}}}}{{#lvardef:dexsave|{{#expr:{{#lvar:dexmod}} {{#if: {{{dex_save_proficiency|}}} |  {{#lvar:proficiencybonus}} }}}}}}{{#lvardef:consave|{{#expr: {{#lvar:conmod}} {{#if: {{{con_save_proficiency|}}} | {{#lvar:proficiencybonus}} }}}}}}{{#lvardef:intsave|{{#expr: {{#lvar:intmod}} {{#if: {{{int_save_proficiency|}}} |  {{#lvar:proficiencybonus}} }}}}}}{{#lvardef:wissave|{{#expr: {{#lvar:wismod}} {{#if: {{{wis_save_proficiency|}}} |  {{#lvar:proficiencybonus}} }}}}}}{{#lvardef:chasave|{{#expr: {{#lvar:chamod}} {{#if: {{{cha_save_proficiency|}}} | {{#lvar:proficiencybonus}} }}}}}}{{#lvardef:proficiencybonus|+{{{proficiency_bonus|{{#expr: 2 {{#ifexpr: {{{level|1}}} > 5 | + 1}} {{#ifexpr: {{{level|1}}} > 9 | + 1}}}}}}}}}
<noinclude>{{license|ccbysa}}</noinclude><includeonly>{{#lvardef:strmod|{{#ifexpr: (({{{str|}}} - 10) / 2) > 0 | +}}{{#expr: floor((({{{str|}}} - 10) / 2))}}}}{{#lvardef:dexmod|{{#ifexpr: (({{{dex|}}} - 10) / 2) > 0 | +}}{{#expr: floor((({{{dex|}}} - 10) / 2))}}}}{{#lvardef:conmod|{{#ifexpr: (({{{con|}}} - 10) / 2) > 0 | +}}{{#expr: floor((({{{con|}}} - 10) / 2))}}}}{{#lvardef:intmod|{{#ifexpr: (({{{int|}}} - 10) / 2) > 0 | +}}{{#expr: floor((({{{int|}}} - 10) / 2))}}}}{{#lvardef:wismod|{{#ifexpr: (({{{wis|}}} - 10) / 2) > 0 | +}}{{#expr: floor((({{{wis|}}} - 10) / 2))}}}}{{#lvardef:chamod|{{#ifexpr: (({{{cha|}}} - 10) / 2) > 0 | +}}{{#expr: floor((({{{cha|}}} - 10) / 2))}}}}{{#lvardef:strsave|{{#expr: {{#lvar:strmod}}{{#if: {{{str_save_proficiency|}}} | {{#lvar:proficiencybonus}} }}}}}}{{#lvardef:dexsave|{{#expr:{{#lvar:dexmod}} {{#if: {{{dex_save_proficiency|}}} |  {{#lvar:proficiencybonus}} }}}}}}{{#lvardef:consave|{{#expr: {{#lvar:conmod}} {{#if: {{{con_save_proficiency|}}} | {{#lvar:proficiencybonus}} }}}}}}{{#lvardef:intsave|{{#expr: {{#lvar:intmod}} {{#if: {{{int_save_proficiency|}}} |  {{#lvar:proficiencybonus}} }}}}}}{{#lvardef:wissave|{{#expr: {{#lvar:wismod}} {{#if: {{{wis_save_proficiency|}}} |  {{#lvar:proficiencybonus}} }}}}}}{{#lvardef:chasave|{{#expr: {{#lvar:chamod}} {{#if: {{{cha_save_proficiency|}}} | {{#lvar:proficiencybonus}} }}}}}}{{#lvardef:proficiencybonus|+ {{#expr: 2 {{#ifexpr: {{{level|1}}} > 5 | + 1}} {{#ifexpr: {{{level|1}}} > 9 | + 1}}}}}}
{{infobox
{{infobox
| subbox = {{{subbox|}}}
| subbox = {{{subbox|}}}
Line 29: Line 29:


| label6 = {{IconText | w = 24 | h = 24 | Initiative Icon.png | Initiative }}
| label6 = {{IconText | w = 24 | h = 24 | Initiative Icon.png | Initiative }}
| data6 = {{#if: {{{dex|}}} {{{initiative|}}} | {{{initiative|{{#expr: {{#lvar:dexmod}}}}}}}}}
| data6 = {{#if: {{{initiative}}} | {{{initiative|{{#expr: {{#lvar:dexmod}}}}}}}}}


| header7 = {{#if: {{{str|}}} | Ability scores}}
| header7 = {{#if: {{{str|}}} | Ability scores}}
Line 61: Line 61:
| class 10 = wrap
| class 10 = wrap
| label10 = Saving throws
| label10 = Saving throws
| data10 = {{#ifexpr: {{#lvar:strsave}} > 0 | Str +{{#lvar:strsave}}{{#if: {{{str_save_proficiency|}}} | {{sup|{{abbr|class=bg3wiki-save-proficiency-abbr|title=Proficiency|P}}}}}}}}{{#ifexpr: {{#lvar:strsave}} < 0 | Str {{#lvar:strsave}}{{#if: {{{str_save_proficiency|}}} | {{sup|{{abbr|class=bg3wiki-save-proficiency-abbr|title=Proficiency|P}}}}}}}} {{#ifexpr: {{#lvar:dexsave}} > 0 | Dex +{{#lvar:dexsave}}{{#if: {{{dex_save_proficiency|}}} | {{sup|{{abbr|class=bg3wiki-save-proficiency-abbr|title=Proficiency|P}}}}}}}}{{#ifexpr: {{#lvar:dexsave}} < 0 | Dex {{#lvar:dexsave}}{{#if: {{{dex_save_proficiency|}}} | {{sup|{{abbr|class=bg3wiki-save-proficiency-abbr|title=Proficiency|P}}}}}}}} {{#ifexpr: {{#lvar:consave}} > 0 | Con +{{#lvar:consave}}{{#if: {{{con_save_proficiency|}}} | {{sup|{{abbr|class=bg3wiki-save-proficiency-abbr|title=Proficiency|P}}}}}}}}{{#ifexpr: {{#lvar:consave}} < 0 | Con {{#lvar:consave}}{{#if: {{{con_save_proficiency|}}} | {{abbr|class=bg3wiki-save-proficiency-abbr|title=Proficiency|P}}}}}} {{#ifexpr: {{#lvar:intsave}} > 0 | Int +{{#lvar:intsave}}{{#if: {{{int_save_proficiency|}}} | {{sup|{{abbr|class=bg3wiki-save-proficiency-abbr|title=Proficiency|P}}}}}}}}{{#ifexpr: {{#lvar:intsave}} < 0 | Int {{#lvar:intsave}}{{#if: {{{int_save_proficiency|}}} | {{sup|{{abbr|class=bg3wiki-save-proficiency-abbr|title=Proficiency|P}}}}}}}} {{#ifexpr: {{#lvar:wissave}} > 0 | Wis +{{#lvar:wissave}}{{#if: {{{wis_save_proficiency|}}} | {{sup|{{abbr|class=bg3wiki-save-proficiency-abbr|title=Proficiency|P}}}}}}}}{{#ifexpr: {{#lvar:wissave}} < 0 | Wis {{#lvar:wissave}}{{#if: {{{wis_save_proficiency|}}} | {{sup|{{abbr|class=bg3wiki-save-proficiency-abbr|title=Proficiency|P}}}}}}}} {{#ifexpr: {{#lvar:chasave}} > 0 | Cha +{{#lvar:chasave}}{{#if: {{{cha_save_proficiency|}}} | {{sup|{{abbr|class=bg3wiki-save-proficiency-abbr|title=Proficiency|P}}}}}}}}{{#ifexpr: {{#lvar:chasave}} < 0 | Cha {{#lvar:chasave}}{{#if: {{{cha_save_proficiency|}}} | {{sup|{{abbr|class=bg3wiki-save-proficiency-abbr|title=Proficiency|P}}}}}}}}
| data10 = {{hlist|
* Str +{{#expr:{{#lvar:strmod}} {{#if: {{{str_save_proficiency|}}} | {{#lvar:proficiencybonus}}}}}}
* Dex +{{#expr:{{#lvar:dexmod}} {{#if: {{{dex_save_proficiency|}}} | {{#lvar:proficiencybonus}}}}}}
* Con +{{#expr:{{#lvar:conmod}} {{#if: {{{con_save_proficiency|}}} | {{#lvar:proficiencybonus}}}}}}}}
{{hlist|
* Int +{{#expr:{{#lvar:intmod}} {{#if: {{{int_save_proficiency|}}} | {{#lvar:proficiencybonus}}}}}}
* Wis +{{#expr:{{#lvar:wismod}} {{#if: {{{wis_save_proficiency|}}} | {{#lvar:proficiencybonus}}}}}}
* Cha +{{#expr:{{#lvar:chamod}} {{#if: {{{cha_save_proficiency|}}} | {{#lvar:proficiencybonus}}}}}}}}


| header11 = {{#if: {{{immune1|}}} {{{resistant1|}}} {{{vulnerable1|}}} | Resistances}}
| header11 = {{#if: {{{immune1|}}} {{{resistant1|}}} {{{vulnerable1|}}} | Resistances}}
8,856
edits

Navigation menu