Difference between revisions of "Template:Coin image box 2 singles/doc"

From blackwiki
Jump to navigation Jump to search
imported>Spiderjerky
imported>Sardanaphalus
(category, template name)
Line 1: Line 1:
 
{{Documentation subpage}}
 
{{Documentation subpage}}
<!-- PLEASE ADD CATEGORIES AND INTERWIKIS AT THE BOTTOM OF THIS PAGE -->
+
<!-- PLEASE ADD CATEGORIES WHERE INDICATED AT THE BOTTOM OF THIS PAGE -->
{{esoteric}}
+
{{Intricate template}}
  
 
=== Usage ===
 
=== Usage ===
Line 121: Line 121:
 
</pre>
 
</pre>
  
=== See also ===
+
===See also===
 
 
 
* {{tl|Coin image box 1 double}}
 
* {{tl|Coin image box 1 double}}
 
* {{tl|Coin image box 8 singles}}
 
* {{tl|Coin image box 8 singles}}
Line 129: Line 128:
  
 
<includeonly>
 
<includeonly>
<!-- CATEGORIES AND INTERWIKIS HERE, THANKS -->
+
<!-- CATEGORIES BELOW THIS LINE, PLEASE: -->
[[Category:Graphics templates|{{PAGENAME}}]]
+
[[Category:Image formatting and function templates]]
[[Category:Numismatics utility templates|{{PAGENAME}}]]
+
[[Category:Numismatics utility templates]]
  
 
[[ro:Format:Coin image box 2 singles]]
 
[[ro:Format:Coin image box 2 singles]]
 
</includeonly>
 
</includeonly>

Revision as of 22:56, 18 January 2015

Usage

Parameter Required? Default Remark / Example
header optional Row/Border disappears if missing
image_left required
Image:2003 Sacagawea Obv.png
Do not put square 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)

Examples

Parameters fully used (except background)

1 Swiss franc 1983
90px90px
Obverse Reverse
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 2 singles
| header = 1 Swiss franc 1983
| 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}}

Extreme margin, no footer, background

Extreme margin
100px100px
O: Head of Mars with Corinthian helmet left R: Horse head right, grain ear behind

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 2 singles
| header = Extreme margin
| 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}}

No margin specified (default = 4), no position, different width

150px100px
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
}}

See also