Da Wikipedia, l'enciclopedia libera.
|
Questo template contiene uno o più parametri opzionali. Nel suo codice impiega alcune caratteristiche relativamente complesse o "esoteriche".
Per favore, non tentare di modificarlo se non sei certo di capirne la funzione e se non sei preparato a riparare ogni conseguente danno collaterale nel caso in cui i risultati fossero diversi da quanto avevi in mente. Tutti gli esperimenti devono essere prima condotti nella Sandbox dedicata.
|
Parameter |
Required? |
Default |
Remark / Example |
header |
optional |
|
Row/Border disappears if missing |
hbkg |
opzionale |
|
Determina il colore dello sfondo dell'eventuale Header; si ricorda che il colore standard del progetto è #ABCDEF. In sua assenza lo sfondo è bianco |
image_left |
required |
|
Image:2003 Sacagawea Obv.png
Do not put sqaure bracket [[ ]]. Do not put "|100px" here. |
image_right |
required |
|
width_left |
recommended |
|
Recommended because it can prevent lengthy text to inadvertently enlarge the box. See examples below for the reason why we need 2 instances of width. Just an integer, not "100px" |
width_right |
recommended |
|
caption_left |
optional |
|
Row/Border disappears if both missing |
caption_right |
optional |
|
footer |
optional |
|
position |
optional |
(none) |
left or right |
margin |
optional |
4(px) |
Just put an integer, not "4px", not "4em" |
background |
optional |
(none) |
#CCCCFF (please don't put quotation mark) |
La sintassi completa è
{{Coin image box 2 singles
| header =
| hbkg =
| image_left =
| image_right=
| caption_left =
| caption_right =
| width_left =
| width_right =
| footer =
| position =
| margin = 0
}}
[modifica] Parameters fully utilized (except background)
1 Swiss franc 1983 |
|
Obverse |
Reverse |
footer text here |
Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
{{Coin image box 2 singles
| header = 1 Swiss franc 1983
| hbkg =
| image_left = Image:Example.png
| image_right= Image:Example.png
| caption_left = Obverse
| caption_right = Reverse
| width_left = 90
| width_right = 90
| footer = footer text here
| position = right
| margin = 0
}}
{{lorem ipsum}}
|
[modifica] Extreme margin, no footer, background
Extreme margin |
|
O: Head of Mars with Corinthian helmet left |
R: Horse head right, grain ear behind |
Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
{{Coin image box 2 singles
| header = Extreme margin
| hbkg =
| image_left = Image:Crawford 13-1 Obverse.jpg
| image_right= Image:Crawford 13-1 Reverse.jpg
| caption_left = [[Obverse and reverse|'''O: ''']] Head of Mars with Corinthian helmet left
| caption_right = [[Obverse and reverse|'''R: ''']] Horse head right, grain ear behind
| width_left = 100
| width_right = 100
| position = left
| margin = 20
| background = #CCCCFF
}}
{{lorem ipsum}}
|
[modifica] No margin specified (default = 4), no position, different width
|
150 and 100 px |
Different widths are required in this case because the right image is the width of the coin while the left image has extra white space. The image with more white space requires a larger width to make the coin diameters look identical in size. It is best demonstrated by "selecting all" (Ctrl-A on most Windows browsers, and apple-A on Mac). This width must be computed with the aid of image processing software to measure the amount of white space.
{{Coin image box 2 singles
| image_left= Image:Example.png
| image_right = Image:Example.png
| width_left = 150
| width_right = 100
| footer = 150 and 100 px
}}