模板:Bestiary

出自Terraria Wiki
跳至導覽 跳至搜尋
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 文檔 以下文檔來自Template:Bestiary/doc。(編輯 | 歷史

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> | plural = y (optional) }}

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.

plural

This parameter is used by specific languages. Set to y if name of the character is plural.

"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}}
  • 藍史萊姆的 怪物圖鑑怪物圖鑑條目:簡單的明膠狀生物,見到什麼東西都能一口吞下!但消化需要很長時間。
Basic usage on the Blue Slime page.
{{bestiary|Skeleton}}
  • 骷髏的 怪物圖鑑怪物圖鑑條目:誰說一定要有肌肉、皮膚甚至是眼球?骷髏就只靠背上的骨頭就能掙紮下去,而且跟有肉體的敵人一樣致命。
Display the entry of the Skeleton on any page.
{{bestiary|Plantera|article=}}
  • 世紀之花的 怪物圖鑑怪物圖鑑條目:沉睡的強大植物守衛,被克蘇魯那被破壞的陰謀餘波所喚醒。它的影響力遍及整個叢林。
Remove the article in front of the name of the NPC.
{{bestiary|Doctor Zombie|alias=Halloween Zombies}}
  • Halloween Zombies的 怪物圖鑑怪物圖鑑條目:這些殭屍即使穿上服裝也騙不了任何人;他們顯然太老了,玩不了「不給糖就搗蛋」的遊戲。
Display a name that is different from the actual quoted NPC.
{{bestiary|Xmas Zombie|alias=Christmas Zombies|article=}}
  • Christmas Zombies的 怪物圖鑑怪物圖鑑條目:即使是殭屍也可以慶祝節日。他們的節日服裝沒毛病,但他們的節日氣氛還不夠嗨。
Display a name that is different from the actual quoted NPC and remove the article.
"Multiple" mode
{{bestiary|Blue Slime|Skeleton|Plantera}}

怪物圖鑑怪物圖鑑條目

  • 藍史萊姆:簡單的明膠狀生物,見到什麼東西都能一口吞下!但消化需要很長時間。
  • 骷髏:誰說一定要有肌肉、皮膚甚至是眼球?骷髏就只靠背上的骨頭就能掙紮下去,而且跟有肉體的敵人一樣致命。
  • 世紀之花:沉睡的強大植物守衛,被克蘇魯那被破壞的陰謀餘波所喚醒。它的影響力遍及整個叢林。
Basic usage of multiple parameters. The table of contents proves that this is a separate subsection.
{{bestiary|Skeleton|Doctor Zombie|Doctor Zombie-alias=Halloween Zombies}}

怪物圖鑑怪物圖鑑條目

  • 骷髏:誰說一定要有肌肉、皮膚甚至是眼球?骷髏就只靠背上的骨頭就能掙紮下去,而且跟有肉體的敵人一樣致命。
  • Halloween Zombies:這些殭屍即使穿上服裝也騙不了任何人;他們顯然太老了,玩不了「不給糖就搗蛋」的遊戲。
Show a name that is different from the actual quoted NPC.
{{bestiary|Xmas Zombie|Blue Slime|Xmas Zombie-alias=Christmas Zombies}}

怪物圖鑑怪物圖鑑條目

  • Christmas Zombies:即使是殭屍也可以慶祝節日。他們的節日服裝沒毛病,但他們的節日氣氛還不夠嗨。
  • 藍史萊姆:簡單的明膠狀生物,見到什麼東西都能一口吞下!但消化需要很長時間。
Display a name that is different from the actual quoted NPC. The position of the -alias parameter within the template call does not matter.