Template:Infobox creature: Difference between revisions
Jump to navigation
Jump to search
HiddenDragon (talk | contribs) mNo edit summary Tag: Manual revert |
HiddenDragon (talk | contribs) m (Another experiment) |
||
Line 149: | Line 149: | ||
{{#lvardef: e_conditions | {{{e conditions | {{{conditions|}}} }}} }} | {{#lvardef: e_conditions | {{{e conditions | {{{conditions|}}} }}} }} | ||
{{#lvardef: e_passives | {{{e passives | {{{passives|}}} }}} }} | {{#lvardef: e_passives | {{{e passives | {{{passives|}}} }}} }} | ||
{{#if: {{{e level|}}}{{{e hp|}}}{{{e ac|}}}{{{e extra init|}}}{{{e prof bonus|}}}{{{e movement m|}}}{{{e movement ft|}}}{{{e weight kg|}}}{{{e weight lb|}}}{{{e str save prof|}}}{{{e dex save prof|}}}{{{e con save prof|}}}{{{e int save prof|}}}{{{e wis save prof|}}}{{{e cha save prof|}}}{{{e str|}}}{{{e dex|}}}{{{e con|}}}{{{e int|}}}{{{e wis|}}}{{{e cha|}}}{{{e str mod|}}}{{{e dex mod|}}}{{{e con mod|}}}{{{e int mod|}}}{{{e wis mod|}}}{{{e cha mod|}}}{{{e str save|}}}{{{e dex save|}}}{{{e con save|}}}{{{e int save|}}}{{{e wis save|}}}{{{e cha save|}}}{{{e str save extra|}}}{{{e dex save extra|}}}{{{e con save extra|}}}{{{e int save extra|}}}{{{e wis save extra|}}}{{{e cha save extra|}}}{{{e resistances|}}}{{{e actions|}}}{{{e conditions|}}}{{{e passives|}}} | {{#lvardef: has_explorer_stats | 1 }} | }} | |||
<!-- | <!-- | ||
Line 232: | Line 234: | ||
{{#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 317: | Line 320: | ||
{{#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}} }}} }} | ||
{{#if: {{{h level|}}}{{{h hp|}}}{{{h ac|}}}{{{h init bonus|}}}{{{h prof bonus|}}}{{{h movement m|}}}{{{h movement ft|}}}{{{h weight kg|}}}{{{h weight lb|}}}{{{h str save prof|}}}{{{h dex save prof|}}}{{{h con save prof|}}}{{{h int save prof|}}}{{{h wis save prof|}}}{{{h cha save prof|}}}{{{h str|}}}{{{h dex|}}}{{{h con|}}}{{{h int|}}}{{{h wis|}}}{{{h cha|}}}{{{h str mod|}}}{{{h dex mod|}}}{{{h con mod|}}}{{{h int mod|}}}{{{h wis mod|}}}{{{h cha mod|}}}{{{h str save|}}}{{{h dex save|}}}{{{h con save|}}}{{{h int save|}}}{{{h wis save|}}}{{{h cha save|}}}{{{h resistances|}}}{{{h actions|}}}{{{h conditions|}}}{{{h passives|}}} | {{#lvardef: has_honour_stats | 1 }} | }} | |||
{{#if: {{{initiative|}}} {{{e initiative|}}} {{{t initiative|}}} {{{h initiative|}}} | {{#if: {{{initiative|}}} {{{e initiative|}}} {{{t initiative|}}} {{{h initiative|}}} | ||
Line 385: | Line 390: | ||
| passives = {{{passives|}}} | | passives = {{{passives|}}} | ||
| e level = {{{e level | {{{level|}}} }}} | | e level = {{#if: {{#lvar: has_explorer_stats}} | {{{e level | {{{level|}}} }}} | }} | ||
| e hp = {{#lvar:e_hp}} | | e hp = {{#if: {{#lvar: has_explorer_stats}} | {{#lvar:e_hp}} | }} | ||
| e ac = {{#lvar:e_ac}} | | e ac = {{#if: {{#lvar: has_explorer_stats}} | {{#lvar:e_ac}} | }} | ||
| e init bonus = {{#lvar:e_init_bonus}} | | e init bonus = {{#if: {{#lvar: has_explorer_stats}} | {{#lvar:e_init_bonus}} | }} | ||
| e prof bonus = {{#lvar:e_prof_bonus}} | | e prof bonus = {{#if: {{#lvar: has_explorer_stats}} | {{#lvar:e_prof_bonus}} | }} | ||
| e movement m = {{#lvar:e_movement_m}} | | e movement m = {{#if: {{#lvar: has_explorer_stats}} | {{#lvar:e_movement_m}} | }} | ||
| e movement ft = {{#lvar:e_movement_ft}} | | e movement ft = {{#if: {{#lvar: has_explorer_stats}} | {{#lvar:e_movement_ft}} | }} | ||
| e weight kg = {{#lvar:e_weight_kg}} | | e weight kg = {{#if: {{#lvar: has_explorer_stats}} | {{#lvar:e_weight_kg}} | }} | ||
| e weight lb = {{#lvar:e_weight_lb}} | | e weight lb = {{#if: {{#lvar: has_explorer_stats}} | {{#lvar:e_weight_lb}} | }} | ||
| e str save prof = {{#lvar:e_str_save_prof}} | | e str save prof = {{#if: {{#lvar: has_explorer_stats}} | {{#lvar:e_str_save_prof}} | }} | ||
| e dex save prof = {{#lvar:e_dex_save_prof}} | | e dex save prof = {{#if: {{#lvar: has_explorer_stats}} | {{#lvar:e_dex_save_prof}} | }} | ||
| e con save prof = {{#lvar:e_con_save_prof}} | | e con save prof = {{#if: {{#lvar: has_explorer_stats}} | {{#lvar:e_con_save_prof}} | }} | ||
| e int save prof = {{#lvar:e_int_save_prof}} | | e int save prof = {{#if: {{#lvar: has_explorer_stats}} | {{#lvar:e_int_save_prof}} | }} | ||
| e wis save prof = {{#lvar:e_wis_save_prof}} | | e wis save prof = {{#if: {{#lvar: has_explorer_stats}} | {{#lvar:e_wis_save_prof}} | }} | ||
| e cha save prof = {{#lvar:e_cha_save_prof}} | | e cha save prof = {{#if: {{#lvar: has_explorer_stats}} | {{#lvar:e_cha_save_prof}} | }} | ||
| e str = {{#lvar:e_str}} | | e str = {{#if: {{#lvar: has_explorer_stats}} | {{#lvar:e_str}} | }} | ||
| e dex = {{#lvar:e_dex}} | | e dex = {{#if: {{#lvar: has_explorer_stats}} | {{#lvar:e_dex}} | }} | ||
| e con = {{#lvar:e_con}} | | e con = {{#if: {{#lvar: has_explorer_stats}} | {{#lvar:e_con}} | }} | ||
| e int = {{#lvar:e_int}} | | e int = {{#if: {{#lvar: has_explorer_stats}} | {{#lvar:e_int}} | }} | ||
| e wis = {{#lvar:e_wis}} | | e wis = {{#if: {{#lvar: has_explorer_stats}} | {{#lvar:e_wis}} | }} | ||
| e cha = {{#lvar:e_cha}} | | e cha = {{#if: {{#lvar: has_explorer_stats}} | {{#lvar:e_cha}} | }} | ||
| e str mod = {{#lvar:e_str_mod}} | | e str mod = {{#if: {{#lvar: has_explorer_stats}} | {{#lvar:e_str_mod}} | }} | ||
| e dex mod = {{#lvar:e_dex_mod}} | | e dex mod = {{#if: {{#lvar: has_explorer_stats}} | {{#lvar:e_dex_mod}} | }} | ||
| e con mod = {{#lvar:e_con_mod}} | | e con mod = {{#if: {{#lvar: has_explorer_stats}} | {{#lvar:e_con_mod}} | }} | ||
| e int mod = {{#lvar:e_int_mod}} | | e int mod = {{#if: {{#lvar: has_explorer_stats}} | {{#lvar:e_int_mod}} | }} | ||
| e wis mod = {{#lvar:e_wis_mod}} | | e wis mod = {{#if: {{#lvar: has_explorer_stats}} | {{#lvar:e_wis_mod}} | }} | ||
| e cha mod = {{#lvar:e_cha_mod}} | | e cha mod = {{#if: {{#lvar: has_explorer_stats}} | {{#lvar:e_cha_mod}} | }} | ||
| e str save = {{#lvar:e_str_save}} | | e str save = {{#if: {{#lvar: has_explorer_stats}} | {{#lvar:e_str_save}} | }} | ||
| e dex save = {{#lvar:e_dex_save}} | | e dex save = {{#if: {{#lvar: has_explorer_stats}} | {{#lvar:e_dex_save}} | }} | ||
| e con save = {{#lvar:e_con_save}} | | e con save = {{#if: {{#lvar: has_explorer_stats}} | {{#lvar:e_con_save}} | }} | ||
| e int save = {{#lvar:e_int_save}} | | e int save = {{#if: {{#lvar: has_explorer_stats}} | {{#lvar:e_int_save}} | }} | ||
| e wis save = {{#lvar:e_wis_save}} | | e wis save = {{#if: {{#lvar: has_explorer_stats}} | {{#lvar:e_wis_save}} | }} | ||
| e cha save = {{#lvar:e_cha_save}} | | e cha save = {{#if: {{#lvar: has_explorer_stats}} | {{#lvar:e_cha_save}} | }} | ||
| e resistances = {{#lvar:e_resistances}} | | e resistances = {{#if: {{#lvar: has_explorer_stats}} | {{#lvar:e_resistances}} | }} | ||
| e actions = {{#lvar:e_actions}} | | e actions = {{#if: {{#lvar: has_explorer_stats}} | {{#lvar:e_actions}} | }} | ||
| e conditions = {{#lvar:e_conditions}} | | e conditions = {{#if: {{#lvar: has_explorer_stats}} | {{#lvar:e_conditions}} | }} | ||
| e passives = {{#lvar:e_passives}} | | e passives = {{#if: {{#lvar: has_explorer_stats}} | {{#lvar:e_passives}} | }} | ||
| t level = {{{t level | {{{level|}}} }}} | | t level = {{{t level | {{{level|}}} }}} |
Revision as of 03:22, 14 July 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:
- 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:
- 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 formatPassive 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 | va = Amelia Tyler | role = Mascot | faction = Gondor | family = Power Puff Girls | hometown = The Shire | occupation = Butcher and Baker | size = Smol | type = Mammal | race = Cat | archetype = Soldier Cat | class = Felinid | subclass = Tiger | background = Outlander | level = 10 | hp = 10 | ac = 10 | extra init = +3 | prof bonus = +4 | movement m = 9 | weight kg = 600 | 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 | 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 }}