![]() | This help page is ahow-to guide. It explains concepts or processes used by the Wikipedia community. It is not one ofWikipedia's policies or guidelines, and may reflect varying levels ofconsensus. |
WikiProject Infoboxes | ||||
---|---|---|---|---|
List of infoboxes | ||||
Style and help | ||||
Cleanup | ||||
| ||||
Building | ||||
To do | ||||
If an article already has aninfobox 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 toWikimedia Commons; seeWikipedia: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 | |
---|---|
![]() Wales in 2008 |
{{Infobox person|name=Jimmy Wales|image=Jimmy Wales Fundraiser Appeal edit.jpg|image_upright=.8|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".
Most infoboxes have been converted to use three or four separate parameters, as described above. There may still be some that do it the old way, where the image information is combined into only one or two parameters.
{{Infobox still using old parameters| image=| caption=}}
![]() The logo introduced in 2006 |
{{Infobox still using old parameters|clubname= Infobox Rovers|image=[[File:Football.svg|frameless|upright=.8|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 avertical bar "|", then stop before that).
If you've found "Infobox connector", as an example, then type "Template:Infobox connector" into the Wikipediasearch 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 | |
---|---|
![]() A typical result from this kind of error |
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|upright=.8|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 theWikipedia:Help desk, including the names of the article and the image.