Template:Infobox/image/doc
From Eureka Wiki
< Template:Infobox | image
Jump to navigation
Jump to search
|
|
This is a documentation subpage for Template:Infobox/image. It contains usage information, categories, interlanguage links and other content that is not part of the original template page. |
Usage[edit source]
This template is used to built an infobox from bricks. The {{Infobox/image}} template is used to add an image inside an infobox.
Syntax[edit source]
Copy/past the following inside your infobox template:
{{Infobox/startbox}}
{{Infobox/image|image name|caption|size in px|alternate text|colspan value|link}}
{{Infobox/endbox}}
Parameters[edit source]
| Parameter | Mandatory | Default value | Explanation |
|---|---|---|---|
| {{{1|}}} | No | N/A | Used to add the image filename inside the infobox. Example: {{infobox/image|myimage.svg}}
|
| {{{2|}}} | No | N/A | Used to add a caption below the image. Example: {{infobox/image|myimage.svg|Boat perspective in 1904.}}. If default parameter is null, no caption appears.
|
| {{{3|}}} | No | 280 | Used to modify the image size in pixels. Don't add px, just the number. Example: {{infobox/image|myimage.svg|Boat perspective in 1904.|100}}. This template forbids an image size above 280 px.
|
| {{{4|}}} | No | Image about the {{PAGENAME}} article | Used to modify the image alt inside the infobox. Example: {{infobox/image|myimage.svg|Boat perspective in 1904.|100|Image representing this}}.
|
| {{{5|}}} | No | 2 | Used to modify colspan value inside the infobox. Example: {{infobox/image|myimage.svg|Boat perspective in 1904.|100|Image representing this|3}}.
|
| {{{6|}}} | No | N/A | Used to add a link on the image. Example: {{infobox/image|myimage.svg|Boat perspective in 1904.|100|Image representing this|3|http://www.google.com}}.
|
| {{{7|}}} | No | N/A | Used to put the non-imaged article inside the Category:Article requested images subcategory. If the paramater is Global Dynamics room, the article will have a Category:Article requested images of Global Dynamics room category. |
Example[edit source]
Basic example[edit source]
{{Infobox/startbox}}
{{Infobox/title|Title}}
{{Infobox/image|Global Dynamics logo.jpg|''Global Dynamics'' logo.|280|Global Dynamics logo.}}
{{Infobox/endbox}}
|
| ||||
Example inside a template[edit source]
{{Infobox/startbox}}
{{Infobox/title
| Title
}}
{{Infobox/image
| {{{image|}}}|{{{caption|}}}|280|Image of this
}}
{{Infobox/endbox}}


