Template:Infobox creature: Difference between revisions

From bg3.wiki
Jump to navigation Jump to search
(va/voice field now supports multiple voice actors)
(Added hidden-by-default section for technical data)
 
(10 intermediate revisions by 3 users not shown)
Line 15: Line 15:
{{#lvardef: va |
{{#lvardef: va |
   {{#if: {{{va | {{{voice|}}} }}}
   {{#if: {{{va | {{{voice|}}} }}}
   | {{#invoke: ParseList | main | {{{va | {{{voice|}}} }}} | type = htmlListNoBullets | useTemplate = va | }}
   | {{#invoke: ParseList | main | {{{va | {{{voice|}}} }}} | type = htmlListNoBulletsOrMargin | useTemplate = va | }}
   }}
   }}
}}
}}
Line 42: Line 42:
   }}}
   }}}
}} }}
}} }}
<!-- Experience reward -->
{{#lvardef: xp | {{{xp | {{{XP|{{{exp|}}} }}} }}} }}


<!-- Proficiency bonus -->
<!-- Proficiency bonus -->
Line 80: Line 83:
{{#lvardef: e_movement_ft | {{m to ft | {{#lvar:e_movement_m|0}} }} }}
{{#lvardef: e_movement_ft | {{m to ft | {{#lvar:e_movement_m|0}} }} }}
{{#lvardef: e_weight_lb | {{kg to lb | {{#lvar:e_weight_kg|0}} }} }}
{{#lvardef: e_weight_lb | {{kg to lb | {{#lvar:e_weight_kg|0}} }} }}
<!-- Explorer experience reward -->
{{#lvardef: e_xp | {{{e xp | {{{e XP|{{{e exp|{{#lvar:xp|}} }}} }}} }}} }}


<!-- Explorer ability scores -->
<!-- Explorer ability scores -->
Line 116: Line 122:
| {{#lvardef: e_prof_bonus | {{{e prof bonus | {{{prof bonus|}}} }}} }}
| {{#lvardef: e_prof_bonus | {{{e prof bonus | {{{prof bonus|}}} }}} }}
| {{#if: {{#lvar:e_level}}
| {{#if: {{#lvar:e_level}}
   | {{#lvardef: e_prof_bonus | +{{#expr: 2 {{#ifexpr: {{#lvar:e_level}} >= 5 | + 1}} {{#ifexpr: {{#lvar:e_level}} >= 9 | + 1}} }} }}
   | {{#lvardef: e_prof_bonus | +{{#expr: 2 {{#ifexpr: {{#lvar:e_level}} >= 5 | + 1}} {{#ifexpr: {{#lvar:e_level}} >= 9 | + 1}} + 2 }} }}
   }}
   }}
}}
}}
Line 143: Line 149:
{{#lvardef: e_wis_save | {{plus if pos | {{#lvar:e_wis_mod}} {{#if: {{#lvar:e_wis_save_prof}} | {{#lvar:e_prof_bonus}} }} + {{#lvar: e_wis_save_extra}} }} }}
{{#lvardef: e_wis_save | {{plus if pos | {{#lvar:e_wis_mod}} {{#if: {{#lvar:e_wis_save_prof}} | {{#lvar:e_prof_bonus}} }} + {{#lvar: e_wis_save_extra}} }} }}
{{#lvardef: e_cha_save | {{plus if pos | {{#lvar:e_cha_mod}} {{#if: {{#lvar:e_cha_save_prof}} | {{#lvar:e_prof_bonus}} }} + {{#lvar: e_cha_save_extra}} }} }}
{{#lvardef: e_cha_save | {{plus if pos | {{#lvar:e_cha_mod}} {{#if: {{#lvar:e_cha_save_prof}} | {{#lvar:e_prof_bonus}} }} + {{#lvar: e_cha_save_extra}} }} }}
<!-- Explorer skills -->
{{#lvardef: e_athletics  | {{{e athletics  | {{{athletics|}}}  }}} }}
{{#lvardef: e_acrobatics | {{{e acrobatics | {{{acrobatics|}}} }}} }}
{{#lvardef: e_perception | {{{e perception | {{{perception|}}} }}} }}


<!-- Explorer resistances, actions, conditions, passives -->
<!-- Explorer resistances, actions, conditions, passives -->
Line 166: Line 177:
{{#lvardef: t_movement_ft | {{m to ft | {{#lvar:t_movement_m|0}} }} }}
{{#lvardef: t_movement_ft | {{m to ft | {{#lvar:t_movement_m|0}} }} }}
{{#lvardef: t_weight_lb | {{kg to lb | {{#lvar:t_weight_kg|0}} }} }}
{{#lvardef: t_weight_lb | {{kg to lb | {{#lvar:t_weight_kg|0}} }} }}
<!-- Tactician experience reward -->
{{#lvardef: t_xp | {{{t xp | {{{t XP|{{{t exp|{{#lvar:xp|}} }}} }}} }}} }}


<!-- Tactician ability scores -->
<!-- Tactician ability scores -->
Line 229: Line 243:
{{#lvardef: t_wis_save | {{plus if pos | {{#lvar:t_wis_mod}} {{#if: {{#lvar:t_wis_save_prof}} | {{#lvar:t_prof_bonus}} }} + {{#lvar:t_wis_save_extra}} }} }}
{{#lvardef: t_wis_save | {{plus if pos | {{#lvar:t_wis_mod}} {{#if: {{#lvar:t_wis_save_prof}} | {{#lvar:t_prof_bonus}} }} + {{#lvar:t_wis_save_extra}} }} }}
{{#lvardef: t_cha_save | {{plus if pos | {{#lvar:t_cha_mod}} {{#if: {{#lvar:t_cha_save_prof}} | {{#lvar:t_prof_bonus}} }} + {{#lvar:t_cha_save_extra}} }} }}
{{#lvardef: t_cha_save | {{plus if pos | {{#lvar:t_cha_mod}} {{#if: {{#lvar:t_cha_save_prof}} | {{#lvar:t_prof_bonus}} }} + {{#lvar:t_cha_save_extra}} }} }}
<!-- Tactician skills -->
{{#lvardef: t_athletics  | {{{t athletics  | {{{athletics|}}}  }}} }}
{{#lvardef: t_acrobatics | {{{t acrobatics | {{{acrobatics|}}} }}} }}
{{#lvardef: t_perception | {{{t perception | {{{perception|}}} }}} }}


<!-- Tactician resistances, conditions, passives -->
<!-- Tactician resistances, conditions, passives -->
Line 252: Line 271:
{{#lvardef: h_movement_ft | {{m to ft | {{#lvar:h_movement_m|0}} }} }}
{{#lvardef: h_movement_ft | {{m to ft | {{#lvar:h_movement_m|0}} }} }}
{{#lvardef: h_weight_lb | {{kg to lb | {{#lvar:h_weight_kg|0}} }} }}
{{#lvardef: h_weight_lb | {{kg to lb | {{#lvar:h_weight_kg|0}} }} }}
<!-- Honour experience reward -->
{{#lvardef: h_xp | {{{h xp | {{{h XP|{{{h exp|{{#lvar:xp|}} }}} }}} }}} }}


<!-- Honour ability scores -->
<!-- Honour ability scores -->
Line 317: Line 339:
{{#lvardef: h_wis_save | {{plus if pos | {{#lvar:h_wis_mod}} {{#if: {{#lvar:h_wis_save_prof}} | {{#lvar:h_prof_bonus}} }} + {{#lvar: h_cha_save_extra}} }} }}
{{#lvardef: h_wis_save | {{plus if pos | {{#lvar:h_wis_mod}} {{#if: {{#lvar:h_wis_save_prof}} | {{#lvar:h_prof_bonus}} }} + {{#lvar: h_cha_save_extra}} }} }}
{{#lvardef: h_cha_save | {{plus if pos | {{#lvar:h_cha_mod}} {{#if: {{#lvar:h_cha_save_prof}} | {{#lvar:h_prof_bonus}} }} + {{#lvar: h_cha_save_extra}} }} }}
{{#lvardef: h_cha_save | {{plus if pos | {{#lvar:h_cha_mod}} {{#if: {{#lvar:h_cha_save_prof}} | {{#lvar:h_prof_bonus}} }} + {{#lvar: h_cha_save_extra}} }} }}
<!-- Honour skills -->
{{#lvardef: h_athletics  | {{{h athletics  | {{{athletics|}}}  }}} }}
{{#lvardef: h_acrobatics | {{{h acrobatics | {{{acrobatics|}}} }}} }}
{{#lvardef: h_perception | {{{h perception | {{{perception|}}} }}} }}


<!-- Honour resistances, conditions, passives -->
<!-- Honour resistances, conditions, passives -->
Line 333: Line 360:
| {{#if: {{{t hp|}}} | | {{Main namespace only|[[Category:Pages with hp but no tactician hp]]}} }}{{#if: {{{e hp|}}} | | {{Main namespace only|[[Category:Pages with hp but no explorer hp]]}} }}
| {{#if: {{{t hp|}}} | | {{Main namespace only|[[Category:Pages with hp but no tactician hp]]}} }}{{#if: {{{e hp|}}} | | {{Main namespace only|[[Category:Pages with hp but no explorer hp]]}} }}
}}
}}
{{#if: {{{image|}}}||{{Main namespace only|[[Category:Infoboxes with no images]]}}}}


}}
}}
Line 339: Line 367:
| name = {{{name|}}}
| name = {{{name|}}}
| title = {{{title|}}}
| title = {{{title|}}}
| image = {{{image|{{Main namespace only|[[Category:Infoboxes with no images]]]]}}}}}
| image = {{{image|}}}
| full name = {{{full name|}}}
| full name = {{{full name|}}}
| identity = {{{identity|}}}
| va = {{#lvar:va}}
| va = {{#lvar:va}}
| role = {{{role|}}}
| role = {{{role|}}}
Line 350: Line 379:
| type = {{{type|}}}
| type = {{{type|}}}
| race = {{{race|}}}
| race = {{{race|}}}
| subrace = {{{subrace|}}}
| archetype = {{{archetype|}}}
| archetype = {{{archetype|}}}
| class = {{{class|}}}
| class = {{{class|}}}
| subclass = {{{subclass|}}}
| subclass = {{{subclass|}}}
| deity = {{{deity|}}}
| background = {{{background|}}}
| background = {{{background|}}}


Line 364: Line 395:
| weight kg = {{{weight kg|}}}
| weight kg = {{{weight kg|}}}
| weight lb = {{#lvar:weight_lb}}
| weight lb = {{#lvar:weight_lb}}
| xp = {{#lvar:xp}}


| str = {{{str|}}}
| str = {{{str|}}}
Line 392: Line 424:
| wis save prof = {{{wis save prof|}}}
| wis save prof = {{{wis save prof|}}}
| cha save prof = {{{cha save prof|}}}
| cha save prof = {{{cha save prof|}}}
| athletics  = {{{athletics|}}}
| acrobatics = {{{acrobatics|}}}
| perception = {{{perception|}}}


| resistances = {{{resistances|}}}
| resistances = {{{resistances|}}}
Line 407: Line 443:
| e weight kg = {{#if: {{#lvar: has_explorer_stats}} | {{#lvar:e_weight_kg}} | }}
| e weight kg = {{#if: {{#lvar: has_explorer_stats}} | {{#lvar:e_weight_kg}} | }}
| e weight lb = {{#if: {{#lvar: has_explorer_stats}} | {{#lvar:e_weight_lb}} | }}
| e weight lb = {{#if: {{#lvar: has_explorer_stats}} | {{#lvar:e_weight_lb}} | }}
| e xp = {{#if: {{#lvar: has_explorer_stats}} | {{#lvar:e_xp}} | }}


| e str save prof = {{#if: {{#lvar: has_explorer_stats}} | {{#lvar:e_str_save_prof}} | }}
| e str save prof = {{#if: {{#lvar: has_explorer_stats}} | {{#lvar:e_str_save_prof}} | }}
Line 435: Line 472:
| e wis save = {{#if: {{#lvar: has_explorer_stats}} | {{#lvar:e_wis_save}} | }}
| e wis save = {{#if: {{#lvar: has_explorer_stats}} | {{#lvar:e_wis_save}} | }}
| e cha save = {{#if: {{#lvar: has_explorer_stats}} | {{#lvar:e_cha_save}} | }}
| e cha save = {{#if: {{#lvar: has_explorer_stats}} | {{#lvar:e_cha_save}} | }}
| e athletics  = {{#if: {{#lvar: has_explorer_stats}} | {{#lvar:e_athletics}} | }}
| e acrobatics = {{#if: {{#lvar: has_explorer_stats}} | {{#lvar:e_acrobatics}} | }}
| e perception = {{#if: {{#lvar: has_explorer_stats}} | {{#lvar:e_perception}} | }}


| e resistances = {{#if: {{#lvar: has_explorer_stats}} | {{#lvar:e_resistances}} | }}
| e resistances = {{#if: {{#lvar: has_explorer_stats}} | {{#lvar:e_resistances}} | }}
Line 450: Line 491:
| t weight kg = {{#if: {{#lvar: has_tactician_stats}} | {{#lvar:t_weight_kg}} | }}
| t weight kg = {{#if: {{#lvar: has_tactician_stats}} | {{#lvar:t_weight_kg}} | }}
| t weight lb = {{#if: {{#lvar: has_tactician_stats}} | {{#lvar:t_weight_lb}} | }}
| t weight lb = {{#if: {{#lvar: has_tactician_stats}} | {{#lvar:t_weight_lb}} | }}
| t xp = {{#if: {{#lvar: has_tactician_stats}} | {{#lvar:t_xp}} | }}


| t str save prof = {{#if: {{#lvar: has_tactician_stats}} | {{#lvar:t_str_save_prof}} | }}
| t str save prof = {{#if: {{#lvar: has_tactician_stats}} | {{#lvar:t_str_save_prof}} | }}
Line 478: Line 520:
| t wis save = {{#if: {{#lvar: has_tactician_stats}} | {{#lvar:t_wis_save}} | }}
| t wis save = {{#if: {{#lvar: has_tactician_stats}} | {{#lvar:t_wis_save}} | }}
| t cha save = {{#if: {{#lvar: has_tactician_stats}} | {{#lvar:t_cha_save}} | }}
| t cha save = {{#if: {{#lvar: has_tactician_stats}} | {{#lvar:t_cha_save}} | }}
| t athletics  = {{#if: {{#lvar: has_tactician_stats}} | {{#lvar:t_athletics}} | }}
| t acrobatics = {{#if: {{#lvar: has_tactician_stats}} | {{#lvar:t_acrobatics}} | }}
| t perception = {{#if: {{#lvar: has_tactician_stats}} | {{#lvar:t_perception}} | }}


| t resistances = {{#if: {{#lvar: has_tactician_stats}} | {{#lvar:t_resistances}} | }}
| t resistances = {{#if: {{#lvar: has_tactician_stats}} | {{#lvar:t_resistances}} | }}
Line 493: Line 539:
| h weight kg = {{#if: {{#lvar: has_honour_stats}} | {{#lvar:h_weight_kg}} | }}
| h weight kg = {{#if: {{#lvar: has_honour_stats}} | {{#lvar:h_weight_kg}} | }}
| h weight lb = {{#if: {{#lvar: has_honour_stats}} | {{#lvar:h_weight_lb}} | }}
| h weight lb = {{#if: {{#lvar: has_honour_stats}} | {{#lvar:h_weight_lb}} | }}
| h xp = {{#if: {{#lvar: has_honour_stats}} | {{#lvar:h_xp}} | }}


| h str save prof = {{#if: {{#lvar: has_honour_stats}} | {{#lvar:h_str_save_prof}} | }}
| h str save prof = {{#if: {{#lvar: has_honour_stats}} | {{#lvar:h_str_save_prof}} | }}
Line 521: Line 568:
| h wis save = {{#if: {{#lvar: has_honour_stats}} | {{#lvar:h_wis_save}} | }}
| h wis save = {{#if: {{#lvar: has_honour_stats}} | {{#lvar:h_wis_save}} | }}
| h cha save = {{#if: {{#lvar: has_honour_stats}} | {{#lvar:h_cha_save}} | }}
| h cha save = {{#if: {{#lvar: has_honour_stats}} | {{#lvar:h_cha_save}} | }}
| h athletics  = {{#if: {{#lvar: has_honour_stats}} | {{#lvar:h_athletics}} | }}
| h acrobatics = {{#if: {{#lvar: has_honour_stats}} | {{#lvar:h_acrobatics}} | }}
| h perception = {{#if: {{#lvar: has_honour_stats}} | {{#lvar:h_perception}} | }}


| h resistances = {{#if: {{#lvar: has_honour_stats}} | {{#lvar:h_resistances}} | }}
| h resistances = {{#if: {{#lvar: has_honour_stats}} | {{#lvar:h_resistances}} | }}
Line 527: Line 578:
| h passives = {{#if: {{#lvar: has_honour_stats}} | {{#lvar:h_passives}} | }}
| h passives = {{#if: {{#lvar: has_honour_stats}} | {{#lvar:h_passives}} | }}


| uid = {{{uid|}}}
| uuid = {{{uuid|}}}
| stats = {{{stats|}}}
}}</includeonly><noinclude>{{documentation}}</noinclude>
}}</includeonly><noinclude>{{documentation}}</noinclude>

Latest revision as of 17:07, 23 November 2024

Template documentation

This is the main creature infobox template. It does a bunch of processing on its parameters before passing on all the results to Template:Infobox creature/internal for displaying.

List of helper sub-templates:

Usage tips:

  • To override stats for Explorer, Tactician, or Honour mode, use parameters starting with e, t, or h, respectively. E.g. use t hp to specify the HP value for Tactician difficulty. Explorer and Tactician fall back to Balanced (default) stats when a stat isn't overridden; Honour falls abck to Tactician stats.
  • The passives list may contain elements of the format Passive name @ Item name to specify the item that grants the passive. This will make that item's icon be used if the passive itself doesn't have an icon.
  • The image property may contain a <gallery>...</gallery>.
  • The provided image will be automatically set as the page image (as if using Template:PageSeo), unless it's a gallery. If it's a gallery, you can use the page image property instead to set the page image.

How to specify a creature's initiative bonus:

  • If a creature's initiative bonus is just their Dex modifier, then you mustn't use any initiative-related parameters. It will automatically use the Dex modifier.
  • If a creature has extra initiative bonus through sources other than Dex, use the extra init parameter to specify the extra value (without Dex modifier).
  • For example, if a creature has Alert (+5), Feral Instinct (+3), and Ambusher (+1), then you would specify extra init = 9, and the Dex modifier will be automatically added on top.
  • This way, if the creature's Dex changes between difficulties, the correct initiative bonus will be calculated. If necessary, the extra init parameter can also be changed per difficulty; for example, if the creature's Dex stays the same between difficulties, but they have an additional passive feature in a higher difficulty that grants them extra initiative.

Example use:

{{Infobox creature
| name = Test
| title = Title
| image =
<gallery>
Steel Watcher Ranged.png|Ranged
Steel Watcher Model.png|Model
</gallery>
| page image = Steel Watcher Model.png
| full name = Duke Wellington
| identity = Female
| va = Amelia Tyler
| role = Mascot
| faction = Gondor
| family = Power Puff Girls
| hometown = The Shire
| occupation = Butcher and Baker
| size = Smol
| type = Mammal
| race = Cat
| subrace = Tabby
| archetype = Soldier Cat
| class = Felinid
| subclass = Tiger
| deity = Bastet
| background = Outlander

| level = 10
| hp = 10
| ac = 10
| extra init = +3
| prof bonus = +4
| movement m = 9
| weight kg = 600
| xp = 150

| str = 11
| dex = 12
| con = 13
| int = 14
| wis = 15
| cha = 16

| str save extra = +2
| dex save extra = +3
| con save extra = +4
| int save extra = +5
| wis save extra = +6
| cha save extra = +7

| dex save prof = yes
| con save prof = yes

| perception = 10
| athletics = 8
| acrobatics = 4

| resistances = fire resistant, cold resistant, lightning vulnerable
| actions = Absolute Power, Dueller's Enthusiasm
| conditions = Aura of Protection, Aura of Hate
| passives = Agile Chassis, Cull the Weak (Drider)

| e level = 8
| e hp = 8
| e ac = 8
| e extra init = +2
| e prof bonus = +3

| e str = 10
| e dex = 11
| e con = 12
| e int = 13
| e wis = 14
| e cha = 15

| e str save extra = +2
| e dex save extra = +3
| e con save extra = +4
| e int save extra = +5
| e wis save extra = +6
| e cha save extra = +7

| e resistances = cold resistant
| e actions = Absolute Power
| e conditions = Aura of Protection
| e passives = Agile Chassis

| t level = 12
| t hp = 12
| t ac = 12
| t extra init = +4
| t prof bonus = +5
| t movement m = 12
| t weight kg = 800

| t str = 13
| t dex = 14
| t con = 15
| t int = 16
| t wis = 17
| t cha = 18

| t str save extra = +2
| t dex save extra = +3
| t con save extra = +4
| t int save extra = +5
| t wis save extra = +6
| t cha save extra = +7

| t resistances = fire immune, cold resistant, slashing immune nm, piercing immune nm, bludgeoning immune nm
| t actions = Absolute Power, Dueller's Enthusiasm, Entangle
| t conditions = Aura of Protection, Aura of Hate, Unstoppable
| t passives = Agile Chassis, Cull the Weak (Drider), Adamantine Shield @ Adamantine Shield

| h level = 14
| h hp = 14
| h ac = 14
| h extra init = +5
| h prof bonus = +6

| h str = 14
| h dex = 15
| h con = 16
| h int = 17
| h wis = 18
| h cha = 19

| h str save extra = +2
| h dex save extra = +3
| h con save extra = +4
| h int save extra = +5
| h wis save extra = +6
| h cha save extra = +7

| h resistances = fire immune, cold immune, slashing immune nm, piercing immune nm, bludgeoning immune nm
| h actions = Absolute Power, Dueller's Enthusiasm, Entangle, Fireball
| h conditions = Aura of Protection, Aura of Hate, Unstoppable, Legendary Resistance: Incapacitation
| h passives = Agile Chassis, Cull the Weak (Drider), Adamantine Shield @ Adamantine Shield, Fast Hands

| uid = SteelWatcher_Biped_A_Ranged
| uuid = 70417e3e-9278-4f96-a1d8-5bd90bf5d07a
| stats = Steel_Watcher_Biped
}}