Template:Infobox advanced/doc

From wiki.jriver.com
Jump to navigation Jump to search

Description

  • This template produces a infobox-style template, without parameters being lost if a title is left out. It also has easier-to-use names.
  • You may want to copy and modify this to create a specific infobox (e.g. character infobox).

Dependencies

  • This template requires an "infobox" CSS element, and a {{!}} template, both of which are also required by the original.
  • This template requires parser functions to be enabled (Wikia default: on).

Syntax

{{Infobox advanced
|title       = 
|image       = [optional]
|imagewidth  = [defaults to 250]
|caption     = [optional]
|T1          =
|C1          =
|T2          = [optional]
|C2          = [optional]
|T3          = [optional]
|C3          = [optional]
|T4          = [optional]
|C4          = [optional]
|T5          = [optional]
|C5          = [optional]
|T6          = [optional]
|C6          = [optional]
|T7          = [optional]
|C7          = [optional]
|T8          = [optional]
|C8          = [optional]
|T9          = [optional]
|C9          = [optional]
|T10         = [optional]
|C10         = [optional]
}}

Notes

  • Keeping the title empty will result in displaying No title
  • If you don't want to display image, just keep image and imagewidth empty.
  • Keeping the T1 empty will result in displaying No title.
  • Keeping any C_ parameter empty will result in displaying No information.
  • Keeping the Row (any below row 1) title empty will result in that row not being displayed.
  • Max rows for information: 10.

Sample output

No Title
Example.jpg
A flower
Title row 1 Info row 1
Title row 2 Info row 2
Title row 3 Info row 3
Title row 4 Info row 4
Title row 5 Info row 5
Title row 6 Info row 6
Title row 7 Info row 7
Title row 8 Info row 8
Title row 9 Info row 9
Title row 10 Info row 10

Complete Infobox:
{{Infobox advanced
|Box title = Info Title
|image = Image:Example.jpg
|imagewidth = 120
|caption = A flower
|T1 = Title row 1
|C1 = Info row 1
|T2 = Title row 2
|C2 = Info row 2
|T3 = Title row 3
|C3 = Info row 3
|T4 = Title row 4
|C4 = Info row 4
|T5 = Title row 5
|C5 = Info row 5
|T6 = Title row 6
|C6 = Info row 6
|T7 = Title row 7
|C7 = Info row 7
|T8 = Title row 8
|C8 = Info row 8
|T9 = Title row 9
|C9 = Info row 9
|T10 = Title row 10
|C10 = Info row 10
}}


No Title
Title row 1 Info row 1
Title row 2 Info row 2
Title row 3 Info row 3
Title row 4 Info row 4
Title row 5 Info row 5
Title row 6 Info row 6
Title row 7 Info row 7
Title row 8 Info row 8
Title row 9 Info row 9
Title row 10 Info row 10

Infobox Image omitted :
{{Infobox advanced
|Box title = Info Title
|T1 = Title row 1
|C1 = Info row 1
|T2 = Title row 2
|C2 = Info row 2
|T3 = Title row 3
|C3 = Info row 3
|T4 = Title row 4
|C4 = Info row 4
|T5 = Title row 5
|C5 = Info row 5
|T6 = Title row 6
|C6 = Info row 6
|T7 = Title row 7
|C7 = Info row 7
|T8 = Title row 8
|C8 = Info row 8
|T9 = Title row 9
|C9 = Info row 9
|T10 = Title row 10
|C10 = Info row 10
}}


No Title
Title row 1 Info row 1
Title row 2 Info row 2
Title row 3 Info row 3

Infobox Image omitted and displaying only 3 rows of information:
{{Infobox advanced
|Box title = Info Title
|T1 = Title row 1
|C1 = Info row 1
|T2 = Title row 2
|C2 = Info row 2
|T3 = Title row 3
|C3 = Info row 3
}}


No Title
Title row 1 Info row 1
Title row 2 Info row 2
Title row 3 Info row 3
Title row 5 Info row 5
Title row 6 Info row 6

Infobox Image and title row 4 omited:
Result: Row 4 will not be displayed.
{{Infobox advanced
|Box title = Info Title
|T1 = Title row 1
|C1 = Info row 1
|T2 = Title row 2
|C2 = Info row 2
|T3 = Title row 3
|C3 = Info row 3
|C4 = Info row 4
|T5 = Title row 5
|C5 = Info row 5
|T6 = Title row 6
|C6 = Info row 6
}}