Infobox_basic

This page can be used as a building block in other pages.

{{{name}}}

{{{group_1}}}
{{{content_1_1}}} {{{content_1_2}}} ...... {{{content_1_9}}}
{{{group_2}}}
{{{content_2_1}}} ...... {{{content_2_9}}}
......
......
{{{group_5}}}
{{{content_5_1}}} ...... {{{content_5_9}}}
This template is intended as a meta template: a template used for constructing other templates. In general, it is not meant for use directly in an page, but can be used on one-off basis if required.

Template Code

Code:
[template]Infobox_basic
|bc=
|tb-fc=
|tb-bg=
|g-fc=
|g-bg=
|d-fc=
|d-bg=
|image=
|name=
|group_1=
|data_1_1=
|content_1_1=
|data_1_2=
|content_1_2=
|data_1_3=
|content_1_3=
|data_1_4=
|content_1_4=
|data_1_5=
|content_1_5=
|data_1_6=
|content_1_6=
|data_1_7=
|content_1_7=
|data_1_8=
|content_1_8=
|data_1_9=
|content_1_9=
|group_2=
|data_2_1=
|content_2_1=
|data_2_2=
|content_2_2=
|data_2_3=
|content_2_3=
|data_2_4=
|content_2_4=
|data_2_5=
|content_2_5=
|data_2_6=
|content_2_6=
|data_2_7=
|content_2_7=
|data_2_8=
|content_2_8=
|data_2_9=
|content_2_9=
|group_3=
|data_3_1=
|content_3_1=
|data_3_2=
|content_3_2=
|data_3_3=
|content_3_3=
|data_3_4=
|content_3_4=
|data_3_5=
|content_3_5=
|data_3_6=
|content_3_6=
|data_3_7=
|content_3_7=
|data_3_8=
|content_3_8=
|data_3_9=
|content_3_9=
|group_4=
|data_4_1=
|content_4_1=
|data_4_2=
|content_4_2=
|data_4_3=
|content_4_3=
|data_4_4=
|content_4_4=
|data_4_5=
|content_4_5=
|data_4_6=
|content_4_6=
|data_4_7=
|content_4_7=
|data_4_8=
|content_4_8=
|data_4_9=
|content_4_9=
|group_5=
|data_5_1=
|content_5_1=
|data_5_2=
|content_5_2=
|data_5_3=
|content_5_3=
|data_5_4=
|content_5_4=
|data_5_5=
|content_5_5=
|data_5_6=
|content_5_6=
|data_5_7=
|content_5_7=
|data_5_8=
|content_5_8=
|data_5_9=
|content_5_9=
[/template]

Usage

This template is intended to be used when creating new Infoboxes. For example, it could be used to create a character Infobox, or a nation Infobox, or a creature Infobox, etc. Each group header can be defined along with each row's label and content variable.

Parameters

Design Parameters

bc
Defines the border-color style of the infobox. This can either be defined or left as a parameter for the end-user to define. The color can be expressed in any way valid HTML color code, such as its name, hex code, RGB, and HSL.​
tc-fc
Defines the font-color style of the {{{name}}} parameter. This can either be defined or left as a parameter for the end-user to define. The color can be expressed in any way valid HTML color code, such as its name, hex code, RGB, and HSL.​
tc-bg
Defines the background-color style of the {{{name}}} parameter. This can either be defined or left as a parameter for the end-user to define. The color can be expressed in any way valid HTML color code, such as its name, hex code, RGB, and HSL.​
g-fc
Defines the font-color style of the group headers. This can either be defined or left as a parameter for the end-user to define. The color can be expressed in any way valid HTML color code, such as its name, hex code, RGB, and HSL.​
d-fc
Defines the font-color style of the data labels and content. This can either be defined or left as a parameter for the end-user to define. The color can be expressed in any way valid HTML color code, such as its name, hex code, RGB, and HSL.​
d-bg
Defines the background-color style of the data labels and content. This can either be defined or left as a parameter for the end-user to define. The color can be expressed in any way valid HTML color code, such as its name, hex code, RGB, and HSL.​

Top

image
Normally, this will be {{{image}}} just to pass the parameter onto the template being created. The image requires a direct URL link and will be resized to a 250px width.​
name
Normally, this will be
Code:
{{{name|[var]PAGENAME[/var]}}}
just to pass the parameter onto the template being created. If a name is not given, then the page's name will be used by default.​

Groups

group_#
This parameter sets the group label. Groups are sections in the Infobox that may cover common information - such as Biographical Info for character Infoboxes or Geographical Info for location Infoboxes. A group will be hidden if it has no data labels and content parameters.​
data_x_y
This parameter sets the data label - which is shown on the left side of the Infobox. X indicates the group this data label is under. Y indicates its position - 1 being the closest to the group header. A data label will normally be something such as "Age" for a character Infobox, or "Region" for a location Infobox. A data label will be hidden if it has no associated content.​
content_x_y
This parameter sets the data label's content. This is normally defined as a parameter itself, such as "{{{age}}}" for when the data label is "Age". The numbers must match the associated data point label. Content requires a defined data label to appear.​

Example

{{{name}}}

Biographical information
{{{birthplace}}} {{{birth}}} {{{death}}}
Physical description
{{{race}}} {{{subrace}}} {{{gender}}}
Political information
{{{affiliation}}} {{{masters}}} {{{apprentices}}}
Out-of-character information
{{{writer}}} {{{created}}} {{{avatar}}}
When this template is used to create a template named "Infobox_character" with the following code:
Code:
[template]Infobox_basic
|image={{{image}}}
|name={{{name|[var]PAGENAME[/var]}}}
|group_1=Biographical information
|data_1_1=Birthplace
|content_1_1={{{birthplace}}}
|data_1_2=Born
|content_1_2={{{birth}}}
|data_1_3=Died
|content_1_3={{{death}}}
|group_2=Physical description
|data_2_1=Race
|content_2_1={{{race}}}
|data_2_2=Sub-Race
|content_2_2={{{subrace}}}
|data_2_3=Gender
|content_2_3={{{gender}}}
|group_3=Political information
|data_3_1=Affiliation(s)
|content_3_1={{{affiliation}}}
|data_3_2=Masters
|content_3_2={{{masters}}}
|data_3_3=Apprentices
|content_3_3={{{apprentices}}}
|group_4=Out-of-character information
|data_4_1=Writer
|content_4_1={{{writer}}}
|data_4_2=Created on
|content_4_2={{{created}}}
|data_4_3=Avatar
|content_4_3={{{avatar}}}
[/template]

Kyver

Biographical information
Cydra's Kingdom
Physical description
Human Male
Political information
Cydra's Kingdom Cydra
Out-of-character information
Mason August 3, 2018 Cullen from Dragon Age: Inquisition
The following code can then be used on character pages to create an Infobox:
Code:
[template]Infobox_character
|image=https://chroniclesrp.net/data/avatars/l/0/6.jpg
|name=Kyver
|birthplace=Cydra's Kingdom
|birth=
|death=
|race=Human
|subrace=
|gender=Male
|affiliation=Cydra's Kingdom
|masters=Cydra
|apprentices=
|writer=Mason
|created=August 3, 2018
|avatar=Cullen from Dragon Age: Inquisition
[/template]
Notice how groups and data rows that are not used are hidden. It is not necessary to give all groups and data rows values, nor is it necessary for the end user of the generated template to use all data rows or groups.

Expansions

The base infobox can be expanded. Currently, there are a maximum of 5 groups each with 9 data/content combos. Any requests for expansions should be posted in the discussion for this template.

This page has been seen 2,276 times.

Recent Activity

Icon Legend

  • Can be used as a template
  • Color code

    • Content has new updates
    • Content has no updates

Share This Page