This is the template sandbox page for Template:Annotation (diff). See also the companion subpage for test cases. |
Creates an annotation for annotated images, for example in the diagram on the right the labels for the various extinctions are generated by Template:Annotation:
This template will malfunction unless used within the templates Annotated image or Annotated image 4. |
((Annotation | left (in px)| top (in px) | text | text-align=left | font-size-css=85% | font-weight=bold | font-family=Times New Roman | background-color=#ffcccee | color=blue |line-height=1))
where:
|font-size-css=85%
. Keep in mind that In no case should the resulting font size of any text drop below 85% of the page's default font size.(from MOS:SMALL)
Some of the parameters have alternative names that are used by containing templates to call Template:Annotation. The alternative names are provided in case the containing templates call other templates that use similar parameters.
These alternative names are provided so that the containing templates can provide default values for the corresponding parameters in Template:Annotation, and should not be used for any other purpose. Values specified using the basic parameter names listed above will over-ride the alternative names that are used by containing templates.
Here are the alternative names and the basic Template:Annotation parameters for which they set defaults:
Alternative name | Basic name |
---|---|
annot-text-align | text-align |
annot-font-size | font-size |
annot-font-weight | font-weight |
annot-font-family | font-family |
annot-background-color | background-color |
annot-color | color |
TemplateData for Annotation
This template's documentation is missing, inadequate, or does not accurately describe its functionality or the parameters in its code. Please help to expand and improve it. |