FANDOM


Documentation icon Template documentation[edit] [purge]
This documentation is transcluded from Template:Infobox npc multi/doc.
Template:Infobox npc multi invokes Module:Infobox npc multi using Lua.

This template provides a wrapper for Switch infoboxes that contain only the NPC infobox. The strong point of this template is that it allows parameters that apply to multiple versions to only be written once.

The parameters that apply to every version box are the same as those on the basic NPC infobox; however, for every parameter there are an additional 20 named paramname#. The unnumbered parameters are the defaults, and will only be used for a version of the corresponding numbered param is not defined. For example, there is name, name1, name2, all the way to name20.

Parameters are only looked for up to the highest "version" defined. The "version" parameters only come as numbered parameters and they are used to define the text in the switch infobox buttons.

Parameters can be referenced and reused by using a dollar sign ($) followed by the index. For example: |image4=$1 will use whatever image is being used for image1. Chatheads can be added outside of the infobox by using |chathead#=<code here>.

Example:

{{Infobox npc multi
|version1=Elune
|version2=Loon
|version3=RSW
|name = Elune
|image = [[File:Eluned.png|150px]]
|release = [[7 February]] [[2005]]
|update = Roving Elves
|members = Yes
|members2 = Only on Wednesdays
|quest = [[Roving Elves]], [[Mourning's Ends Part I]]
|location = [[Isafdar]], [[Prifddinas]]
|shop = No
|features1 = Recharges crystal teleport seeds
|features2 = Is being used as a test case
|race=[[Elf]]
|examine=Wow - the prettiest elf I have ever seen.
|map=No
|gender=Female
|gender3=Male
}}
Loading...
EluneLoonRSW
Community content is available under CC-BY-SA unless otherwise noted.