This help page is a
how-to guide. It details processes or procedures of some aspect(s) of Wikipedia's norms and practices. It is not one of
Wikipedia's policies or guidelines, and may reflect varying levels of
consensus and
vetting. |
If an article already has an infobox at the top right, then the usual place for the article's first picture is within the infobox. This page describes how to add that picture. Confusingly, the proper syntax to do this varies from one infobox to another.
This page assumes that the picture has already been uploaded to Wikipedia or to Wikimedia Commons; see Wikipedia:Uploading images.
In these infoboxes, the image information is split up into three or four different parameters. This is the syntax used by {{ Infobox person}}, {{ Infobox officeholder}}, {{ Infobox sportsperson}} and others. Here are the image parameters for {{ Infobox person}}:
{{Infobox person
| image =
| image_upright =
| alt =
| caption =
}}
Jimmy Wales | |
---|---|
{{Infobox person
|name=Jimmy Wales
|image=Jimmy Wales Fundraiser Appeal edit.jpg
|caption=Wales in 2008
}}
A real example would have other parameters as well.
Some infoboxes use a syntax similar to this, but with different names for the parameters. For example, {{ Infobox album}} uses "Cover" instead of "image" and "Caption" instead of "caption".
In these infoboxes, the image information is combined into only one or two parameters. This is the syntax used by {{ Infobox football club}}, {{ Infobox military conflict}} and others. Here are the image parameters for {{ Infobox football club}}:
{{Infobox football club
| image =
| caption =
}}
{{Infobox football club
|clubname = Infobox Rovers
|image = [[File:Football.svg|200px|center|alt=A white football]]
|caption = The logo introduced in 2006
}}
When you edit the article, you should be able to find the text "{{Infobox"
somewhere near the top. That line, without the pair of curly brackets, is the name of the infobox (If there's a
vertical bar "|", then stop before that).
If you've found "Infobox connector", as an example, then type "Template:Infobox connector" into the Wikipedia search box to display the template definition and documentation.
It happens. When you are on the template definition page, select " What links here" from within the Toolbox section on the left-hand side. This displays a list of articles that use the same infobox; some of these may help you work out what to do.
This typically happens when "image = [[File:.....]]"
is used within an infobox that expects "image = just the name"
.
Example chef | |
---|---|
This occurs when the "thumb" keyword is included in the file specification.
{{Infobox person
|name = Example chef
|image = [[File:William Orpen Le Chef de l'Hôtel Chatham, Paris.jpg|200px|thumb|center]] <!-- Error -->
|caption = A typical result from this kind of error
}}
This may be because you have used the "image = just the name"
syntax within an infobox that expects "image = [[File:.....]]"
.
This could be a sign that the parameter name is not one of those recognized by the infobox that you are using. You should also check that the parameter is not being specified more than once, as only the last mention of a parameter has any effect.
Ask a question at the Wikipedia:Help desk, including the names of the article and the image.
This help page is a
how-to guide. It details processes or procedures of some aspect(s) of Wikipedia's norms and practices. It is not one of
Wikipedia's policies or guidelines, and may reflect varying levels of
consensus and
vetting. |
If an article already has an infobox at the top right, then the usual place for the article's first picture is within the infobox. This page describes how to add that picture. Confusingly, the proper syntax to do this varies from one infobox to another.
This page assumes that the picture has already been uploaded to Wikipedia or to Wikimedia Commons; see Wikipedia:Uploading images.
In these infoboxes, the image information is split up into three or four different parameters. This is the syntax used by {{ Infobox person}}, {{ Infobox officeholder}}, {{ Infobox sportsperson}} and others. Here are the image parameters for {{ Infobox person}}:
{{Infobox person
| image =
| image_upright =
| alt =
| caption =
}}
Jimmy Wales | |
---|---|
{{Infobox person
|name=Jimmy Wales
|image=Jimmy Wales Fundraiser Appeal edit.jpg
|caption=Wales in 2008
}}
A real example would have other parameters as well.
Some infoboxes use a syntax similar to this, but with different names for the parameters. For example, {{ Infobox album}} uses "Cover" instead of "image" and "Caption" instead of "caption".
In these infoboxes, the image information is combined into only one or two parameters. This is the syntax used by {{ Infobox football club}}, {{ Infobox military conflict}} and others. Here are the image parameters for {{ Infobox football club}}:
{{Infobox football club
| image =
| caption =
}}
{{Infobox football club
|clubname = Infobox Rovers
|image = [[File:Football.svg|200px|center|alt=A white football]]
|caption = The logo introduced in 2006
}}
When you edit the article, you should be able to find the text "{{Infobox"
somewhere near the top. That line, without the pair of curly brackets, is the name of the infobox (If there's a
vertical bar "|", then stop before that).
If you've found "Infobox connector", as an example, then type "Template:Infobox connector" into the Wikipedia search box to display the template definition and documentation.
It happens. When you are on the template definition page, select " What links here" from within the Toolbox section on the left-hand side. This displays a list of articles that use the same infobox; some of these may help you work out what to do.
This typically happens when "image = [[File:.....]]"
is used within an infobox that expects "image = just the name"
.
Example chef | |
---|---|
This occurs when the "thumb" keyword is included in the file specification.
{{Infobox person
|name = Example chef
|image = [[File:William Orpen Le Chef de l'Hôtel Chatham, Paris.jpg|200px|thumb|center]] <!-- Error -->
|caption = A typical result from this kind of error
}}
This may be because you have used the "image = just the name"
syntax within an infobox that expects "image = [[File:.....]]"
.
This could be a sign that the parameter name is not one of those recognized by the infobox that you are using. You should also check that the parameter is not being specified more than once, as only the last mention of a parameter has any effect.
Ask a question at the Wikipedia:Help desk, including the names of the article and the image.