Template:MercData

From Dirty Bomb Wiki
Jump to: navigation, search
Parameter name Variable name Property name(s) Value
nickname nickname Has name
class_name class_name Has class name
class_desc class_desc Has class desc
health health Has health
speed speed Has speed
portrait portrait Has portrait
Template-info.png Documentation

This template is used to set up an merc data page.

Generally speaking, these will be set up as Data namespace pages by periodic automated imports of data extracted from the game client, so it isn't recommended that you set these up yourself. You may want to edit them to update outdated data from time to time, though. Note, though, if imports are consistently adding incorrect information to a data page, you should instead use the appropriate parameters on {{MercHeader}} on the content page instead.

This template shows the data in a table like the one above automatically when used on pages in the Data namespace, but shows nothing when used elsewhere. This is because the data page is transcluded on its content page. The show_data parameter is provided if you want to test data pages in your userspace, though. Setting that to yes will cause it to display the table.

Usage:

{{MercData
  |show_data=yes or no
  |nickname=The nickname of the merc
  |class_name=The merc's class name
  |class_desc=The merc's class description
  |health=the merc's health
  |speed=the merc's speed
  |portrait=Filename of the portrait image, without the "File:" namespace prefix
}}

This template defines the table "Merc_data". View table.