Fortnite Wiki
Registre-se
Advertisement

Cargo Declaration Esta predefinição define a tabela "InfoboxWeapons". Ver tabela.

Form Information This template uses the form Form:Infobox Weapons.

Transclusion Information The following documentation is transcluded from Template:Infobox/doc.

Documentação[Limpar cache]

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

Usage[]

{{Infobox
| mini = true/false /optional
| name =
| rarity =
| field1 = 
| value1 = 
| mode1 = /optional
| field2 = 
| value2 = 
| mode2 = /optional
...
| field# = 
| value# = 
| mode# = /optional
}}

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 field1 and value1, 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 mini to true 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 {{PAGENAME}} 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 field# parameter in a header cell to the left and the value# parameter in a content cell to the right.
link
This generates a standard title/contents set like the default, except the value# parameter is displayed as a link.
linklist
This is identical to mode#=link except it works for value# parameters that contain comma-separated lists. It will generate links for each value in the list.
block
This generates a title/contents set ideal for long blocks of text. The field# parameter is in a header cell above, and the value# parameter is in a content cell with a smaller font size below.
section
This only generates a title, similar to the header generated by mode#=block. The value# parameter is used as the contents of the header cell, and the field# cell is not displayed and therefore can be anything you want other than whitespace (e.g. spaces and linebreaks).
image
This generates a single cell that contains an image. The file name should be put into the value# parameter (do not include File:), and the field# 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 |size#= parameter using one of the following formats: WIDTHpx, xHEIGHTpx, or WIDTHxHEIGHTpx
custom
This generates a single cell that contains anything you want, including wikitext and/or HTML. It has no predefined formatting. The value# parameter is the contents of the cell, and the field# 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[]

{{Infobox
|name=Infobox Title
|rarity=Rare

|field1=Image
|value1=Schematic.png
|mode1=image
|size1=120x120px

|field2=Block
|value2=Block text contents
|mode2=block

|field3=Default
|value3=Default text content
|mode3=

|field4=Link
|value4=Heroes
|mode4=link

|field5=Linklist
|value5=Soldier,Ninja,Outlander,Constructor
|mode5=linklist

|field6=Section
|value6=Section text content
|mode6=section

|field7=Custom
|value7=Custom text content
|mode7=custom
}}
Infobox Title
Predefinição:MissingImageInfobox
Block
Block text contents
Default
Default text content
Link
Heroes
Linklist
Soldier, Ninja, Outlander, Constructor
Section text content
Custom text content

Mini Infobox Example[]

{{Infobox
|mini=true
|name=Infobox Title
|rarity=Rare

|field1=Image
|value1=Schematic.png
|mode1=image

|field2=Block
|value2=Block text contents
|mode2=block

|field3=Default
|value3=Default text content
|mode3=

|field4=Link
|value4=Heroes
|mode4=link

|field5=Linklist
|value5=Soldier,Ninja,Outlander,Constructor
|mode5=linklist

|field6=Section
|value6=Section text content
|mode6=section

|field7=Custom
|value7=Custom text content
|mode7=custom
}}
Infobox Title
Predefinição:MissingImageInfobox
Block
Block text contents
Default
Default text content
Link
Heroes
Linklist
Soldier, Ninja, Outlander, Constructor
Section text content
Custom text content

Tips[]

  • By default, field/value sets will be hidden if value# is empty.
    • As a result, sets that have plain text value# 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 #if 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.

About

Advertisement