Template:Villager Info Box/doc

From RosieSoCrossing
Emotion Surprise NH Icon.png
This template is complex or is transcluded on a large number of pages.
Due to the sensitive nature of this template, caution is advised before editing. Any changes should first be tested in a sandbox. Please consider discussing before implementing them.

Usage

{{Villager Info Box
 | colorclass     = 

 | title          = 
 | image          = 
 | caption        = 
 | image2         = 
 | caption2       = 

 | label          = 
 | data           = 

 | labelend       = 
 | dataend        = 
}}

This template is intended to be used for game detail infoboxes for villagers. The layout will adapt vertically on small screen resolutions.

Visual styles

The following parameters primarily set the visual style of the template:

  • colorclass sets the display colors of the infobox to a color class defined in MediaWiki:Common.css. A list of valid color classes can be found here. If this parameter is not defined, the infobox will fallback to the default hue and saturation values of color-villager.
  • title is an optional parameter that sets the displayed heading of the infobox.
Content

The following parameters primarily set the content of the template:

  • image sets the image file to be displayed in the infobox.
  • caption sets a text caption to be displayed below the image.
  • image2 sets a second image file to be displayed in the infobox, below the first image.
  • caption2 sets a text caption to be displayed below the second image.
Labels

The following parameters will set the label to appear adjacent to the data, in two columns.

  • label sets the label content; supports up to 24 entries by adding a value suffix (e.g. label2). The first three labels will span across the same row near the top. Each subsequent label will have its own row, shared with the corresponding data cell.
  • data sets the data content; supports up to 24 entries by adding a value suffix (e.g. data2).. The first three data cells will span across the same row near the top. Each subsequent data cell will have its own row, shared with the corresponding label.
  • labelbetween<#-#> shows a wide label that spans two columns between two rows. Valid values are 3-4, 4-5, 5-6, 6-7, 7-8, 8-9, 9-10, 10-11, 11-12, 12-13, 13-14, and 14-15.
  • labelend sets the label content for the final row, with appropriately rounded borders.
  • dataend sets the data content for the final row, with appropriately rounded borders.