Difference between revisions of "Template:CreatureBox"
From Legends of Hyrule
Jump to navigationJump to searchm (hopefully fixed armorbonus calc) |
(removed armorbonus calc) |
||
Line 9: | Line 9: | ||
|{{!}} colspan=6 {{!}} <span style="font-size:250%; font-family:'mreaves';">'''{{PAGENAME}}'''</span> | |{{!}} colspan=6 {{!}} <span style="font-size:250%; font-family:'mreaves';">'''{{PAGENAME}}'''</span> | ||
{{!}}-}} | {{!}}-}} | ||
− | | colspan=6 {{!}} <span style="font-size:16px; font-family:'scalysans';">''[[:Category:{{{size|Medium}}}-sized creatures|<span style="color:#411e10">{{{size|Medium}}}</span>]] {{#ifeq:{{{type|}}}|fairy|[[:Category:Fairies|<span style="color:#{{BoxTextColor}}">fairy</span>]]|{{#ifeq:{{{type|}}}|monstrosity|[[:Category:Monstrosities|<span style="color:#{{BoxTextColor}}">monstrosity</span>]]|{{#ifeq:{{{type|}}}|undead|[[:Category:Undead|<span style="color:#{{BoxTextColor}}">undead</span>]]|[[:Category:{{{type|}}}s|<span style="color:#{{BoxTextColor}}">{{{type|}}}<span>]]|}}}}}}{{#if:{{{subtype|}}}| ([[:Category:{{{subtype|}}}|<span style="color:#{{BoxTextColor}}">{{{subtype|}}}</span>]])|}},'' ''{{#ifeq:{{{alignment|}}}|any|[[:Category:Creatures that can be any alignment|<span style="color:#{{BoxTextColor}}">any alignment</span>]]|{{#ifeq:{{{alignment|}}}|any good|[[:Category:Creatures that can be any good alignment|<span style="color:#{{BoxTextColor}}">any good alignment</span>]]|{{#ifeq:{{{alignment|}}}|any evil|[[:Category:Creatures that can be any evil alignment|<span style="color:#{{BoxTextColor}}">any evil alignment</span>]]|{{#ifeq:{{{alignment|}}}|any lawful|[[:Category:Creatures that can be any lawful alignment|<span style="color:#{{BoxTextColor}}">any lawful alignment</span>]]|{{#ifeq:{{{alignment|}}}|any chaotic|[[:Category:Creatures that can be any chaotic alignment|<span style="color:#{{BoxTextColor}}">any chaotic alignment</span>]]|[[:Category:Creatures of {{align|{{{alignment|}}}}} alignment|<span style="color:#{{BoxTextColor}}">{{align|{{{alignment|}}}}}</span>]]}}}}}}}}}}''<br/>[[File:Divider.png|440px]]<br/>'''[[Armor class|<span style="color:#411e10">Armor Class</span>]]''' {{#if:{{{ac|}}}|{{{ac|10 | + | | colspan=6 {{!}} <span style="font-size:16px; font-family:'scalysans';">''[[:Category:{{{size|Medium}}}-sized creatures|<span style="color:#411e10">{{{size|Medium}}}</span>]] {{#ifeq:{{{type|}}}|fairy|[[:Category:Fairies|<span style="color:#{{BoxTextColor}}">fairy</span>]]|{{#ifeq:{{{type|}}}|monstrosity|[[:Category:Monstrosities|<span style="color:#{{BoxTextColor}}">monstrosity</span>]]|{{#ifeq:{{{type|}}}|undead|[[:Category:Undead|<span style="color:#{{BoxTextColor}}">undead</span>]]|[[:Category:{{{type|}}}s|<span style="color:#{{BoxTextColor}}">{{{type|}}}<span>]]|}}}}}}{{#if:{{{subtype|}}}| ([[:Category:{{{subtype|}}}|<span style="color:#{{BoxTextColor}}">{{{subtype|}}}</span>]])|}},'' ''{{#ifeq:{{{alignment|}}}|any|[[:Category:Creatures that can be any alignment|<span style="color:#{{BoxTextColor}}">any alignment</span>]]|{{#ifeq:{{{alignment|}}}|any good|[[:Category:Creatures that can be any good alignment|<span style="color:#{{BoxTextColor}}">any good alignment</span>]]|{{#ifeq:{{{alignment|}}}|any evil|[[:Category:Creatures that can be any evil alignment|<span style="color:#{{BoxTextColor}}">any evil alignment</span>]]|{{#ifeq:{{{alignment|}}}|any lawful|[[:Category:Creatures that can be any lawful alignment|<span style="color:#{{BoxTextColor}}">any lawful alignment</span>]]|{{#ifeq:{{{alignment|}}}|any chaotic|[[:Category:Creatures that can be any chaotic alignment|<span style="color:#{{BoxTextColor}}">any chaotic alignment</span>]]|[[:Category:Creatures of {{align|{{{alignment|}}}}} alignment|<span style="color:#{{BoxTextColor}}">{{align|{{{alignment|}}}}}</span>]]}}}}}}}}}}''<br/>[[File:Divider.png|440px]]<br/>'''[[Armor class|<span style="color:#411e10">Armor Class</span>]]''' {{#if:{{{ac|}}}|{{{ac|10}}}}} {{#if:{{{armortype|}}}|({{{armortype|}}})}}<br/>'''[[Heart points|<span style="color:#411e10">Heart Points</span>]]''' {{#if:{{{hd|}}}|{{LessThan1Becomes1|{{calchp|{{{hd|}}}|{{hdsize|{{{size|}}}}}|{{abilitymod|{{{con|}}}}}}}}} ({{{hd|}}}d{{hdsize|{{{size|}}}}}{{#ifeq:{{abilitymod|{{{con|}}}}}|0| | {{#ifexpr: {{{con|}}} > 9 | + | - }}{{Negative|{{#expr:{{abilitymod|{{{con|}}}}} * {{{hd|}}}}}}}}})|{{{hp}}} {{#if: {{{hpdice|}}}|({{{hpdice}}})}}}}{{#if: {{{hitdice|}}}| ({{{hitdice}}}{{#ifeq:{{abilitymod|{{{con|}}}}}|0| | {{#ifexpr: {{{con|}}} > 9 | + | - }}{{Negative|{{#expr:{{abilitymod|{{{con|}}}}} * {{{cr|}}}}}}}}})}}<br/>'''[[Speed|<span style="color:#411e10">Speed</span>]]''' {{{speed|}}} ft.{{#if:{{{burrow|}}}|, burrow {{{burrow|}}} ft.|}}{{#if:{{{climb|}}}|, climb {{{climb|}}} ft.|}}{{#if:{{{fly|}}}|, fly {{{fly|}}} ft.|}}{{#if:{{{swim|}}}|, swim {{{swim|}}} ft.|}}<br/>[[File:Divider.png|440px]] |
|- | |- | ||
| width="16.66%" align=center| [[Strength|<span style="color:#{{BoxTextColor}}; font-size:16px; font-family:'scalysans';">'''STR'''</span>]]<br/>{{{str|}}} ({{abilitymod|{{{str|}}}}}) | | width="16.66%" align=center| [[Strength|<span style="color:#{{BoxTextColor}}; font-size:16px; font-family:'scalysans';">'''STR'''</span>]]<br/>{{{str|}}} ({{abilitymod|{{{str|}}}}}) | ||
Line 117: | Line 117: | ||
|prof= Optional. Proficiency bonus. If left blank, it defaults to +2, with an additional +1 at 5 CR and every 4 ranks thereafter (+3 at CR 9, +4 at CR 13, etc). | |prof= Optional. Proficiency bonus. If left blank, it defaults to +2, with an additional +1 at 5 CR and every 4 ranks thereafter (+3 at CR 9, +4 at CR 13, etc). | ||
− | |ac=Optional. The creature's numerical AC score | + | |ac=Optional. The creature's numerical AC score. |
− | + | |armortype= Optional. "natural armor"; "leather armor, shield"; etc. | |
− | |armortype= Optional. "natural armor" | ||
|speed= Only enter the number in feet, e.g. "20" or "5". | |speed= Only enter the number in feet, e.g. "20" or "5". |
Revision as of 15:36, 13 May 2020
Usage
{{CB |group=minor, standard, legendary, epic, or special |title=Optional. Use if different than the page title. |size= Tiny, Small, Medium, Large, Huge, or Gargantuan |type=aberration, beast, construct, dragon, elemental, fairy, fiend, giant, monstrosity, ooze, plant, or undead |subtype=elf, demon, goblin, shapechanger, devil, or one of many other possibilities |alignment= LG, NG, CG, LN, N, CN, LE, NE, CE, U, any |challenge= Challenge rating of 1/8, 1, 10, etc, as appropriate. XP is filled automatically based on this. If "loot" is left blank, that is filled automatically based on this too. |image=Image url. |imagelink=Image source. Usually Zelda Wiki. |imagepx= Image width in pixels. Leave blank to auto-scale. |quote=Insert quoted text here. |quotesource=Source of quote. If left blank, defaults to {{Encyclopedia}}. |str= Strength score. The modifier is added automatically. |dex= |con= |int= |wis= |cha= |strsave= Optional. |dexsave= Optional. |consave= Optional. |intsave= Optional. |wissave= Optional. |chasave= Optional. |hd= Number of hit dice. E.g., a creature with 4d6 HD would have this be "4". Average HP is calculated in part on this. |hp= Optional. Overrides hd with whatever plain text you use. Useful for multiclassing creatures. |prof= Optional. Proficiency bonus. If left blank, it defaults to +2, with an additional +1 at 5 CR and every 4 ranks thereafter (+3 at CR 9, +4 at CR 13, etc). |ac=Optional. The creature's numerical AC score. |armortype= Optional. "natural armor"; "leather armor, shield"; etc. |speed= Only enter the number in feet, e.g. "20" or "5". |swim= Optional. Swimming speed. |burrow= Optional. Burrowing speed. |climb= Optional. Climbing speed. |fly= Optional. Flying speed. |weak= Optional. Damage vulnerabilities. Damage types include acid, bludgeoning (or blunt), cold, fire (or heat), force, lightning (or electric), necrotic, piercing, poison, psychic, radiant, slashing, and thunder (or sonic). {{CV|Fire}} |resist= Optional. For resistance to one or more damage types. {{CR|Fire}} |immunedamage=Optional. For immunity to one or more damage types. {{CI|damage|Fire}} |immune= Optional. For immunity to certain conditions. Conditions include blinded, charmed, deafened, frightened, frozen, grappled, ignited, incapacitated, invisible, paralyzed, poisoned, restrained, stunned, and unconscious. {{CI|condition|Grappled}} |senses= Optional. "darkvision 60 ft.", "tremorsense 60 ft.," etc. Common senses include blindsight, darkvision, tremorsense, and truesight, usually in increments of 30 ft. |perception= Optional. If text is entered, that text is displayed as the creature's perception bonus (e.g., "-2" or "+4"). This line is also used for the creature's passive perception. If left blank, it is assumed the creature is not proficient in perception. |stealth= Optional. As perception, above. |acrobatics= |animalhandling= |arcana= |athletics= |deception= |history= |insight= |intimidation= |investigation= |medicine= |nature= |perception= |performance= |persuasion= |religion= |sleightofhand= |survival= |languages=Optional. {{CL|Common}}, {{CL|Orc}}, {{CL|Bullywug}}, etc. Particularly powerful and intelligent creatures may simply know "all" languages. A special language is telepathy, which must have a specified range, usually being 60 ft. or 120 ft., as in {{CL|Telepathy|60}}. |traits=Optional, but almost universal. |actions=Optional, but almost universal. |reactions=Optional. |legendaryactions=Optional. |description= |gear=Optional. Includes items the creature is almost certainly holding or comprised of, separate from "loot". |loot=If left blank, a rupees and treasure chart are generated based on CR. Average result ideally has rupee purchase value = XP. |hireling=Highest skill check goes here. E.g., "7". Used for creatures that can be hired for non-hazardous work. |mercenary=Put any text here if applicable. For creatures that can be hired for hazardous work. Calculates based on CR. |cost=The cost to outright buy and own the creature. Should only be used for unintelligent beasts. |spells="Yes" or delete line. Adds "see [spellcasting service]." }}
Blank Template
For ease of use, a blank version of the template is provided below. Only mandatory lines have text in them.
{{CB |group= |title= |image= |imagelink= |imagepx= |quote= |quotesource= |size=Tiny, Small, Medium, Large, Huge, or Gargantuan |type=aberration, beast, celestial, construct, dragon, elemental, fey, fiend, giant, monstrosity, ooze, plant, or undead |subtype= |alignment= LG, NG, CG, LN, N, CN, LE, NE, CE, U, any, any evil, any good, any chaotic, any lawful |challenge= Challenge rating of 1/8, 1, 10... |str=Strength. |dex=Dexterity. |con=Constitution. |int=Intelligence. |wis=Wisdom. |cha=Charisma. |strsave= |dexsave= |consave= |intsave= |wissave= |chasave= |hd= |prof= |ac= |armortype= |speed= Base speed in feet. |swim= |burrow= |climb= |fly= |weak= |resist= |immunedamage= |immune= |senses= |languages= |perception= |stealth= |acrobatics= |animalhandling= |arcana= |athletics= |deception= |history= |insight= |intimidation= |investigation= |medicine= |nature= |perception= |performance= |persuasion= |religion= |sleightofhand= |survival= |anywhere= |dungeons= |caves= |urban= |plains= |forests= |jungles= |wetlands= |hills= |deserts= |cold= |volcanic= |coastlines= |freshwater= |saltwater= |astralrealm= |darkworld= |fairyrealm= |silentrealm= |twilightrealm= |traits= |actions= |reactions= |legendaryactions= |description= |gear= |loot= |hireling= |mercenary= |cost= |spells= }}
Categorization
When using this template, the page is automatically categorized based on many of the field entries. There are however a few categorizations which must be added manually. These include:
Category Needed | Template to Use | Example |
---|---|---|
Category:Creatures by vulnerability (unless the creature has no vulnerabilities) | Template:Vulnerability | {{CV|Fire}} |
Category:Creatures by resistance (unless the creature has no resistances) | Template:Resist | {{CR|Fire}} |
Category:Creatures by immunity (unless the creature has no immunities) | Template:Immunity | {{CI|Fire}} {{CI|Charmed}} |
Category:Creatures by languages known (unless the creature has no languages) | Template:Language | {{CL|Undercommon}} |