Template:Infobox

From EMC23 - Satellite Of Love
Revision as of 04:24, 27 August 2021 by Techbot (talk | contribs)
Jump to navigation Jump to search

Template:Distinguish Template:Documentation subpage Template:Parameter names example

This template is intended as a meta template: a template used for constructing other templates. Note: In general, it is not meant for use directly in an article, but can be used on a one-off basis if required. Help:Infobox contains an introduction about the recommended content and design of infoboxes; Wikipedia:Manual of Style/Infoboxes contains additional style guidelines. See WP:List of infoboxes and Category:Infobox templates for lists of prepared topic-specific infoboxes.

Usage[edit]

  1. REDIRECT Template:Template link with link off

Template:Redirect category shell is a meta-template: used to organise an actual {{Infobox sometopic}} template (like

  1. REDIRECT Template:Template link

Template:Redirect category shell).

For [[Template:Infobox sometopic]], template code then looks like this, simplified:

{{Infobox
| name     = {{{name|{{PAGENAME}}}}}
| image    = {{{image|}}}
| caption1 = {{{caption|}}}

| label1   = Former names
|  data1   = {{{former_names|}}}

| header2  = General information

| label3   = Status
|  data3   = {{{status|}}}
... <!-- etc. -->
}}


Content parameters[edit]

Title[edit]

There are two different ways to put a title on an infobox. One contains the title inside the infobox's border in the uppermost cell of the table, the other puts it as a caption on top of the table. You can use them both together, or just one or the other, or neither (though this is not recommended):

title
Text to put in the caption over the top of the table (or as section header before the whole content of this table, if this is a child infobox). For accessibility reasons, this is the most recommended alternative.
above
Text to put within the uppermost cell of the table.
subheader(n)
additional title fields which fit below {{{title}}} and {{{above}}}, but before images.

Examples:

Template:Distinguish Template:Documentation subpage Template:Parameter names example

This template is intended as a meta template: a template used for constructing other templates. Note: In general, it is not meant for use directly in an article, but can be used on a one-off basis if required. Help:Infobox contains an introduction about the recommended content and design of infoboxes; Wikipedia:Manual of Style/Infoboxes contains additional style guidelines. See WP:List of infoboxes and Category:Infobox templates for lists of prepared topic-specific infoboxes.

Usage[edit]

  1. REDIRECT Template:Template link with link off

Template:Redirect category shell is a meta-template: used to organise an actual {{Infobox sometopic}} template (like

  1. REDIRECT Template:Template link

Template:Redirect category shell).

For [[Template:Infobox sometopic]], template code then looks like this, simplified:

{{Infobox
| name     = {{{name|{{PAGENAME}}}}}
| image    = {{{image|}}}
| caption1 = {{{caption|}}}

| label1   = Former names
|  data1   = {{{former_names|}}}

| header2  = General information

| label3   = Status
|  data3   = {{{status|}}}
... <!-- etc. -->
}}


Content parameters[edit]

Title[edit]

There are two different ways to put a title on an infobox. One contains the title inside the infobox's border in the uppermost cell of the table, the other puts it as a caption on top of the table. You can use them both together, or just one or the other, or neither (though this is not recommended):

title
Text to put in the caption over the top of the table (or as section header before the whole content of this table, if this is a child infobox). For accessibility reasons, this is the most recommended alternative.
above
Text to put within the uppermost cell of the table.
subheader(n)
additional title fields which fit below Text in caption over infobox and {{{above}}}, but before images.

Examples:

Template loop detected: Template:Infobox

{{Infobox
 | name = {{subst:PAGENAME}}
 | title      = Text in caption over infobox
 | subheader  = Subheader of the infobox
 | header = (the rest of the infobox goes here)
}}

Template loop detected: Template:Infobox

{{Infobox
 | name = {{subst:PAGENAME}}
 | above      = Text in uppermost cell of infobox
 | subheader  = Subheader of the infobox
 | subheader2 = Second subheader of the infobox
 | header = (the rest of the infobox goes here)
}}

Illustration images[edit]

image(n)
images to display at the top of the template. Use full image syntax, for example [[File:example.png|200px|alt=Example alt text]]. Image is centered by default. See WP:ALT for more on alt text.
caption(n)
Text to put underneath the images.

Main data[edit]

header(n)
Text to use as a header in row n.
label(n)
Text to use as a label in row n.
data(n)
Text to display as data in row n.

Porting to other MediaWikis[edit]

The infobox template requires the Scribunto extension. WikiProject Transwiki has a version of this template that has been modified to work on other MediaWikis.

TemplateData[edit]

Template:TemplateData header <templatedata> {

   "description": "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 article but can be used on a one-off basis if required.",

"format": "Template:\n\n", "params": { "title": { "label": "Title", "description": "Title displayed above the infobox", "type": "string", "suggested": true } }, "paramOrder": [ "title" ] } </templatedata>

See also[edit]

  1. REDIRECT Template:Template link

Template:Redirect category shell

  1. REDIRECT Template:Template link

Template:Redirect category shell and

  1. REDIRECT Template:Template link

Template:Redirect category shell

Template:Sandbox other

Tracking categories[edit]

{{Infobox
 | name = {{subst:PAGENAME}}
 | title      = Text in caption over infobox
 | subheader  = Subheader of the infobox
 | header = (the rest of the infobox goes here)
}}

Template:Distinguish Template:Documentation subpage Template:Parameter names example

This template is intended as a meta template: a template used for constructing other templates. Note: In general, it is not meant for use directly in an article, but can be used on a one-off basis if required. Help:Infobox contains an introduction about the recommended content and design of infoboxes; Wikipedia:Manual of Style/Infoboxes contains additional style guidelines. See WP:List of infoboxes and Category:Infobox templates for lists of prepared topic-specific infoboxes.

Usage[edit]

  1. REDIRECT Template:Template link with link off

Template:Redirect category shell is a meta-template: used to organise an actual {{Infobox sometopic}} template (like

  1. REDIRECT Template:Template link

Template:Redirect category shell).

For [[Template:Infobox sometopic]], template code then looks like this, simplified:

{{Infobox
| name     = {{{name|{{PAGENAME}}}}}
| image    = {{{image|}}}
| caption1 = {{{caption|}}}

| label1   = Former names
|  data1   = {{{former_names|}}}

| header2  = General information

| label3   = Status
|  data3   = {{{status|}}}
... <!-- etc. -->
}}


Content parameters[edit]

Title[edit]

There are two different ways to put a title on an infobox. One contains the title inside the infobox's border in the uppermost cell of the table, the other puts it as a caption on top of the table. You can use them both together, or just one or the other, or neither (though this is not recommended):

title
Text to put in the caption over the top of the table (or as section header before the whole content of this table, if this is a child infobox). For accessibility reasons, this is the most recommended alternative.
above
Text to put within the uppermost cell of the table.
subheader(n)
additional title fields which fit below {{{title}}} and Text in uppermost cell of infobox, but before images.

Examples:

Template loop detected: Template:Infobox

{{Infobox
 | name = {{subst:PAGENAME}}
 | title      = Text in caption over infobox
 | subheader  = Subheader of the infobox
 | header = (the rest of the infobox goes here)
}}

Template loop detected: Template:Infobox

{{Infobox
 | name = {{subst:PAGENAME}}
 | above      = Text in uppermost cell of infobox
 | subheader  = Subheader of the infobox
 | subheader2 = Second subheader of the infobox
 | header = (the rest of the infobox goes here)
}}

Illustration images[edit]

image(n)
images to display at the top of the template. Use full image syntax, for example [[File:example.png|200px|alt=Example alt text]]. Image is centered by default. See WP:ALT for more on alt text.
caption(n)
Text to put underneath the images.

Main data[edit]

header(n)
Text to use as a header in row n.
label(n)
Text to use as a label in row n.
data(n)
Text to display as data in row n.

Porting to other MediaWikis[edit]

The infobox template requires the Scribunto extension. WikiProject Transwiki has a version of this template that has been modified to work on other MediaWikis.

TemplateData[edit]

Template:TemplateData header <templatedata> {

   "description": "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 article but can be used on a one-off basis if required.",

"format": "Template:\n\n", "params": { "title": { "label": "Title", "description": "Title displayed above the infobox", "type": "string", "suggested": true } }, "paramOrder": [ "title" ] } </templatedata>

See also[edit]

  1. REDIRECT Template:Template link

Template:Redirect category shell

  1. REDIRECT Template:Template link

Template:Redirect category shell and

  1. REDIRECT Template:Template link

Template:Redirect category shell

Template:Sandbox other

Tracking categories[edit]

{{Infobox
 | name = {{subst:PAGENAME}}
 | above      = Text in uppermost cell of infobox
 | subheader  = Subheader of the infobox
 | subheader2 = Second subheader of the infobox
 | header = (the rest of the infobox goes here)
}}

Illustration images[edit]

image(n)
images to display at the top of the template. Use full image syntax, for example [[File:example.png|200px|alt=Example alt text]]. Image is centered by default. See WP:ALT for more on alt text.
caption(n)
Text to put underneath the images.

Main data[edit]

header(n)
Text to use as a header in row n.
label(n)
Text to use as a label in row n.
data(n)
Text to display as data in row n.

Porting to other MediaWikis[edit]

The infobox template requires the Scribunto extension. WikiProject Transwiki has a version of this template that has been modified to work on other MediaWikis.

TemplateData[edit]

Template:TemplateData header <templatedata> {

   "description": "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 article but can be used on a one-off basis if required.",

"format": "Template:\n\n", "params": { "title": { "label": "Title", "description": "Title displayed above the infobox", "type": "string", "suggested": true } }, "paramOrder": [ "title" ] } </templatedata>

See also[edit]

  1. REDIRECT Template:Template link

Template:Redirect category shell

  1. REDIRECT Template:Template link

Template:Redirect category shell and

  1. REDIRECT Template:Template link

Template:Redirect category shell


Tracking categories[edit]