Jump to content

Template:Annotated Image/doc: Difference between revisions

Content deleted Content added
Created page with "{{Documentation subpage}} <!-- PLEASE ADD CATEGORIES AT THE BOTTOM OF THIS PAGE --> This template allows the addition of explanatory notes to images in the form of actual text (which can also contain links), which is usually more legible than text built into the image – especially if the image is reduced to thumbnail size. Other uses include cropping an image to exclude unimportant parts and perhaps enlarge important parts, and internationalisation, as the annota..."
 
No edit summary
 
(One intermediate revision by the same user not shown)
Line 106: Line 106:


===Internationalisation===
===Internationalisation===
This template makes internationalisation easy; the text is already separate from the image, so it is easy to translate the text and, if necessary, move pieces of text, as the lengths of the same text in different languages can vary a lot. For example, [[:nl:Sjabloon:Zijbalk mariene extincties]], the Dutch version of [[Template:Annotated image/Extinction]], is widely used.
This template makes internationalisation easy; the text is already separate from the image, so it is easy to translate the text and, if necessary, move pieces of text, as the lengths of the same text in different languages can vary a lot. For example, [[:nl:Sjabloon:Zijbalk mariene extincties]], the Dutch version of [[Template:Annotated Image/Extinction]], is widely used.


===Examples===
===Examples===
[[Template:Annotated image/Extinction]]
[[Template:Annotated Image/Extinction]]


====Adding explanatory notes====
====Adding explanatory notes====
See [[Template:Annotated image/doc/Samples]].
See [[Template:Annotated Image/doc/Samples]].


====Cropping====
====Cropping====
Line 122: Line 122:


<syntaxhighlight lang="wikitext" style="overflow:auto;">
<syntaxhighlight lang="wikitext" style="overflow:auto;">
{{Annotated image
{{Annotated Image
| image = Mona Lisa color restoration2.jpg
| image = Mona Lisa color restoration2.jpg
| image-width = 1000 <!-- This number does not affect the image's display – it simply serves to provide a [[lowest common denominator|denominator]] for the numbers in the following 4 lines, resulting in four [[fraction]]s. It has no connection with the actual number of pixels in the image. -->
| image-width = 1000 <!-- This number does not affect the image's display – it simply serves to provide a [[lowest common denominator|denominator]] for the numbers in the following 4 lines, resulting in four [[fraction]]s. It has no connection with the actual number of pixels in the image. -->
Line 136: Line 136:
The result is a 250 pixels x 250 pixels area from the 1000 pixels-wide image (remember, the actual width of the image in Commons is irrelevant). Masking has been applied to 400 pixels at the top, 425 pixels at the left side, 125 pixels at the bottom and 125 pixels at the right side.
The result is a 250 pixels x 250 pixels area from the 1000 pixels-wide image (remember, the actual width of the image in Commons is irrelevant). Masking has been applied to 400 pixels at the top, 425 pixels at the left side, 125 pixels at the bottom and 125 pixels at the right side.
<div style="clear: all;"></div>
<div style="clear: all;"></div>
{{Annotated image
{{Annotated Image
| image = Mona Lisa color restoration2.jpg
| image = Mona Lisa color restoration2.jpg
| image-width = 1000
| image-width = 1000
Line 153: Line 153:
===Subpages (templates based on this template)===
===Subpages (templates based on this template)===
This list is automatically generated and updated. Redirects are shown in ''italics''.
This list is automatically generated and updated. Redirects are shown in ''italics''.
{{Special:Prefixindex/Template:Annotated image/}}
{{Special:Prefixindex/Template:Annotated Image/}}


===See also===
===See also===