Help:Infobox

From WikiMD's Wellness Encyclopedia

Revision as of 22:05, 5 June 2024 by Prab (talk | contribs) (CSV import)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Lundehund
File:Casanova self portrait.jpg
Casanova_self_portrait

[[file:_before_the_image_name_(or_you_didn't,_and_it's_one_of_the_templates_that_requires_it).|right|thumb|_before_the_image_name_(or_you_didn't,_and_it's_one_of_the_templates_that_requires_it).]]

Help page about the Infobox template on MediaWiki Template:Help page

Help:Infobox is a guide on how to use the Template:Infobox on MediaWiki pages. An infobox is a fixed-format table used to consistently present a summary of information about a subject. Infoboxes are commonly used in articles to provide a quick overview of the subject's key details.

Usage

To use an infobox, you need to include the appropriate infobox template at the beginning of the article. The syntax for adding an infobox is as follows:

{{Infobox
| title    = 
| image    = 
| caption   = 
| header1   = 
| label1    = 
| data1    = 
| header2   = 
| label2    = 
| data2    = 
<!-- Add more fields as necessary -->
}}

Parameters

Infobox templates have various parameters that can be customized to fit the needs of the article. Common parameters include:

  • title: The title of the infobox.
  • image: The filename of an image to be displayed in the infobox.
  • caption: A caption for the image.
  • header: A header for a section within the infobox.
  • label: A label for a piece of data.
  • data: The data corresponding to the label.

Examples

Here is an example of an infobox for a person:

{{Infobox person
| name    = John Doe
| image    = JohnDoe.jpg
| caption   = John Doe in 2020
| birth_date = {{Birth date|1990|1|1}}
| birth_place = [[New York City]], [[New York]]
| occupation = [[Software engineer]]
}}

Customization

Infoboxes can be customized by creating new templates or modifying existing ones. To create a new infobox template, you can start with the basic structure and add specific fields relevant to the subject. For example, an infobox for a book might include fields for the author, genre, and publication date.

Related Pages

See Also

Stub icon
   This article is a medical stub. You can help WikiMD by expanding it!