Difference between revisions of "Template:Coin image box 1 double"
imported>Eubulides (Add alt text support as per WP:ALT.) |
imported>Eubulides (Document alt text.) |
||
| Line 8: | Line 8: | ||
|- | |- | ||
|width || 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". '''Highly recommend to use an even number.''' | |width || 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". '''Highly recommend to use an even number.''' | ||
| + | |- | ||
| + | |alt || recommended || empty || Alt text for readers who can't see the image; see [[WP:ALT]] | ||
|- | |- | ||
|caption_left || optional || ||rowspan="3"| Row/Border disappears if both missing | |caption_left || optional || ||rowspan="3"| Row/Border disappears if both missing | ||
| Line 26: | Line 28: | ||
| header = 500 Japanese yen | | header = 500 Japanese yen | ||
| image = Image:500JPY.JPG | | image = Image:500JPY.JPG | ||
| + | | alt = Two sides of a coin. The front contains a plant and the back contains "500" in big digits. | ||
| caption_left = Paulownia, state title, value | | caption_left = Paulownia, state title, value | ||
| caption_right = Value, bamboo, Mandarin orange, year of minting, latent image | | caption_right = Value, bamboo, Mandarin orange, year of minting, latent image | ||
| Line 39: | Line 42: | ||
| header = 500 Japanese yen | | header = 500 Japanese yen | ||
| image = Image:500JPY.JPG | | image = Image:500JPY.JPG | ||
| + | | alt = Two sides of a coin. The front contains a plant and the back contains "500" in big digits. | ||
| caption_left = Paulownia, state title, value | | caption_left = Paulownia, state title, value | ||
| caption_right = Value, bamboo, Mandarin orange, year of minting, latent image | | caption_right = Value, bamboo, Mandarin orange, year of minting, latent image | ||
| Line 54: | Line 58: | ||
| header = Extreme margin | | header = Extreme margin | ||
| image = Image:Example.png | | image = Image:Example.png | ||
| + | | alt = Example image | ||
| caption_left = [[Sun Yat-sen]] | | caption_left = [[Sun Yat-sen]] | ||
| caption_right = 50 圓 at the top, 50/五十 in the center | | caption_right = 50 圓 at the top, 50/五十 in the center | ||
| Line 67: | Line 72: | ||
| header = Extreme margin | | header = Extreme margin | ||
| image = Image:Example.png | | image = Image:Example.png | ||
| + | | alt = Example image | ||
| caption_left = [[Sun Yat-sen]] | | caption_left = [[Sun Yat-sen]] | ||
| caption_right = 50 圓 at the top, 50/五十 in the center | | caption_right = 50 圓 at the top, 50/五十 in the center | ||
Revision as of 22:09, 10 July 2009
| This template employs intricate features of template syntax.
You are encouraged to familiarise yourself with its setup and parser functions before editing the template. If your edit causes unexpected problems, please undo it quickly, as this template may appear on a large number of pages. You can conduct experiments, and should test all major changes, in either this template's sandbox, the general template sandbox, or your user space before changing anything here. |
| Parameter | Required? | Default | Remark / Example |
|---|---|---|---|
| header | optional | Row/Border disappears if missing | |
| image | required | Image:500JPY.JPGDo not put square bracket [[]]. Do not put "|100px" here. | |
| width | 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". Highly recommend to use an even number. | |
| alt | recommended | empty | Alt text for readers who can't see the image; see WP:ALT |
| 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) |
Contents
Examples
Parameters fully used (except background)
| 500 Japanese yen | |
|---|---|
| Paulownia, state title, value | Value, bamboo, Mandarin orange, year of minting, latent image |
| footer text here | |
Lorem ipsum dolor sit amet, consectetur adipiscing 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 1 double
| header = 500 Japanese yen
| image = Image:500JPY.JPG
| alt = Two sides of a coin. The front contains a plant and the back contains "500" in big digits.
| caption_left = Paulownia, state title, value
| caption_right = Value, bamboo, Mandarin orange, year of minting, latent image
| width = 200
| footer = footer text here
| position = right
| margin = 0
}}
{{lorem ipsum}}
|
| Extreme margin | |
|---|---|
| |
| Sun Yat-sen | 50 圓 at the top, 50/五十 in the center |
Lorem ipsum dolor sit amet, consectetur adipiscing 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 1 double
| header = Extreme margin
| image = Image:Example.png
| alt = Example image
| caption_left = [[Sun Yat-sen]]
| caption_right = 50 圓 at the top, 50/五十 in the center
| width = 150
| position = left
| margin = 20
| background = #CCCCFF
}}
{{lorem ipsum}}
|
