Template:Bestiary

From Calamity Mod Wiki
Jump to navigation Jump to search
This template is i18n-ready, which means it is easy to localize for different languages. Please see I18n & l10n for Templates to learn more.
See Template:Bestiary/l10n for the localization of this template.
Template-info.svg Documentation The documentation below is transcluded from Template:Bestiary/doc. (edit | history)

Displays the Bestiary entry of a character using the name of the page. Should be transcluded at the end of the Trivia section on every page that deals with a character included in the Bestiary.

Usage

The template has two modes: one for a single bestiary entry, which will display a single bullet point, and one for multiple entries at once, which will display an entire subsection with a list of entries.

"Single" mode

All parameters are optional.

{{ bestiary | <name of the character> | alias = <name replacement> | article = <custom article> }}

First unnamed parameter

Name of the character whose Bestiary entry is to be displayed. Defaults to the name of the page.

alias

Replacement of the character's name in the output text.

article

Article to use in front of the character's name. Defaults to "the". Set it to nothing to suppress display of an article altogether.

"Multiple" mode

{{ bestiary | <name of character 1> | <name of character 2> | <name of character 3> (optional) | ... | <name of character n> (optional) | <name>-alias = <name replacement> }}

Unnamed parameters

Names of the characters whose entries are to be displayed. The order of the parameters determines the order in the output.

<name>-alias

Replacement of the character's name in the output text. <name> must be equal to the respective character's name as entered into the template.

Examples

Code Result Note
"Single" mode
{{bestiary}}
  • The BestiaryBestiary entry for the Wulfrum Drone: "The purpose the wulfrum machines once fulfilled can most clearly be seen through the drones: to harass the basic troopers of Yharim’s forces. They were not threatening enough to be a priority target, though their laser attacks could be quite deadly if allowed to fully power up."
Basic usage on the Wulfrum Drone page.
{{bestiary|Irradiated Slime}}
  • The BestiaryBestiary entry for the Irradiated Slime: "Though slime is known to fall from the sky on occasion, slime in the sky condenses far quicker here in the Sulphurous Sea, as its air is thick with sulfur and radiation. It isn’t uncommon for full sized slimes to fall from the heavens during acid rain storms, never mind a fully-fledged slime rain."
Display the entry of the Irradiated Slime on any page.
{{bestiary|Yharon, Dragon of Rebirth|article=}}
  • The BestiaryBestiary entry for Yharon, Dragon of Rebirth: "Each dragon once wielded nigh limitless power over their domain, a fundamental power drawn directly from the world's fragmented soul. The dragons were masters of all; life, death, even the great Primordial Light that banishes the eternal night beyond. And yet, one of these majestic beings reached a height of power possibly second only to their king. He who made his kind eternal through his powers of Rebirth... and yet, even eternity did not last."
Remove the article in front of the name of the NPC.
{{bestiary|Bohldohr|alias=BOHLDOHR}}
  • The BestiaryBestiary entry for the BOHLDOHR: "Bohldohrs were made to serve the lihzahrds, being crafted from ancient stone and brought to life with magical power in the twilight of the great Lihzahrd Dynasty. But the sun sets on every civilization, and once their deity abandoned them, they were left to fend for themselves."
Display a name that is different from the actual quoted NPC.
{{bestiary|The Slime God|alias=The Slime God (core)|article=}}
  • The BestiaryBestiary entry for The Slime God (core): "Despite being a Gluttonous slime, the Slime God forbids itself from growing out of control to maintain the balance of the world. It was still pursued during the Crusade, but it managed to survive through countless strategic retreats. The duty it upholds and the methods it employs are the reason the Onyx Kinsmen worship such a puny deity."
Display a name that is different from the actual quoted NPC and remove the article.
"Multiple" mode
{{bestiary|Wulfrum Drone|Irradiated Slime|Yharon, Dragon of Rebirth}}

BestiaryBestiary entries

  • Wulfrum Drone: "The purpose the wulfrum machines once fulfilled can most clearly be seen through the drones: to harass the basic troopers of Yharim’s forces. They were not threatening enough to be a priority target, though their laser attacks could be quite deadly if allowed to fully power up."
  • Irradiated Slime: "Though slime is known to fall from the sky on occasion, slime in the sky condenses far quicker here in the Sulphurous Sea, as its air is thick with sulfur and radiation. It isn’t uncommon for full sized slimes to fall from the heavens during acid rain storms, never mind a fully-fledged slime rain."
  • Yharon, Dragon of Rebirth: "Each dragon once wielded nigh limitless power over their domain, a fundamental power drawn directly from the world's fragmented soul. The dragons were masters of all; life, death, even the great Primordial Light that banishes the eternal night beyond. And yet, one of these majestic beings reached a height of power possibly second only to their king. He who made his kind eternal through his powers of Rebirth... and yet, even eternity did not last."
Basic usage of multiple parameters. The table of contents proves that this is a separate subsection.
{{bestiary|Irradiated Slime|Bohldohr|Bohldohr-alias=BOHLDOHR}}

BestiaryBestiary entries

  • Irradiated Slime: "Though slime is known to fall from the sky on occasion, slime in the sky condenses far quicker here in the Sulphurous Sea, as its air is thick with sulfur and radiation. It isn’t uncommon for full sized slimes to fall from the heavens during acid rain storms, never mind a fully-fledged slime rain."
  • BOHLDOHR: "Bohldohrs were made to serve the lihzahrds, being crafted from ancient stone and brought to life with magical power in the twilight of the great Lihzahrd Dynasty. But the sun sets on every civilization, and once their deity abandoned them, they were left to fend for themselves."
Show a name that is different from the actual quoted NPC.
{{bestiary|The Slime God|Wulfrum Drone|The Slime God-alias=The Slime God (core)}}

BestiaryBestiary entries

  • The Slime God (core): "Despite being a Gluttonous slime, the Slime God forbids itself from growing out of control to maintain the balance of the world. It was still pursued during the Crusade, but it managed to survive through countless strategic retreats. The duty it upholds and the methods it employs are the reason the Onyx Kinsmen worship such a puny deity."
  • Wulfrum Drone: "The purpose the wulfrum machines once fulfilled can most clearly be seen through the drones: to harass the basic troopers of Yharim’s forces. They were not threatening enough to be a priority target, though their laser attacks could be quite deadly if allowed to fully power up."
Display a name that is different from the actual quoted NPC. The position of the -alias parameter within the template call does not matter.