Help:Infobox: Difference between revisions

From WikiMD's Wellness Encyclopedia

CSV import
 
CSV import
Line 1: Line 1:
[[File:Lundehund.png|thumb|Lundehund]] [[file:Casanova_self_portrait.jpg|right|thumb|Casanova_self_portrait]] [[file:</code>_before_the_image_name_(or_you_didn't,_and_it's_one_of_the_templates_that_requires_it).|right|thumb|</code>_before_the_image_name_(or_you_didn't,_and_it's_one_of_the_templates_that_requires_it).]]   {{Short description|Help page about the Infobox template on MediaWiki}}
[[File:Lundehund.png|thumb]] [[File: before the image name (or you didn't, and it's one of the templates that requires it).|thumb]] Help:Infobox
{{pp-vandalism|small=yes}}
{{pp-move-indef}}
{{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.
An '''infobox''' is a template used on Wikipedia and other MediaWiki-based projects to present a consistent summary of information for articles. Infoboxes are typically found at the top right corner of an article and are designed to provide a quick overview of the most important facts about the subject of the article.


==Usage==
== Purpose and 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:
Infoboxes serve several purposes:
<syntaxhighlight lang="text">
 
{{Infobox
* '''Standardization''': They provide a standardized format for presenting key information, making it easier for readers to find and compare data across different articles.
| title    =
* '''Summarization''': Infoboxes summarize complex information into a concise format, allowing readers to quickly grasp the essential details.
| image    =
* '''Navigation''': They often include links to related articles, facilitating navigation within Wikipedia.
| caption  =
 
| header1  =  
Infoboxes are created using [[Help:Templates|templates]], which are pre-defined structures that can be reused across multiple articles. This ensures consistency and reduces the need for repetitive coding.
| label1    =  
 
| data1    =  
== Structure of an Infobox ==
| header2  =  
An infobox is typically structured as a table, with each row representing a different piece of information. The left column usually contains labels, while the right column contains the corresponding data. The structure of an infobox is defined by its template, which specifies the fields that can be filled in.
| label2    =  
 
| data2    =  
=== Common Fields ===
<!-- Add more fields as necessary -->
While the specific fields in an infobox depend on the subject, some common fields include:
}}
</syntaxhighlight>


==Parameters==
* '''Name''': The name of the subject.
Infobox templates have various parameters that can be customized to fit the needs of the article. Common parameters include:
* '''Image''': A representative image of the subject.
* '''Caption''': A brief description of the image.
* '''Date''': Relevant dates, such as birth or founding dates.
* '''Location''': Geographical location or place of significance.
* '''Key figures''': Important people associated with the subject.


* '''title''': The title of the infobox.
== Creating an Infobox ==
* '''image''': The filename of an image to be displayed in the infobox.
To create an infobox, editors use a template by including it in the article with the appropriate parameters filled in. For example, to use the `{{Infobox person}}` template, an editor might write:
* '''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==
```wikitext
Here is an example of an infobox for a person:
<syntaxhighlight lang="text">
{{Infobox person
{{Infobox person
| name   = John Doe
| name = John Doe
| image   = JohnDoe.jpg
| image = JohnDoe.jpg
| caption   = John Doe in 2020
| caption = John Doe in 2023
| birth_date = {{Birth date|1990|1|1}}
| birth_date = {{birth date and age|1980|1|1}}
| birth_place = [[New York City]], [[New York]]
| birth_place = [[New York City]], [[New York]]
| occupation = [[Software engineer]]
| occupation = [[Physician]]
}}
}}
</syntaxhighlight>
```


==Customization==
This code will render an infobox with the specified information about John Doe.
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==
== Customizing Infoboxes ==
* [[Template:Infobox]]
Infobox templates can be customized to fit the needs of specific articles. Editors can add or remove fields, change labels, and adjust formatting. However, it is important to maintain consistency with similar articles to ensure a uniform appearance across Wikipedia.
* [[Help:Template]]
 
* [[Help:Table]]
== Best Practices ==
* [[Help:Formatting]]
When using infoboxes, editors should adhere to the following best practices:
 
* '''Accuracy''': Ensure that all information in the infobox is accurate and verifiable.
* '''Relevance''': Only include information that is relevant to the subject of the article.
* '''Consistency''': Use the same infobox template for similar articles to maintain consistency.


==See Also==
== Also see ==
* [[Help:Template]]
* [[Help:Template]]
* [[Help:Table]]
* [[Help:Table]]
* [[Help:Formatting]]
* [[Help:Editing]]
* [[Help:Wiki markup]]


{{Help navigation}}
{{Wikipedia help pages}}
{{medicine-stub}}


[[Category:MediaWiki help]]
[[Category:Wikipedia help]]
[[Category:Templates]]
[[Category:Infobox templates]]

Revision as of 15:50, 9 December 2024

File:Before the image name (or you didn't, and it's one of the templates that requires it).

Help:Infobox

An infobox is a template used on Wikipedia and other MediaWiki-based projects to present a consistent summary of information for articles. Infoboxes are typically found at the top right corner of an article and are designed to provide a quick overview of the most important facts about the subject of the article.

Purpose and Usage

Infoboxes serve several purposes:

  • Standardization: They provide a standardized format for presenting key information, making it easier for readers to find and compare data across different articles.
  • Summarization: Infoboxes summarize complex information into a concise format, allowing readers to quickly grasp the essential details.
  • Navigation: They often include links to related articles, facilitating navigation within Wikipedia.

Infoboxes are created using templates, which are pre-defined structures that can be reused across multiple articles. This ensures consistency and reduces the need for repetitive coding.

Structure of an Infobox

An infobox is typically structured as a table, with each row representing a different piece of information. The left column usually contains labels, while the right column contains the corresponding data. The structure of an infobox is defined by its template, which specifies the fields that can be filled in.

Common Fields

While the specific fields in an infobox depend on the subject, some common fields include:

  • Name: The name of the subject.
  • Image: A representative image of the subject.
  • Caption: A brief description of the image.
  • Date: Relevant dates, such as birth or founding dates.
  • Location: Geographical location or place of significance.
  • Key figures: Important people associated with the subject.

Creating an Infobox

To create an infobox, editors use a template by including it in the article with the appropriate parameters filled in. For example, to use the `` template, an editor might write:

```wikitext

```

This code will render an infobox with the specified information about John Doe.

Customizing Infoboxes

Infobox templates can be customized to fit the needs of specific articles. Editors can add or remove fields, change labels, and adjust formatting. However, it is important to maintain consistency with similar articles to ensure a uniform appearance across Wikipedia.

Best Practices

When using infoboxes, editors should adhere to the following best practices:

  • Accuracy: Ensure that all information in the infobox is accurate and verifiable.
  • Relevance: Only include information that is relevant to the subject of the article.
  • Consistency: Use the same infobox template for similar articles to maintain consistency.

Also see