Template:Infobox/doc

This template was adapted from Fortnite Wiki.

This template will generate infoboxes when given sets of  and   parameters.

Parameters
As this template dynamically generates an infobox based on the number of fields supplied,  in each section below stands for the number of each field/value set. Start your field/value sets at  and , and increase the number by 1 for each new set.

|mini
This parameter indicates whether to generate full-size infoboxes or mini infoboxes like those used on Battle Royale Weapons. Setting  to   will make mini infoboxes, any other value (including leaving the parameter blank) will default to making full-size infoboxes.

|name
This is the title of the infobox. It is required, though  can be used if you want it to default to the full name of the page the template is used on.

|rarity
This is the border color of the infobox. Acceptable values are the same as those for rarity. Defaults to white if not specified.

|field#
This is the "title" of the field/value set. This is REQUIRED for ALL desired field/value sets, even for modes where it does not appear on the page (see mode below for more information).

|value#
This is the "contents" of the field/value set.

|mode#
This parameter indicates how the set should be displayed. Acceptable values are as follows:
 * default (mode parameter blank):
 * This generates a standard title/contents set, with the  parameter in a header cell to the left and the   parameter in a content cell to the right.
 * This generates a standard title/contents set like the default, except the  parameter is displayed as a link.
 * This is identical to  except it works for   parameters that contain comma-separated lists. It will generate links for each value in the list.
 * This generates a title/contents set ideal for long blocks of text. The  parameter is in a header cell above, and the   parameter is in a content cell with a smaller font size below.
 * This only generates a title, similar to the header generated by . The   parameter is used as the contents of the header cell, and the   cell is not displayed and therefore can be anything you want other than whitespace (e.g. spaces and linebreaks).
 * This generates a single cell that contains an image. The file name should be put into the  parameter (do not include  ), and the   cell is not displayed and therefore can be anything you want other than whitespace (e.g. spaces and linebreaks).
 * By default, the image will be size 256px for full-size infoboxes and 80px for mini infoboxes, but this can be changed with the optional  parameter using one of the following formats: ,  , or
 * This generates a single cell that contains anything you want, including wikitext and/or HTML. It has no predefined formatting. The  parameter is the contents of the cell, and the   cell is not displayed and therefore can be anything you want other than whitespace (e.g. spaces and linebreaks).
 * This only generates a title, similar to the header generated by . The   parameter is used as the contents of the header cell, and the   cell is not displayed and therefore can be anything you want other than whitespace (e.g. spaces and linebreaks).
 * This generates a single cell that contains an image. The file name should be put into the  parameter (do not include  ), and the   cell is not displayed and therefore can be anything you want other than whitespace (e.g. spaces and linebreaks).
 * By default, the image will be size 256px for full-size infoboxes and 80px for mini infoboxes, but this can be changed with the optional  parameter using one of the following formats: ,  , or
 * This generates a single cell that contains anything you want, including wikitext and/or HTML. It has no predefined formatting. The  parameter is the contents of the cell, and the   cell is not displayed and therefore can be anything you want other than whitespace (e.g. spaces and linebreaks).
 * This generates a single cell that contains anything you want, including wikitext and/or HTML. It has no predefined formatting. The  parameter is the contents of the cell, and the   cell is not displayed and therefore can be anything you want other than whitespace (e.g. spaces and linebreaks).
 * This generates a single cell that contains anything you want, including wikitext and/or HTML. It has no predefined formatting. The  parameter is the contents of the cell, and the   cell is not displayed and therefore can be anything you want other than whitespace (e.g. spaces and linebreaks).

Examples
For a list of examples in active use, see Help:Infoboxes.

Full-Size Infobox Example


Mini Infobox Example


Tips

 * By default, field/value sets will be hidden if  is empty.
 * As a result, sets that have plain text  contents (e.g. a % sign after an optional “percent” parameter, or a section-mode set that contains plain text rather than a parameter) will cause the set to ALWAYS show up, even if the parameter defining it (or parameters below the section row) are empty. This can be avoided by enclosing all plain text contents in   statements. This allows those cells to be selectively shown or hidden based on the values of other parameters. See the Parser Functions documentation for more information on #if statements.