18,288
editsMore actions
Template:Infobox statistics/doc (view source)
Revision as of 21:57, 20 December 2024
, Yesterday at 21:57no edit summary
HarveyPekar (talk | contribs) m (reposition) |
No edit summary |
||
(17 intermediate revisions by 6 users not shown) | |||
Line 1: | Line 1: | ||
{{license|ccbysa}} | {{license|ccbysa}} | ||
{{warning|This template is outdated. Use [[Template:Infobox creature]] instead.}} | |||
{{Infobox statistics | {{Infobox statistics | ||
| name = Icarus | | name = Icarus | ||
Line 6: | Line 9: | ||
| race = Eagle | | race = Eagle | ||
| image = Giant Eagle.png | | image = Giant Eagle.png | ||
| imagesize = | | imagesize = 0.7 | ||
| armour_class = 10 | | armour_class = 10 | ||
| hit_points = 10 | | hit_points = 10 | ||
Line 20: | Line 23: | ||
| wis = 10 | | wis = 10 | ||
| cha = 10 | | cha = 10 | ||
| str_save_proficiency = | | str_save_proficiency = | ||
| dex_save_proficiency = yes | | dex_save_proficiency = yes | ||
Line 47: | Line 49: | ||
| feature2_mode = Tactician | | feature2_mode = Tactician | ||
| action1_name = Main Hand Attack | | action1_name = Main Hand Attack | ||
| action1 = {{ | | action1 = ''Melee Attack'': to hit, reach 1.5 m (5 ft), 1 target. ''Hit'': 1d8 + Piercing damage. | ||
| | }} | ||
| | {{Infobox character | ||
| | |||
| | | name = Steel Watcher | ||
| | | faction = [[Gortash]] | ||
| | | image = Steel Watcher.png | ||
| | | race = Steel Watcher | ||
| | | voice = Pieter Lawman | ||
| level = 11 | |||
| modules = | |||
{{Infobox statistics | |||
| child = yes | |||
| size = Large | |||
| type = [[Construct]] | |||
| hit_points = 206 | |||
| hit_points_tactician = 267 | |||
| armour_class = 16 | |||
| movement_speed_meters = 18 | |||
| movement_speed_feet = 60 | |||
| weight_kg = 750 | |||
| weight_lb = 1500 | |||
| hiddenlevel = 11 | |||
| str = 18 | |||
| dex = 22 | |||
| con = 18 | |||
| int = 6 | |||
| wis = 10 | |||
| cha = 10 | |||
| con_save_proficiency = yes | |||
| dex_save_proficiency = yes | |||
| resistant1 = Bludgeoning | |||
| resistant2 = Piercing | |||
| resistant3 = Slashing | |||
| vulnerable1 = Lightning | |||
| immune1 = Poison | |||
| immune2 = Psychic | |||
| feature1_name = Agile Chassis | |||
| feature1_description = Advantage on dexterity saving throws and an additional 9m/30ft movement speed. | |||
| feature2_name = Darkvision | |||
| feature2_description = Can attack creatures in the dark without disadvantage, up to a range of 12 m (40 ft). | |||
| feature3_name = Failsafe Protocol | |||
| feature3_description = After losing a significant amount of Hit Points, this creature will begin a Self-Detonation protocol to eliminate all nearby threats. | |||
| feature4_name = Immutable Form | |||
| feature4_description = Creature's form cannot be altered, +5 to saving throws against spells that remove it from this plane. | |||
| feature5_name = Opportunity Attack | |||
| feature5_description = Automatically attack an enemy moving out of your reach. | |||
| feature6_name = Magic Resistance | |||
| feature6_description = Advantage on saving throws against spells. | |||
| feature7_name = Perfect Sentry | |||
| feature7_description = Cannot be surprised. | |||
}} | |||
}} | |||
Adds an infobox with statistics, either for use standalone in a dedicated gameplay section or for combination with {{tlink|infobox character}}. | |||
<pre> | |||
{{Infobox statistics | |||
| subbox = | |||
| child = | |||
| bodyclass= | |||
| class1 = | |||
| name = | |||
| size = | |||
| type = | |||
| race = | |||
| image = | |||
| imagesize = | |||
| armour_class = | |||
| hit_points = | |||
| hit_points_tactician = | |||
| movement_speed_meters = | |||
| movement_speed_feet = | |||
| weight_kg = | |||
| weight_lb = | |||
| str = | |||
| dex = | |||
| con = | |||
| int = | |||
| wis = | |||
| cha = | |||
| proficiency_bonus = | |||
| str_save_proficiency = | |||
| dex_save_proficiency = | |||
| con_save_proficiency = | |||
| int_save_proficiency = | |||
| wis_save_proficiency = | |||
| cha_save_proficiency = | |||
| immune1 = | |||
| immune2 = | |||
| resistant1 = | |||
| resistant2 = | |||
| vulnerable1 = | |||
| vulnerable2 = | |||
| condition1_name = | |||
| condition1_description = | |||
| condition1_mode = | |||
| condition2_name = | |||
| condition2_description = | |||
| condition2_mode = | |||
| feature1_name = | |||
| feature1_description = | |||
| feature2_name = | |||
| feature2_description = | |||
| feature2_mode = | |||
| action1_name = | |||
| action1 = | |||
| feature1_mode = | |||
| action2_name = | |||
| action2 = | |||
| feature2_mode = | |||
| hiddenlevel = | |||
}} | }} | ||
</pre> | |||
To add it to infobox character, specify that it is either a subbox or a child box (preferred), and add it under the module parameter: | |||
<pre> | |||
{{Infobox character | |||
| name = | |||
| image = | |||
| background = | |||
| class = | |||
| module = {{Infobox statistics | |||
| child = yes | |||
| armour_class = | |||
| hit_points = | |||
| str = | |||
| dex = | |||
| con = | |||
| int = | |||
| wis = | |||
| cha = | |||
}}}} | |||
</pre> | |||
== Template data== | == Template data== | ||
Line 64: | Line 198: | ||
"str": { | "str": { | ||
"label": "Strength ability score", | "label": "Strength ability score", | ||
"type": "number", | "type": "number", | ||
"suggestedvalues": [ | "suggestedvalues": [ | ||
"10", | "10" | ||
], | |||
"example": "10", | |||
"suggested": true | |||
}, | }, | ||
"dex": { | "dex": { | ||
"label": "Dexterity ability score ", | "label": "Dexterity ability score ", | ||
"type": "number", | "type": "number", | ||
"suggestedvalues": [ | "suggestedvalues": [ | ||
"10" | "10" | ||
] | ], | ||
"example": "10", | |||
"suggested": true | |||
}, | }, | ||
"con": { | "con": { | ||
"label": "Constitution ability score", | "label": "Constitution ability score", | ||
"type": "number", | "type": "number", | ||
" | "example": "10", | ||
"suggested": true | |||
}, | }, | ||
"int": { | "int": { | ||
"label": "Intelligence ability score", | "label": "Intelligence ability score", | ||
" | "type": "number", | ||
" | "suggested": true | ||
}, | }, | ||
"wis": { | "wis": { | ||
"label": "Wisdom ability score", | "label": "Wisdom ability score", | ||
" | "type": "number", | ||
" | "example": "10", | ||
"suggested": true | |||
}, | }, | ||
"cha": { | "cha": { | ||
"label": "Charisma ability score", | "label": "Charisma ability score", | ||
" | "type": "number", | ||
" | "example": "10", | ||
"suggested": true | |||
}, | }, | ||
"str_save_proficiency": { | "str_save_proficiency": { | ||
Line 128: | Line 263: | ||
"type": "number", | "type": "number", | ||
"suggestedvalues": [ | "suggestedvalues": [ | ||
"8" | "8" | ||
], | ], | ||
"label": "Level", | "label": "Level", | ||
"description": "Character level, expressed as a number." | "description": "Character level, expressed as a number.", | ||
"suggested": true | |||
}, | }, | ||
"name": { | "name": { | ||
Line 142: | Line 276: | ||
"size": { | "size": { | ||
"type": "string", | "type": "string", | ||
"label": "Size" | "label": "Size", | ||
"description": "The creature's size.", | |||
"example": "Medium", | |||
"suggested": true | |||
}, | }, | ||
"type": { | "type": { | ||
"label": "Creature type", | "label": "Creature type", | ||
"suggested": true | "suggested": true, | ||
"example": "Humanoid", | |||
"type": "string" | |||
}, | |||
"class": { | |||
"description": "The character's class.", | |||
"example": "[[Knowledge Domain]] [[Cleric]]", | |||
"type": "content" | |||
}, | |||
"race": { | |||
"example": "Half-elf", | |||
"type": "content" | |||
}, | }, | ||
"image": { | "image": { | ||
"description": "A file with filename.", | "description": "A file with filename.", | ||
"example": "Eagle.png", | "example": "Eagle.png", | ||
"type": "wiki-file-name" | "type": "wiki-file-name", | ||
"suggested": true | |||
}, | }, | ||
"imagesize": { | "imagesize": { | ||
"description": "Image size. Recommended values at 100px to 200px" | "description": "Image size. Recommended values at 100px to 200px" | ||
}, | }, | ||
" | "armour_class": { | ||
"suggested": true, | "suggested": true, | ||
"type": "number", | "type": "number", | ||
" | "label": "Armour Class", | ||
"example": "10" | |||
}, | |||
"label": " | "hit_points_tactician": { | ||
"label": "Hit points (Tactician mode)", | |||
"example": "70", | |||
"type": "number" | |||
}, | |||
"hit_points_honour": { | |||
"label": "Hit points (Honour mode)", | |||
"example": "85", | |||
"type": "number" | |||
}, | }, | ||
"hit_points": { | "hit_points": { | ||
"suggested": true, | "suggested": true, | ||
Line 173: | Line 326: | ||
"label": "Hit points" | "label": "Hit points" | ||
}, | }, | ||
"movement_speed_meters": {}, | "movement_speed_meters": { | ||
"movement_speed_feet": {}, | "label": "Movement speed (meters)", | ||
"weight_kg": {}, | "description": "5", | ||
"weight_lb": {}, | "type": "number", | ||
"initiative": {}, | "suggested": true | ||
"immune1": {}, | }, | ||
"movement_speed_feet": { | |||
"label": "Movement speed (feet)", | |||
"example": "30", | |||
"type": "number", | |||
"suggested": true | |||
}, | |||
"weight_kg": { | |||
"label": "Weight (kg)", | |||
"example": "50", | |||
"suggested": true | |||
}, | |||
"weight_lb": { | |||
"label": "Weight (lb)", | |||
"example": "100" | |||
}, | |||
"initiative": { | |||
"description": "Not necessary to specify. Can be used to overwrite the autocalculated initiative with a custom value.", | |||
"type": "number" | |||
}, | |||
"immune1": { | |||
"description": "A damage type that the creature is immune to.", | |||
"example": "Fire", | |||
"type": "string" | |||
}, | |||
"immune2": {}, | "immune2": {}, | ||
"immune3": {}, | "immune3": {}, | ||
Line 188: | Line 365: | ||
"immune9": {}, | "immune9": {}, | ||
"immune10": {}, | "immune10": {}, | ||
"resistant1": {}, | "resistant1": { | ||
"description": "A damage type that the creature is resistant to.", | |||
"example": "Fire", | |||
"type": "string" | |||
}, | |||
"resistant2": {}, | "resistant2": {}, | ||
"resistant3": {}, | "resistant3": {}, | ||
Line 199: | Line 380: | ||
"resistant10": {}, | "resistant10": {}, | ||
"resistant19": {}, | "resistant19": {}, | ||
"vulnerable1": {}, | "vulnerable1": { | ||
"description": "A damage type that the creature is vulnerable to.", | |||
"example": "Fire", | |||
"type": "string" | |||
}, | |||
"vulnerable2": {}, | "vulnerable2": {}, | ||
"vulnerable3": {}, | "vulnerable3": {}, | ||
Line 210: | Line 395: | ||
"vulnerable19": {}, | "vulnerable19": {}, | ||
"vulnerable10": {}, | "vulnerable10": {}, | ||
"condition1_mode": {}, | "condition1_mode": { | ||
"condition1_name": {}, | "description": "The mode this condition is applied. Can be Honour or Tactician.", | ||
"condition1_description": {}, | "example": "Honour" | ||
}, | |||
"condition1_name": { | |||
"description": "The name of the condition.", | |||
"type": "string" | |||
}, | |||
"condition1_description": { | |||
"description": "Enter a short and concice description of the condition.", | |||
"example": "Takes 1d4 damage per turn for 2 turns." | |||
}, | |||
"condition2_mode": {}, | "condition2_mode": {}, | ||
"condition2_name": {}, | "condition2_name": {}, | ||
Line 225: | Line 419: | ||
"condition5_name": {}, | "condition5_name": {}, | ||
"condition5_description": {}, | "condition5_description": {}, | ||
"feature1_name": {}, | |||
"feature1_mode": {}, | "feature1_mode": {}, | ||
" | "feature1_item": {}, | ||
"feature1_description": {}, | "feature1_description": {}, | ||
"feature2_name": {}, | |||
"feature2_mode": {}, | "feature2_mode": {}, | ||
" | "feature2_item": {}, | ||
"feature2_description": {}, | "feature2_description": {}, | ||
"feature3_name": {}, | |||
"feature3_mode": {}, | "feature3_mode": {}, | ||
" | "feature3_item": {}, | ||
"feature3_description": {}, | |||
"feature4_name": {}, | |||
"feature4_mode": {}, | |||
"feature4_item": {}, | |||
"feature4_description": {}, | "feature4_description": {}, | ||
" | "feature5_name": {}, | ||
"feature5_mode": {}, | "feature5_mode": {}, | ||
" | "feature5_item": {}, | ||
"feature5_description": {}, | "feature5_description": {}, | ||
"subbox": { | "subbox": { | ||
Line 244: | Line 443: | ||
"type": "boolean" | "type": "boolean" | ||
}, | }, | ||
"child": {}, | "child": { | ||
"description": "Yes if intended to be used as within another infobox template. Empty otherwise. Preffered over subbox.", | |||
"example": "{{Infobox character\n| name =\n| image = \n| background =\n| class = \n| module = {{Infobox statistics\n| child = yes\n| armour_class = \n| hit_points = \n| str = \n| dex =\n| con = \n| int = \n| wis = \n| cha =\n}}", | |||
"type": "wiki-template-name", | |||
"suggested": true | |||
}, | |||
"bodystyle": { | "bodystyle": { | ||
"description": "Add a custom CSS style for entire infobox." | "description": "Add a custom CSS style for entire infobox.", | ||
"type": "string" | |||
}, | }, | ||
"datastyle": { | "datastyle": { | ||
"description": "Custom css style for data only." | "description": "Custom css style for data only.", | ||
"type": "string" | |||
}, | }, | ||
"condition6_name": {}, | "condition6_name": {}, | ||
Line 268: | Line 474: | ||
"feature6_name": {}, | "feature6_name": {}, | ||
"feature6_mode": {}, | "feature6_mode": {}, | ||
"feature6_item": {}, | |||
"feature6_description": {}, | "feature6_description": {}, | ||
"feature7_name": {}, | "feature7_name": {}, | ||
"feature7_mode": {}, | "feature7_mode": {}, | ||
"feature7_item": {}, | |||
"feature7_description": {}, | "feature7_description": {}, | ||
"feature8_name": {}, | "feature8_name": {}, | ||
"feature8_mode": {}, | "feature8_mode": {}, | ||
"feature8_item": {}, | |||
"feature8_description": {}, | "feature8_description": {}, | ||
"feature9_name": {}, | "feature9_name": {}, | ||
"feature9_mode": {}, | "feature9_mode": {}, | ||
"feature9_item": {}, | |||
"feature9_description": {}, | "feature9_description": {}, | ||
"feature10_name": {}, | "feature10_name": {}, | ||
"feature10_mode": {}, | "feature10_mode": {}, | ||
"feature10_item": {}, | |||
"feature10_description": {}, | "feature10_description": {}, | ||
"action1_mode": {}, | |||
"action1_name": { | "action1_name": { | ||
"label": "Action name", | "label": "Action name", | ||
Line 315: | Line 526: | ||
"action10": {}, | "action10": {}, | ||
"armour_class": {}, | "armour_class": {}, | ||
" | "modules": {}, | ||
" | "hiddenlevel": { | ||
} | "description": "Can be added in place of level if the level should only be added for calculations, and not be displayed in the infobox itself. Useful when the infobox is added as a module.", | ||
"type": "number" | |||
}, | |||
"bodyclass": { | |||
"description": "Custom CSS class for infobox.", | |||
"type": "string" | |||
}, | |||
"mode": {}, | |||
"feature1_label": {}, | |||
"feature2_label": {}, | |||
"feature3_label": {}, | |||
"feature4_label": {}, | |||
"feature5_label": {}, | |||
"feature6_label": {}, | |||
"feature7_label": {}, | |||
"feature8_label": {}, | |||
"feature9_label": {}, | |||
"feature10_label": {}, | |||
"action1_effect": {}, | |||
"action1_class": {}, | |||
"action2_effect": {}, | |||
"action2_class": {}, | |||
"action3_effect": {}, | |||
"action3_class": {}, | |||
"action4_effect": {}, | |||
"action4_class": {}, | |||
"action5_effect": {}, | |||
"action5_class": {}, | |||
"action6_class": {}, | |||
"action7_class": {}, | |||
"action8_class": {}, | |||
"action9_class": {}, | |||
"action10_class": {} | |||
}, | |||
"format": "block", | |||
"paramOrder": [ | |||
"child", | |||
"subbox", | |||
"bodyclass", | |||
"bodystyle", | |||
"datastyle", | |||
"image", | |||
"str", | |||
"dex", | |||
"con", | |||
"int", | |||
"wis", | |||
"cha", | |||
"str_save_proficiency", | |||
"proficiency_bonus", | |||
"dex_save_proficiency", | |||
"con_save_proficiency", | |||
"int_save_proficiency", | |||
"wis_save_proficiency", | |||
"cha_save_proficiency", | |||
"level", | |||
"name", | |||
"size", | |||
"type", | |||
"class", | |||
"race", | |||
"imagesize", | |||
"armour_class", | |||
"hit_points_tactician", | |||
"hit_points_honour", | |||
"hit_points", | |||
"movement_speed_meters", | |||
"movement_speed_feet", | |||
"weight_kg", | |||
"weight_lb", | |||
"initiative", | |||
"immune1", | |||
"immune2", | |||
"immune3", | |||
"immune4", | |||
"immune5", | |||
"immune6", | |||
"immune7", | |||
"immune8", | |||
"immune9", | |||
"immune10", | |||
"resistant1", | |||
"resistant2", | |||
"resistant3", | |||
"resistant4", | |||
"resistant5", | |||
"resistant6", | |||
"resistant7", | |||
"resistant8", | |||
"resistant9", | |||
"resistant10", | |||
"resistant19", | |||
"vulnerable1", | |||
"vulnerable2", | |||
"vulnerable3", | |||
"vulnerable4", | |||
"vulnerable5", | |||
"vulnerable6", | |||
"vulnerable7", | |||
"vulnerable8", | |||
"vulnerable9", | |||
"vulnerable19", | |||
"vulnerable10", | |||
"condition1_mode", | |||
"condition1_name", | |||
"condition1_description", | |||
"condition2_mode", | |||
"condition2_name", | |||
"condition2_description", | |||
"condition3_mode", | |||
"condition3_name", | |||
"condition3_description", | |||
"condition4_mode", | |||
"condition4_name", | |||
"condition4_description", | |||
"condition5_mode", | |||
"condition5_name", | |||
"condition5_description", | |||
"feature1_name", | |||
"feature1_mode", | |||
"feature1_item", | |||
"feature1_description", | |||
"feature2_name", | |||
"feature2_mode", | |||
"feature2_item", | |||
"feature2_description", | |||
"feature3_name", | |||
"feature3_mode", | |||
"feature3_item", | |||
"feature3_description", | |||
"feature4_name", | |||
"feature4_mode", | |||
"feature4_item", | |||
"feature4_description", | |||
"feature5_name", | |||
"feature5_mode", | |||
"feature5_item", | |||
"feature5_description", | |||
"condition6_name", | |||
"condition6_mode", | |||
"condition6_description", | |||
"condition7_name", | |||
"condition7_mode", | |||
"condition7_description", | |||
"condition8_name", | |||
"condition8_mode", | |||
"condition8_description", | |||
"condition9_name", | |||
"condition9_mode", | |||
"condition9_description", | |||
"condition10_name", | |||
"condition10_mode", | |||
"condition10_description", | |||
"feature6_name", | |||
"feature6_mode", | |||
"feature6_item", | |||
"feature6_description", | |||
"feature7_name", | |||
"feature7_mode", | |||
"feature7_item", | |||
"feature7_description", | |||
"feature8_name", | |||
"feature8_mode", | |||
"feature8_item", | |||
"feature8_description", | |||
"feature9_name", | |||
"feature9_mode", | |||
"feature9_item", | |||
"feature9_description", | |||
"feature10_name", | |||
"feature10_mode", | |||
"feature10_item", | |||
"feature10_description", | |||
"action1_mode", | |||
"action1_name", | |||
"action1", | |||
"action2_name", | |||
"action2_mode", | |||
"action2", | |||
"action3_name", | |||
"action3_mode", | |||
"action3", | |||
"action4_name", | |||
"action4_mode", | |||
"action4", | |||
"action5_name", | |||
"action5_mode", | |||
"action5", | |||
"action6_name", | |||
"action6_mode", | |||
"action6", | |||
"action7_name", | |||
"action7_mode", | |||
"action7", | |||
"action8_name", | |||
"action8_mode", | |||
"action8", | |||
"action9_name", | |||
"action9_mode", | |||
"action9", | |||
"action10_name", | |||
"action10_mode", | |||
"action10", | |||
"modules", | |||
"hiddenlevel", | |||
"mode", | |||
"feature1_label", | |||
"feature2_label", | |||
"feature3_label", | |||
"feature4_label", | |||
"feature5_label", | |||
"feature6_label", | |||
"feature7_label", | |||
"feature8_label", | |||
"feature9_label", | |||
"feature10_label", | |||
"action1_effect", | |||
"action1_class", | |||
"action2_effect", | |||
"action2_class", | |||
"action3_effect", | |||
"action3_class", | |||
"action4_effect", | |||
"action4_class", | |||
"action5_effect", | |||
"action5_class", | |||
"action6_class", | |||
"action7_class", | |||
"action8_class", | |||
"action9_class", | |||
"action10_class" | |||
] | |||
} | } | ||
</templatedata> | </templatedata> | ||
[[Category:Templates]] | [[Category:Templates]] | ||
[[Category:Outdated Templates]] | |||
[[Category:Deprecated templates]] | |||
[[Category:Infobox templates]] | [[Category:Infobox templates]] |