Template:Infobox creature: Difference between revisions
Jump to navigation
Jump to search
This template defines the table "creatures". View table.
(Separate XP fields for difficulty even though I don't think this will ever change with difficulty) |
mNo edit summary |
||
(23 intermediate revisions by 3 users not shown) | |||
Line 361: | Line 361: | ||
}} | }} | ||
{{#if: {{{image|}}}||{{Main namespace only|[[Category:Infoboxes with no images]]}}}} | {{#if: {{{image|}}}||{{Main namespace only|[[Category:Infoboxes with no images]]}}}} | ||
<!-- Set variables on that page itself that can be used be Feature box templates --> | |||
{{#vardefine: character-str | {{#lvar: t_str}} }} | |||
{{#vardefine: character-dex | {{#lvar: t_dex}} }} | |||
{{#vardefine: character-con | {{#lvar: t_con}} }} | |||
{{#vardefine: character-wis | {{#lvar: t_wis}} }} | |||
{{#vardefine: character-int | {{#lvar: t_int}} }} | |||
{{#vardefine: character-cha | {{#lvar: t_cha}} }} | |||
{{#vardefine: character-casting-ability | {{{casting ability|}}} }} | |||
{{#vardefine: character-level | {{{level|}}} }} | |||
}} | }} | ||
Line 578: | Line 588: | ||
| h passives = {{#if: {{#lvar: has_honour_stats}} | {{#lvar:h_passives}} | }} | | h passives = {{#if: {{#lvar: has_honour_stats}} | {{#lvar:h_passives}} | }} | ||
}}</includeonly><noinclude>{{documentation}}</noinclude> | | uid = {{{uid|{{{uid1|}}}}}} | ||
| uuid = {{{uuid|{{{uuid1|}}}}}} | |||
| stats = {{{stats|{{{stats1|}}}}}} | |||
| uid2 = {{{uid2|}}} | |||
| uuid2 = {{{uuid2|}}} | |||
| stats2 = {{{stats2|}}} | |||
| uid3 = {{{uid3|}}} | |||
| uuid3 = {{{uuid3|}}} | |||
| stats3 = {{{stats3|}}} | |||
| uid4 = {{{uid4|}}} | |||
| uuid4 = {{{uuid4|}}} | |||
| stats4 = {{{stats4|}}} | |||
| uid5 = {{{uid5|}}} | |||
| uuid5 = {{{uuid5|}}} | |||
| stats5 = {{{stats5|}}} | |||
| uid6 = {{{uid6|}}} | |||
| uuid6 = {{{uuid6|}}} | |||
| stats6 = {{{stats6|}}} | |||
| uid7 = {{{uid7|}}} | |||
| uuid7 = {{{uuid7|}}} | |||
| stats7 = {{{stats7|}}} | |||
}}{{#if: {{{nostore|}}} | | {{Main namespace only|{{#cargo_store: | |||
_table = creatures | |||
| name = {{{name|}}} | |||
| override_page = {{{override page|{{#titleparts: {{#replace:{{PAGENAME}}|'|'}} | 1 }}}}} | |||
| image = {{{portrait|Portrait {{#titleparts: {{#replace:{{PAGENAME}}|'|'}} | 1 }}.png}}} | |||
| level = {{{level|}}} | |||
| hp = {{{hp|}}} | |||
| ac = {{{ac|}}} | |||
| xp = {{{xp|}}} | |||
| movement_m = {{{movement m|}}} | |||
| weight_kg = {{{weight kg|}}} | |||
| strength = {{{str|10}}} | |||
| dexterity = {{{dex|10}}} | |||
| constitution = {{{con|10}}} | |||
| intelligence = {{{int|10}}} | |||
| wisdom = {{{wis|10}}} | |||
| charisma = {{{cha|10}}} | |||
| race = {{#invoke:Plain text|main|{{{race|}}}}} | |||
| subrace = {{#invoke:Plain text|main|{{{subrace|}}}}} | |||
| class = {{#invoke:Plain text|main|{{{class|}}}}} | |||
| subclass = {{#invoke:Plain text|main|{{{subclass|}}}}} | |||
| identity = {{#invoke:Plain text|main|{{{identity|}}}}} | |||
| role = {{#invoke:Plain text|main|{{{role|}}}}} | |||
| occupation = {{#invoke:Plain text|main|{{{occupation|}}}}} | |||
| size = {{#invoke:Plain text|main|{{{size|}}}}} | |||
| type = {{#invoke:Plain text|main|{{{type|}}}}} | |||
| resistances = {{{resistances|}}} | |||
| conditions = {{{conditions|}}} | |||
| passives = {{Strip passive list items|{{{passives|}}}}} | |||
}} | |||
}} }}</includeonly><noinclude>{{documentation}}{{#cargo_declare: | |||
_table = creatures | |||
| name = String | |||
| override_page = Page | |||
| image = File | |||
| level = Integer | |||
| hp = Integer | |||
| ac = Integer | |||
| xp = Integer | |||
| movement_m = Integer | |||
| weight_kg = Integer | |||
| strength = Integer | |||
| dexterity = Integer | |||
| constitution = Integer | |||
| intelligence = Integer | |||
| wisdom = Integer | |||
| charisma = Integer | |||
| race = String | |||
| subrace = String | |||
| class = String | |||
| subclass = String | |||
| size = String | |||
| type = String | |||
| identity = String | |||
| role = String | |||
| occupation = String | |||
| resistances = List (,) of String | |||
| conditions = List (,) of String | |||
| passives = List (,) of String | |||
}} | |||
[[Category:Templates]] | |||
[[Category:Infobox templates]] | |||
[[Category:Cargo templates]] | |||
</noinclude> |
Latest revision as of 19:43, 8 February 2025
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. - Using this template automatically stores into the
creatures
Cargo table, unlessnostore=y
is specified.
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 }}