Template:Infobox creature: Difference between revisions
Jump to navigation
Jump to search
mNo edit summary |
(Explain how the passives list accepts special syntax to specify the item that grants a passive.) |
||
(One intermediate revision by the same user not shown) | |||
Line 98: | Line 98: | ||
{{#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 passives --> | <!-- Explorer resistances, conditions, passives --> | ||
{{#lvardef: e_resistances | {{{e resistances | {{{resistances|}}} }}} }} | |||
{{#lvardef: e_conditions | {{{e conditions | {{{conditions|}}} }}} }} | |||
{{#lvardef: e_passives | {{{e passives | {{{passives|}}} }}} }} | {{#lvardef: e_passives | {{{e passives | {{{passives|}}} }}} }} | ||
Line 161: | Line 163: | ||
{{#lvardef: t_cha_save | {{#ifexpr: {{#lvar:t_cha_save_val}} > 0 | +}}{{#lvar:t_cha_save_val}} }} | {{#lvardef: t_cha_save | {{#ifexpr: {{#lvar:t_cha_save_val}} > 0 | +}}{{#lvar:t_cha_save_val}} }} | ||
<!-- Tactician passives --> | <!-- Tactician resistances, conditions, passives --> | ||
{{#lvardef: t_resistances | {{{t resistances | {{{resistances|}}} }}} }} | |||
{{#lvardef: t_conditions | {{{t conditions | {{{conditions|}}} }}} }} | |||
{{#lvardef: t_passives | {{{t passives | {{{passives|}}} }}} }} | {{#lvardef: t_passives | {{{t passives | {{{passives|}}} }}} }} | ||
Line 224: | Line 228: | ||
{{#lvardef: h_cha_save | {{#ifexpr: {{#lvar:h_cha_save_val}} > 0 | +}}{{#lvar:h_cha_save_val}} }} | {{#lvardef: h_cha_save | {{#ifexpr: {{#lvar:h_cha_save_val}} > 0 | +}}{{#lvar:h_cha_save_val}} }} | ||
<!-- Honour passives --> | <!-- Honour resistances, conditions, passives --> | ||
{{#lvardef: h_resistances | {{{h resistances | {{#lvar:t_resistances}} }}} }} | |||
{{#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 282: | Line 288: | ||
| resistances = {{{resistances|}}} | | resistances = {{{resistances|}}} | ||
| conditions = {{{conditions|}}} | |||
| passives = {{{passives|}}} | | passives = {{{passives|}}} | ||
Line 322: | Line 329: | ||
| e cha save = {{#lvar:e_cha_save}} | | e cha save = {{#lvar:e_cha_save}} | ||
| e resistances = {{ | | e resistances = {{#lvar:e_resistances}} | ||
| e conditions = {{#lvar:e_conditions}} | |||
| e passives = {{#lvar:e_passives}} | | e passives = {{#lvar:e_passives}} | ||
Line 363: | Line 371: | ||
| t cha save = {{#lvar:t_cha_save}} | | t cha save = {{#lvar:t_cha_save}} | ||
| t resistances = {{ | | t resistances = {{#lvar:t_resistances}} | ||
| t conditions = {{#lvar:t_conditions}} | |||
| t passives = {{#lvar:t_passives}} | | t passives = {{#lvar:t_passives}} | ||
Line 404: | Line 413: | ||
| h cha save = {{#lvar:h_cha_save}} | | h cha save = {{#lvar:h_cha_save}} | ||
| h resistances = {{ | | h resistances = {{#lvar:h_resistances}} | ||
| h conditions = {{#lvar:h_conditions}} | |||
| h passives = {{#lvar:h_passives}} | | h passives = {{#lvar:h_passives}} | ||
}}</includeonly><noinclude> | }}</includeonly><noinclude>{{Infobox creature | ||
{{Infobox creature | |||
| name = Test | | name = Test | ||
| title = Title | | title = Title | ||
Line 447: | Line 456: | ||
| resistances = fire resistant, cold resistant, lightning vulnerable | | resistances = fire resistant, cold resistant, lightning vulnerable | ||
| conditions = Aura of Protection, Aura of Hate | |||
| passives = Agile Chassis, Cull the Weak (Drider) | | passives = Agile Chassis, Cull the Weak (Drider) | ||
Line 463: | Line 473: | ||
| e resistances = cold resistant | | e resistances = cold resistant | ||
| e conditions = Aura of Protection | |||
| e passives = Agile Chassis | | e passives = Agile Chassis | ||
Line 481: | Line 492: | ||
| 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 passives = Agile Chassis, Cull the Weak (Drider), Adamantine Shield | | 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 level = 14 | ||
Line 497: | Line 509: | ||
| 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 passives = Agile Chassis, Cull the Weak (Drider), Adamantine Shield | | 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 | |||
}} | }} | ||
Line 503: | Line 516: | ||
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. | 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. | |||
Example use: | Example use: | ||
Line 546: | Line 561: | ||
| resistances = fire resistant, cold resistant, lightning vulnerable | | resistances = fire resistant, cold resistant, lightning vulnerable | ||
| conditions = Aura of Protection, Aura of Hate | |||
| passives = Agile Chassis, Cull the Weak (Drider) | | passives = Agile Chassis, Cull the Weak (Drider) | ||
Line 562: | Line 578: | ||
| e resistances = cold resistant | | e resistances = cold resistant | ||
| e conditions = Aura of Protection | |||
| e passives = Agile Chassis | | e passives = Agile Chassis | ||
Line 580: | Line 597: | ||
| 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 passives = Agile Chassis, Cull the Weak (Drider), Adamantine Shield | | 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 level = 14 | ||
Line 596: | Line 614: | ||
| 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 passives = Agile Chassis, Cull the Weak (Drider), Adamantine Shield | | 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 | |||
}} | }} | ||
</pre> | </pre> | ||
</noinclude> | </noinclude> |
Revision as of 21:03, 22 April 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.
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.
Example use:
{{Infobox creature | name = Test | title = Title | image = <gallery> Steel Watcher Ranged.png|Ranged Steel Watcher Model.png|Model </gallery> | 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 }}