Template:ImageNoteColors

From Electowiki
Revision as of 03:21, 27 January 2019 by Psephomancy (talk | contribs) (1 revision imported: copy image annotator templates and dependencies from Wikimedia Commons)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search
Template documentation[view] [edit] [history] [purge]

This template is used by ImageAnnotator, version 2. It can be used to specify for an image the colors ImageAnnotator shall use for the note rectangles in cases where the defaults colors are not appropriate. To have an effect, a transclusion of the template must be placed on the file description page.

A note rectangle has two borders, an outer and an inner border. To highlight the active rectangle (the one whose note is shown), the outer border's color is set to the active color. All three colors can be specified with this template.

{{ImageNoteColors|inner=green|outer=#666666|active=blue}}

This would result in green note rectangles that would get a blue border when highlighted. All parameters are optional.