Help:Infobox: Difference between revisions

From WikiMD's Wellness Encyclopedia

CSV import
 
CSV import
 
(One intermediate revision by the same user not shown)
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}}
{{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.
==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:
<syntaxhighlight lang="text">
{{Infobox
{{Infobox
| title    =  
| name = Infobox
| image    =  
| title = Help: Infobox
| caption  =
| image = <!-- Image removed -->
| header1  =
| caption = Example of an infobox
| label1    =
| data1    =
| header2  =
| label2    =
| data2    =  
<!-- Add more fields as necessary -->
}}
}}
</syntaxhighlight>


==Parameters==
An '''infobox''' is a template used on [[Wikipedia]] and other [[MediaWiki]]-based projects to present a summary of information about the subject of an article. Infoboxes are typically placed at the top right of an article, in the lead section, and are used to provide a quick overview of key facts and data.
Infobox templates have various parameters that can be customized to fit the needs of the article. Common parameters include:
 
== Purpose ==
The primary purpose of an infobox is to summarize key points about the subject of an article in a consistent and visually appealing manner. This helps readers quickly grasp essential information without having to read the entire article. Infoboxes are particularly useful for articles about [[people]], [[places]], [[organizations]], and other subjects where structured data can be presented.
 
== Structure ==
Infoboxes are created using [[MediaWiki templates]], which allow for the consistent presentation of information across multiple articles. A typical infobox template will include parameters for various pieces of information, such as:
* Name
* Image
* Caption
* Birth date
* Occupation
* Known for


* '''title''': The title of the infobox.
These parameters can be filled in with relevant data for each specific article.
* '''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==
== Usage ==
Here is an example of an infobox for a person:
To use an infobox in a MediaWiki article, you need to include the appropriate template at the beginning of the article's source code. For example, to use a person infobox, you might include the following code:
<syntaxhighlight lang="text">
 
<pre>
{{Infobox person
{{Infobox person
| name   = John Doe
| name = John Doe
| image   = JohnDoe.jpg
| image = <!-- Image removed -->
| 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]]
| occupation = [[Physician]]
| occupation = [[Software engineer]]
| known_for = [[Medical research]]
}}
}}
</syntaxhighlight>
</pre>


==Customization==
This code will generate 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==
== Customization ==
Infobox templates can be customized to suit the needs of different types of articles. For example, an infobox for a [[city]] might include parameters for population, area, and mayor, while an infobox for a [[book]] might include parameters for author, genre, and publication date.
 
== Best Practices ==
When using infoboxes, it is important to ensure that the information provided is accurate and up-to-date. Infoboxes should complement the main text of the article, not replace it. Additionally, editors should avoid adding excessive detail to infoboxes, as this can make them cluttered and difficult to read.
 
== See Also ==
* [[Template:Infobox]]
* [[Template:Infobox]]
* [[Help:Template]]
* [[Help:Template]]
* [[Help:Table]]
* [[Wikipedia:Manual of Style/Infoboxes]]
* [[Help:Formatting]]


==See Also==
== References ==
* [[Help:Template]]
<references />
* [[Help:Table]]
* [[Help:Formatting]]


{{Help navigation}}
== External Links ==
{{medicine-stub}}
* [https://www.mediawiki.org/wiki/Help:Templates MediaWiki Help: Templates]


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

Latest revision as of 20:44, 30 December 2024


Help: Infobox


Example of an infobox



An infobox is a template used on Wikipedia and other MediaWiki-based projects to present a summary of information about the subject of an article. Infoboxes are typically placed at the top right of an article, in the lead section, and are used to provide a quick overview of key facts and data.

Purpose[edit]

The primary purpose of an infobox is to summarize key points about the subject of an article in a consistent and visually appealing manner. This helps readers quickly grasp essential information without having to read the entire article. Infoboxes are particularly useful for articles about people, places, organizations, and other subjects where structured data can be presented.

Structure[edit]

Infoboxes are created using MediaWiki templates, which allow for the consistent presentation of information across multiple articles. A typical infobox template will include parameters for various pieces of information, such as:

  • Name
  • Image
  • Caption
  • Birth date
  • Occupation
  • Known for

These parameters can be filled in with relevant data for each specific article.

Usage[edit]

To use an infobox in a MediaWiki article, you need to include the appropriate template at the beginning of the article's source code. For example, to use a person infobox, you might include the following code:

{{Infobox person
| name = John Doe
| image = <!-- Image removed -->
| caption = John Doe in 2023
| birth_date = {{Birth date and age|1980|1|1}}
| occupation = [[Physician]]
| known_for = [[Medical research]]
}}

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

Customization[edit]

Infobox templates can be customized to suit the needs of different types of articles. For example, an infobox for a city might include parameters for population, area, and mayor, while an infobox for a book might include parameters for author, genre, and publication date.

Best Practices[edit]

When using infoboxes, it is important to ensure that the information provided is accurate and up-to-date. Infoboxes should complement the main text of the article, not replace it. Additionally, editors should avoid adding excessive detail to infoboxes, as this can make them cluttered and difficult to read.

See Also[edit]

References[edit]

<references />

External Links[edit]

```