Difference between revisions of "Template:CreatureBox"

From Legends of Hyrule
Jump to navigationJump to search
m (cat fixes)
(categorization for environment; adding "any" alignment option)
Line 8: Line 8:
 
|{{!}} align=center style="background-color:#c0c0c0;" colspan=6 {{!}} <span style="font-size:150%">'''{{PAGENAME}}'''</span>
 
|{{!}} align=center style="background-color:#c0c0c0;" colspan=6 {{!}} <span style="font-size:150%">'''{{PAGENAME}}'''</span>
 
{{!}}-}}
 
{{!}}-}}
| colspan=6 style="background-color:#e0e0e0;" align=center{{!}} ''[[:Category:Creatures of {{{size|}}} size|{{{size|}}}]] [[:Category:Creatures of the {{{type|}}} type|{{{type|}}}]]{{#if:{{{subtype|}}}|&nbsp;([[:Category:Creatures of the {{{subtype|}}} subtype|{{{subtype|}}}]])|}}, [[:Category:Creatures of {{align|{{{alignment|}}}}} alignment|{{align|{{{alignment|}}}}}]]''
+
| colspan=6 style="background-color:#e0e0e0;" align=center{{!}} ''[[:Category:Creatures of {{{size|}}} size|{{{size|}}}]] [[:Category:Creatures of the {{{type|}}} type|{{{type|}}}]]{{#if:{{{subtype|}}}|&nbsp;([[:Category:Creatures of the {{{subtype|}}} subtype|{{{subtype|}}}]])|}},  
 +
{{#ifeq:{{{alignment|}}}|any|[[:Category:Creatures that can be of any alignment|any alignment]]|[[:Category:Creatures of {{align|{{{alignment|}}}}} alignment|{{align|{{{alignment|}}}}}]]}}''
 
|-
 
|-
 
| colspan=3 align=center width="50%" {{!}} '''AC''' {{#expr: 10 + {{{armorbonus|}}} {{abilitymod|{{{dex|}}}}}}} {{#if:{{{armortype|}}}|({{{armortype|}}})|}}
 
| colspan=3 align=center width="50%" {{!}} '''AC''' {{#expr: 10 + {{{armorbonus|}}} {{abilitymod|{{{dex|}}}}}}} {{#if:{{{armortype|}}}|({{{armortype|}}})|}}
Line 55: Line 56:
 
! Challenge
 
! Challenge
 
| colspan=5| [[:Category:Challenge {{{challenge|}}} creatures|{{{challenge|}}}]] ({{XP|{{{challenge|}}}}} XP)
 
| colspan=5| [[:Category:Challenge {{{challenge|}}} creatures|{{{challenge|}}}]] ({{XP|{{{challenge|}}}}} XP)
|}</includeonly><noinclude>==Usage==
+
|}{{#if:{{{arid|}}}|[[Category:Creatures found in arid regions]]}}{{#if:{{{coastlines|}}}|[[Category:Creatures found on coastlines]]}}{{#if:{{{dungeons|}}}|[[Category:Creatures found in dungeons]]}}{{#if:{{{forests|}}}|[[Category:Creatures found in forests]]}}{{#if:{{{freshwater|}}}|[[Category:Creatures found in freshwater]]}}{{#if:{{{plains|}}}|[[Category:Creatures found in grasslands or plains]]|{{#if:{{{grasslands|}}}|[[Category:Creatures found in grasslands or plains]]}}}}{{#if:{{{jungles|}}}|[[Category:Creatures found in jungles]]}}{{#if:{{{hills|}}}|[[Category:Creatures found in mountains or hills]]|{{#if:{{{mountains|}}}|[[Category:Creatures found in mountains or hills]]}}}}{{#if:{{{polar|}}}|[[Category:Creatures found in cold regions]]|{{#if:{{{cold|}}}|[[Category:Creatures found in cold regions]]}}||}}{{#if:{{{urban|}}}|[[Category:Creatures found in urban areas]]}}{{#if:{{{saltwater|}}}|[[Category:Creatures found in freshwater]]}}{{#if:{{{swamps|}}}|[[Category:Creatures found in wetlands]]|{{#if:{{{wetlands|}}}|[[Category:Creatures found in wetlands]]}}}}{{#if:{{{space|}}}|[[Category:Creatures found in outer space]]}}{{#if:{{{shadow|}}}|[[Category:Creatures found in the Shadowfell]]}}{{#if:{{{feywild|}}}|[[Category:Creatures found in the Feywield]]}}{{#if:{{{shadow|}}}|[[Category:Creatures found in the Feywield]]}}{{#if:{{{airplane|}}}|[[Category:Creatures found in the Air Plane]]}}{{#if:{{{earthplane|}}}|[[Category:Creatures found in the Earth Plane]]}}{{#if:{{{fireplane|}}}|[[Category:Creatures found in the Fire Plane]]}}{{#if:{{{waterplane|}}}|[[Category:Creatures found in the Water Plane]]}}{{#if:{{{astralplane|}}}|[[Category:Creatures found in the Astral Plane]]}}{{#if:{{{etherealplane|}}}|[[Category:Creatures found in the Ethereal Plane]]}}{{#if:{{{lowerplanes|}}}|[[Category:Creatures found in one or more of the Lower Planes]]}}{{#if:{{{upperplanes|}}}|[[Category:Creatures found in one or more of the Upper Planes]]}}</includeonly><noinclude>==Usage==
 
<pre>{{CB
 
<pre>{{CB
 
|float=Optional. If "right" is entered here, the table will float to the right side of the page.
 
|float=Optional. If "right" is entered here, the table will float to the right side of the page.
Line 62: Line 63:
 
|type=aberration, beast, celestial, construct, dragon, elemental, fey, fiend, giant, monstrosity, ooze, plant, or undead
 
|type=aberration, beast, celestial, construct, dragon, elemental, fey, fiend, giant, monstrosity, ooze, plant, or undead
 
|subtype=elf, demon, goblin, shapechanger, devil, or one of many other possibilities
 
|subtype=elf, demon, goblin, shapechanger, devil, or one of many other possibilities
|alignment= LG, NG, CG, LN, N, CN, LE, NE, CE, or U
+
|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.
 
|challenge= Challenge rating of 1/8, 1, 10, etc, as appropriate.  XP is filled automatically based on this.
  
Line 131: Line 132:
 
|type=aberration, beast, celestial, construct, dragon, elemental, fey, fiend, giant, monstrosity, ooze, plant, or undead
 
|type=aberration, beast, celestial, construct, dragon, elemental, fey, fiend, giant, monstrosity, ooze, plant, or undead
 
|subtype=
 
|subtype=
|alignment= LG, NG, CG, LN, N, CN, LE, NE, CE, or U
+
|alignment= LG, NG, CG, LN, N, CN, LE, NE, CE, U, any
 
|challenge= Challenge rating of 1/8, 1, 10...
 
|challenge= Challenge rating of 1/8, 1, 10...
 
|str=Strength.
 
|str=Strength.
Line 182: Line 183:
 
|sleightofhand=
 
|sleightofhand=
 
|survival=
 
|survival=
 +
 +
|dungeons=
 +
|caves=
 +
|urban=
 +
|plains=
 +
|forests=
 +
|jungles=
 +
|wetlands=
 +
|hills=
 +
|deserts=
 +
|cold=
 +
 +
|coastlines=
 +
|freshwater=
 +
|saltwater=
 +
 +
|space=
 +
|shadowfell=
 +
|feywild=
 +
|airplane=
 +
|earthplane=
 +
|fireplane=
 +
|waterplane=
 +
|etherealplane=
 +
|astralplane=
 +
|lowerplanes=
 +
|upperplanes=
 
}}</pre>
 
}}</pre>
  
 
===Categorization===
 
===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:
 
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:Creatures by environment]]
+
{|
* [[:Category:Creatures by vulnerability]] (unless the creature has no vulnerabilities)
+
| [[:Category:Creatures by vulnerability]] (unless the creature has no vulnerabilities) || [[:Template:Vulnerability]]
* [[:Category:Creatures by resistance]] (unless the creature has no resistances)
+
|-
* [[:Category:Creatures by immunity]] (unless the creature has no immunities)
+
| [[:Category:Creatures by resistance]] (unless the creature has no resistances) || [[:Template:Resist]]
* [[:Category:Creatures by languages known]] (unless the creature knows no languages)
+
|-
 +
| [[:Category:Creatures by immunity]] (unless the creature has no immunities) || [[:Template:Immunity]]
 +
|-
 +
| [[:Category:Creatures by languages known]] || [[:Template:Language]]
 +
|}
  
 
[[Category:Templates]]</noinclude>
 
[[Category:Templates]]</noinclude>

Revision as of 01:00, 1 June 2016

Usage

{{CB
|float=Optional. If "right" is entered here, the table will float to the right side of the page.
|title=Optional.  Use if different than the page title.
|size= Tiny, Small, Medium, Large, Huge, or Gargantuan
|type=aberration, beast, celestial, construct, dragon, elemental, fey, 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.

|str= Strength score.  The modifier is added automatically.
|dex=
|con=
|int=
|wis=
|cha=

|strsave= Optional.  Regarding the creature's Strength saving throw.  If left blank, it will default to 0.  If you enter "yes", it will default to the creature's proficiency bonus.  If anything else is entered, that will appear as the creature's Strength saving throw, and its Strength score will be ignored.  If the creature has NO proficient saving throws whatsoever, type in "none".
|dexsave= Optional.
|consave= Optional.
|intsave= Optional.
|wissave= Optional.
|chasave= Optional.

|hdcount= Number of hit dice.  E.g., a creature with 4d6 HD would have this be "4".  Average HP is calculated in part on this.
|hdsize= Size of hit dice.  E.g., a creature with 4d6 HD would have this be "6".  Average HP is calculated in part on this.  Normally, a creature's HD size depends on its size category: d4 for Tiny, d6 for Small, d8 for Medium, d10 for Large, d12 for Huge, and d20 for Gargantuan.
|hp= Optional.  Overrides hdcount and hdsize 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).

|armorbonus= Optional. Any bonus from (natural) armor, excluding dex bonus.  The dex bonus is added when AC is calculated.
|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).''
|resist= Optional. For resistance to one or more damage types.
|immune= Optional. For immunity to one or more damage types, or certain conditions.  Conditions include blinded, charmed, deafened, frightened, grapples, incapacitated, invisible, paralyzed, petrified, poisoned, restrained, stunned, and unconscious.
|senses= Optional.  "darkvision 60 ft.", "tremorsense 60 ft.," etc.  Common senses include blindsight, darkvision, tremorsense, and truesight, usually in increments of 30 ft.

|noskills= Optional.  If the creature has no skills whatsoever, then put text in this field.  Otherwise leave it blank.
|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.  Common, Orc, 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.
}}

Blank Template

For ease of use, a blank version of the template is provided below. Only mandatory lines have text in them.

{{CB
|float=right
|title=
|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
|challenge= Challenge rating of 1/8, 1, 10...
|str=Strength.
|dex=Dexterity.
|con=Constitution.
|int=Intelligence.
|wis=Wisdom.
|cha=Charisma.
|strsave=none
|dexsave=
|consave=
|intsave=
|wissave=
|chasave=
|hdcount=Number of hit dice.
|hdsize=Size of hit dice.  Normally it is d4 for Tiny, d6 for Small, d8 for Medium, d10 for Large, d12 for Huge, and d20 for Gargantuan.
|hp=
|prof=
|armorbonus=
|armortype=
|speed= Base speed in feet.
|swim=
|burrow=
|climb=
|fly=
|weak=
|resist=
|immune=
|senses=
|languages=

|noskills=
|perception=
|stealth=
|acrobatics=
|animalhandling=
|arcana=
|athletics=
|deception=
|history=
|insight=
|intimidation=
|investigation=
|medicine=
|nature=
|perception=
|performance=
|persuasion=
|religion=
|sleightofhand=
|survival=

|dungeons=
|caves=
|urban=
|plains=
|forests=
|jungles=
|wetlands=
|hills=
|deserts=
|cold=

|coastlines=
|freshwater=
|saltwater=

|space=
|shadowfell=
|feywild=
|airplane=
|earthplane=
|fireplane=
|waterplane=
|etherealplane=
|astralplane=
|lowerplanes=
|upperplanes=
}}

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:Creatures by vulnerability (unless the creature has no vulnerabilities) Template:Vulnerability
Category:Creatures by resistance (unless the creature has no resistances) Template:Resist
Category:Creatures by immunity (unless the creature has no immunities) Template:Immunity
Category:Creatures by languages known Template:Language