Difference between revisions of "Template:InfoBox"
(→Image) |
|||
Line 254: | Line 254: | ||
</pre> | </pre> | ||
Result:{{InfoBox|image=Template_InfoBox_ExampleImage.jpg|caption=The men in this picture are strange.||ImageSize=10x10|float=none}} | Result:{{InfoBox|image=Template_InfoBox_ExampleImage.jpg|caption=The men in this picture are strange.||ImageSize=10x10|float=none}} | ||
− | + | ==== Link of the image ==== | |
− | === | + | If the image you give souaitez is really big, you can upload the same image with a width of 200px and use the link parameter to associate the big picture. |
− | ---- | + | Example : The big image est "CFX-9850GB_PLUS.jpg" and the same small image is "CFX-9850GB_PLUS-w200.jpg" |
+ | <pre>{{InfoBox | ||
+ | |image=CFX-9850GB_PLUS-w200.jpg | ||
+ | |caption=This is the big image in small | ||
+ | |ImageLink=CFX-9850GB_PLUS.jpg | ||
+ | }}</pre> | ||
+ | [[CFX-9850|Click here]] to see the result. | ||
=== Title === | === Title === | ||
---- | ---- | ||
By default this template takes the page title as the title, but you can change it. | By default this template takes the page title as the title, but you can change it. | ||
</noinclude> | </noinclude> |
Revision as of 07:42, May 27, 2012
The InfoBox lets you create a table to display the general technical information about the subject of the page, as on the right.
Contents
InfoBox Dedicated
This type of InfsoBox is dedicated to a theme. If you find the name of your page in these subjects prefer this type of InfsoBo rather than personalized. list of InfoBox Dedicated
Personalized InfoBox
Minimal call
You do not need to specify parameters, but it has no interest because only the title and an early picture appears :
{{InfoBox}}
Result:
Image
It is highly recommended if possible to add an image. If it is more than 200px wide, it will be reduced to this size. You must add a caption.
{{InfoBox |image=Template_InfoBox_ExampleImage.jpg |caption=The men in this picture are strange. }}
result:
Resize the image
Add the parameter "ImageSize" with this value:
- {width} — Resizes the image to fit within the given maximum width in pixels, without restricting its height;
- x{height} — Resizes the image to fit within the given maximum height in pixels, without restricting its width;
- {width}x{height} — Resizes the image to fit within the given width and height in pixels;
Example :
{{InfoBox |image=Template_InfoBox_ExampleImage.jpg |caption=The men in this picture are strange. |ImageSize=10x10 }}
Result:
Link of the image
If the image you give souaitez is really big, you can upload the same image with a width of 200px and use the link parameter to associate the big picture. Example : The big image est "CFX-9850GB_PLUS.jpg" and the same small image is "CFX-9850GB_PLUS-w200.jpg"
{{InfoBox |image=CFX-9850GB_PLUS-w200.jpg |caption=This is the big image in small |ImageLink=CFX-9850GB_PLUS.jpg }}
Click here to see the result.
Title
By default this template takes the page title as the title, but you can change it.