FANDOM


Template documentation (for the above template, sometimes hidden or invisible)

Description

  • This template produces a infobox-style template.
  • You may want to copy and modify this to create a specific infobox (e.g. character infobox).
  • This template requires parser functions to be enabled (Wikia default: on).

Syntax

{{infobox
|Box title   = [defaults to "No Title"]
|icon left   = [[File:FILENAME|32px]]
|icon right  = [[File:FILENAME|32px]]
|image       = File:FILENAME
|imagewidth  = [defaults to 250]
|caption     =
|label1      =
|info1       = [defaults to "No information"]
|label2      =
|info2       = [defaults to "No information"]
|label3      =
|info3       = [defaults to "No information"]
|label4      =
|info4       = [etc.]
|label5      =
|info5       =
|label6      =
|info6       =
|label7      =
|info7       =
|label8      =
|info8       =
|label9      =
|info9       =
|label10     =
|info10      =
|label11     =
|info11      =
|label12     =
|info12      =
|label13     =
|info13      =
|label14     =
|info14      =
|label15     =
|info15      =
|label16     =
|info16      =
|label17     =
|info17      =
|label18     =
|info18      =
|label19     =
|info19      =
|label20     =
|info20      =
}}

Notes

  • Keeping Box title empty will result in displaying No title
  • If you don't want to display an image, just keep image empty.
  • Keeping any label empty will skip that label and its appropriate info.
  • Keeping any info empty will result in displaying No information.
  • Maximum rows for information: 20 rows.

Sample output

Regular Infobox

{{infobox
|Box title   = Complete Infobox
|icon left   = [[File:Sburb Logo.svg|32px]]
|icon right  = [[File:SburbAlpha Logo.svg|32px]]
|image       = File:John Egbert2.png
|imagewidth  = 120
|caption     = John Egbert
|label1      = Label 1
|info1       = Info 1
|label2      = Label 2
|info2       = Info 2
|label3      = Label 3
|info3       = Info 3
|label4      = Label 4
|info4       = Info 4
|label5      = Label 5
|info5       = Info 5
|label6      = Label 6
|info6       = Info 6
|label7      = Label 7
|info7       = Info 7
|label8      = Label 8
|info8       = Info 8
|label9      = Label 9
|info9       = Info 9
|label10     = Label 10
|info10      = Info 10
}}


Title Image and info omitted

{{infobox
|label1      = Label 1
|label2      = Label 2
|label3      = Label 3
|label4      = Label 4
|label5      = Label 5
}}


label3 label5 and info5 omitted

Result: Row 3 and 5 will not be displayed.

{{infobox
|Box title   = Empty Label Infobox
|image       = File:John Egbert2.png
|imagewidth  = 60
|caption     = John Egbert
|label1      = Label 1
|info1       = Info 1
|label2      = Label 2
|info2       = Info 2
|info3       = Info 3
|label4      = Label 4
|info4       = Info 4
|label6      = Label 6
|info6       = Info 6
}}

Visit Template:Infobox/doc to edit this text! (How does this work?)
除了特别提示,社区内容遵循CC-BY-SA 授权许可。