Template:Infobox creature: Difference between revisions

From Baldur's Gate 3 Wiki
Jump to navigation Jump to search
(Same for other difficulties)
(Remove wrapping div because we modify PortableInfobox to do this properly.)
 
(12 intermediate revisions by 2 users not shown)
Line 1: Line 1:
<includeonly>{{trim|
<includeonly>{{#if: {{{image|}}}
| {{#seo: image = {{{page image | {{{image}}} }}} }}
}}{{trim|
 
<!-- Movement and weight in ft and lb -->
<!-- Movement and weight in ft and lb -->
{{#lvardef: movement_ft | {{m to ft | {{{movement m|0}}} }} }}
{{#lvardef: movement_ft | {{m to ft | {{{movement m|0}}} }} }}
Line 45: Line 48:
{{#lvardef: e_hp | {{{e hp | {{{hp|}}} }}} }}
{{#lvardef: e_hp | {{{e hp | {{{hp|}}} }}} }}
{{#lvardef: e_ac | {{{e ac | {{{ac|}}} }}} }}
{{#lvardef: e_ac | {{{e ac | {{{ac|}}} }}} }}
{{#lvardef: e_initiative | {{{e initiative | {{{initiative|{{#lvar:dex_mod}}}}} }}} }}


<!-- Explorer movement and weight -->
<!-- Explorer movement and weight -->
Line 68: Line 70:
{{#lvardef: e_wis_mod | {{#ifexpr: {{#lvar:e_wis}} > 11 | + }}{{#expr: floor({{#lvar:e_wis}} / 2) - 5 }} }}
{{#lvardef: e_wis_mod | {{#ifexpr: {{#lvar:e_wis}} > 11 | + }}{{#expr: floor({{#lvar:e_wis}} / 2) - 5 }} }}
{{#lvardef: e_cha_mod | {{#ifexpr: {{#lvar:e_cha}} > 11 | + }}{{#expr: floor({{#lvar:e_cha}} / 2) - 5 }} }}
{{#lvardef: e_cha_mod | {{#ifexpr: {{#lvar:e_cha}} > 11 | + }}{{#expr: floor({{#lvar:e_cha}} / 2) - 5 }} }}
{{#lvardef: e_initiative | {{{e initiative | {{#lvar:e_dex_mod}} }}} }}


<!-- Explorer level -->
<!-- Explorer level -->
Line 103: Line 107:
{{#lvardef: e_cha_save | {{#ifexpr: {{#lvar:e_cha_save_val}} > 0 | +}}{{#lvar:e_cha_save_val}} }}
{{#lvardef: e_cha_save | {{#ifexpr: {{#lvar:e_cha_save_val}} > 0 | +}}{{#lvar:e_cha_save_val}} }}


<!-- Explorer resistances, conditions, passives -->
<!-- Explorer resistances, actions, conditions, passives -->
{{#lvardef: e_resistances | {{{e resistances | {{{resistances|}}} }}} }}
{{#lvardef: e_resistances | {{{e resistances | {{{resistances|}}} }}} }}
{{#lvardef: e_actions | {{{e actions | {{{actions|}}} }}} }}
{{#lvardef: e_conditions | {{{e conditions | {{{conditions|}}} }}} }}
{{#lvardef: e_conditions | {{{e conditions | {{{conditions|}}} }}} }}
{{#lvardef: e_passives | {{{e passives | {{{passives|}}} }}} }}
{{#lvardef: e_passives | {{{e passives | {{{passives|}}} }}} }}
Line 115: Line 120:
{{#lvardef: t_hp | {{{t hp | {{{hp|}}} }}} }}
{{#lvardef: t_hp | {{{t hp | {{{hp|}}} }}} }}
{{#lvardef: t_ac | {{{t ac | {{{ac|}}} }}} }}
{{#lvardef: t_ac | {{{t ac | {{{ac|}}} }}} }}
{{#lvardef: t_initiative | {{{t initiative | {{{initiative|{{#lvar:dex_mod}}}}} }}} }}


<!-- Tactician movement and weight -->
<!-- Tactician movement and weight -->
Line 138: Line 142:
{{#lvardef: t_wis_mod | {{#ifexpr: {{#lvar:t_wis}} > 11 | + }}{{#expr: floor({{#lvar:t_wis}} / 2) - 5 }} }}
{{#lvardef: t_wis_mod | {{#ifexpr: {{#lvar:t_wis}} > 11 | + }}{{#expr: floor({{#lvar:t_wis}} / 2) - 5 }} }}
{{#lvardef: t_cha_mod | {{#ifexpr: {{#lvar:t_cha}} > 11 | + }}{{#expr: floor({{#lvar:t_cha}} / 2) - 5 }} }}
{{#lvardef: t_cha_mod | {{#ifexpr: {{#lvar:t_cha}} > 11 | + }}{{#expr: floor({{#lvar:t_cha}} / 2) - 5 }} }}
{{#lvardef: t_initiative | {{{t initiative | {{#lvar:t_dex_mod}} }}} }}


<!-- Tactician level -->
<!-- Tactician level -->
Line 175: Line 181:
<!-- Tactician resistances, conditions, passives -->
<!-- Tactician resistances, conditions, passives -->
{{#lvardef: t_resistances | {{{t resistances | {{{resistances|}}} }}} }}
{{#lvardef: t_resistances | {{{t resistances | {{{resistances|}}} }}} }}
{{#lvardef: t_actions | {{{t actions | {{{actions|}}} }}} }}
{{#lvardef: t_conditions | {{{t conditions | {{{conditions|}}} }}} }}
{{#lvardef: t_conditions | {{{t conditions | {{{conditions|}}} }}} }}
{{#lvardef: t_passives | {{{t passives | {{{passives|}}} }}} }}
{{#lvardef: t_passives | {{{t passives | {{{passives|}}} }}} }}
Line 185: Line 192:
{{#lvardef: h_hp | {{{h hp | {{#lvar:t_hp}} }}} }}
{{#lvardef: h_hp | {{{h hp | {{#lvar:t_hp}} }}} }}
{{#lvardef: h_ac | {{{h ac | {{#lvar:t_ac}} }}} }}
{{#lvardef: h_ac | {{{h ac | {{#lvar:t_ac}} }}} }}
{{#lvardef: h_initiative | {{{h initiative | {{#lvar:t_initiative}} }}} }}


<!-- Honour movement and weight -->
<!-- Honour movement and weight -->
Line 208: Line 214:
{{#lvardef: h_wis_mod | {{#ifexpr: {{#lvar:h_wis}} > 11 | + }}{{#expr: floor({{#lvar:h_wis}} / 2) - 5 }} }}
{{#lvardef: h_wis_mod | {{#ifexpr: {{#lvar:h_wis}} > 11 | + }}{{#expr: floor({{#lvar:h_wis}} / 2) - 5 }} }}
{{#lvardef: h_cha_mod | {{#ifexpr: {{#lvar:h_cha}} > 11 | + }}{{#expr: floor({{#lvar:h_cha}} / 2) - 5 }} }}
{{#lvardef: h_cha_mod | {{#ifexpr: {{#lvar:h_cha}} > 11 | + }}{{#expr: floor({{#lvar:h_cha}} / 2) - 5 }} }}
{{#lvardef: h_initiative | {{{h initiative | {{#lvar:t_initiative}} }}} }}


<!-- Honour level -->
<!-- Honour level -->
Line 245: Line 253:
<!-- Honour resistances, conditions, passives -->
<!-- Honour resistances, conditions, passives -->
{{#lvardef: h_resistances | {{{h resistances | {{#lvar:t_resistances}} }}} }}
{{#lvardef: h_resistances | {{{h resistances | {{#lvar:t_resistances}} }}} }}
{{#lvardef: h_actions | {{{h actions | {{#lvar:t_actions}} }}} }}
{{#lvardef: h_conditions | {{{h conditions | {{#lvar:t_conditions}} }}} }}
{{#lvardef: h_conditions | {{{h conditions | {{#lvar:t_conditions}} }}} }}
{{#lvardef: h_passives | {{{h passives | {{#lvar:t_passives}} }}} }}
{{#lvardef: h_passives | {{{h passives | {{#lvar:t_passives}} }}} }}
Line 252: Line 261:
| title = {{{title|}}}
| title = {{{title|}}}
| image = {{{image|}}}
| image = {{{image|}}}
| full name = {{{full name|}}}
| va = {{{va|}}}
| va = {{{va|}}}
| role = {{{role|}}}
| role = {{{role|}}}
Line 303: Line 313:


| resistances = {{{resistances|}}}
| resistances = {{{resistances|}}}
| actions = {{{actions|}}}
| conditions = {{{conditions|}}}
| conditions = {{{conditions|}}}
| passives = {{{passives|}}}
| passives = {{{passives|}}}
Line 345: Line 356:


| e resistances = {{#lvar:e_resistances}}
| e resistances = {{#lvar:e_resistances}}
| e actions = {{#lvar:e_actions}}
| e conditions = {{#lvar:e_conditions}}
| e conditions = {{#lvar:e_conditions}}
| e passives = {{#lvar:e_passives}}
| e passives = {{#lvar:e_passives}}
Line 387: Line 399:


| t resistances = {{#lvar:t_resistances}}
| t resistances = {{#lvar:t_resistances}}
| t actions = {{#lvar:t_actions}}
| t conditions = {{#lvar:t_conditions}}
| t conditions = {{#lvar:t_conditions}}
| t passives = {{#lvar:t_passives}}
| t passives = {{#lvar:t_passives}}
Line 429: Line 442:


| h resistances = {{#lvar:h_resistances}}
| h resistances = {{#lvar:h_resistances}}
| h actions = {{#lvar:h_actions}}
| h conditions = {{#lvar:h_conditions}}
| h conditions = {{#lvar:h_conditions}}
| h passives = {{#lvar:h_passives}}
| h passives = {{#lvar:h_passives}}
Line 440: Line 454:
Steel Watcher Model.png|Model
Steel Watcher Model.png|Model
</gallery>
</gallery>
| page image = Steel Watcher Model.png
| full name = Duke Wellington
| va = Keanu Reeves
| va = Keanu Reeves
| role = Mascot
| role = Mascot
Line 471: Line 487:


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


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


| t resistances = fire immune, cold resistant, slashing immune nm, piercing immune nm, bludgeoning immune nm
| 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 conditions = Aura of Protection, Aura of Hate, Unstoppable
| t passives = Agile Chassis, Cull the Weak (Drider), Adamantine Shield @ Adamantine Shield
| t passives = Agile Chassis, Cull the Weak (Drider), Adamantine Shield @ Adamantine Shield
Line 524: Line 543:


| h resistances = fire immune, cold immune, slashing immune nm, piercing immune nm, bludgeoning immune nm
| 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 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
| h passives = Agile Chassis, Cull the Weak (Drider), Adamantine Shield @ Adamantine Shield, Fast Hands
Line 530: Line 550:
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.
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.


To override stats for Explorer, Tactician, or Honour mode, use parameters starting with e, t, or h, respectively. E.g. use <code>t hp</code> 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.
List of helper sub-templates:
 
* [[Template:Infobox creature/internal]]
* [[Template:Infobox creature/actions format]]
* [[Template:Infobox creature/actions query]]
* [[Template:Infobox creature/conditions format]]
* [[Template:Infobox creature/conditions query]]
* [[Template:Infobox creature/passives format]]
* [[Template:Infobox creature/passives parser]]
* [[Template:Infobox creature/passives query]]
 
Usage tips:


The <code>passives</code> list may contain elements of the format <code>Passive name @ Item name</code> 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.
* To override stats for Explorer, Tactician, or Honour mode, use parameters starting with e, t, or h, respectively. E.g. use <code>t hp</code> 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 <code>passives</code> list may contain elements of the format <code>Passive name @ Item name</code> 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 <code>image</code> property may contain a <code><nowiki><gallery>...</gallery></nowiki></code>.
* 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 <code>page image</code> property instead to set the page image.


Example use:
Example use:
Line 545: Line 579:
Steel Watcher Model.png|Model
Steel Watcher Model.png|Model
</gallery>
</gallery>
| full name = Duke Wellington
| va = Keanu Reeves
| va = Keanu Reeves
| role = Mascot
| role = Mascot

Latest revision as of 04:18, 31 May 2024

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.

Example use:

{{Infobox creature
| name = Test
| title = Title
| image =
<gallery>
Steel Watcher Ranged.png|Ranged
Steel Watcher Model.png|Model
</gallery>
| full name = Duke Wellington
| va = Keanu Reeves
| role = Mascot
| faction = Gondor
| family = The Reeves'
| hometown = The Shire

| size = Smol
| type = Mammal
| race = Cat
| class = Felinid
| background = Outlander

| level = 10
| hp = 10
| ac = 10
| initiative = +5
| prof bonus = +4
| movement m = 9
| weight kg = 600

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

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

| resistances = fire resistant, cold resistant, lightning vulnerable
| conditions = Aura of Protection, Aura of Hate
| passives = Agile Chassis, Cull the Weak (Drider)

| e level = 8
| e hp = 8
| e ac = 8
| e initiative = +4
| e prof bonus = +3

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

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

| t level = 12
| t hp = 12
| t ac = 12
| t initiative = +6
| 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 resistances = fire immune, cold resistant, slashing immune nm, piercing immune nm, bludgeoning immune nm
| 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 initiative = +7
| h prof bonus = +6

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

| h resistances = fire immune, cold immune, slashing immune nm, piercing immune nm, bludgeoning immune nm
| 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
}}