User:Aristeas/Colour space
Jump to navigation
Jump to search
A personal template for use with my photographs and scans. This template generates an extension of the standard {{Information}} box in order to display the colour space used by the picture.
This template should be used directly below the general {{Information}} template; if we don’t add a blank line in between, the new box is visually merged with the {{Information}} box. If the standard {{Location}} or {{Location withheld}} template is also used, it should go between the other templates, i.e. the best order is {{Information}}, {{Location}}, finally this template.
For hints about the implementation, please see my credits template.
Parameters[edit]
- Required: a short colour space name, e.g.
sRGB
orAdobeRGB
.- If no/an empty value is used, we print an error message.
- If the value
sRGB
is used, we link to a Wikipedia article about that colour space and auto-categorite the file into Category:SRGB images. This is the most common case, because sRGB is still used as the lowest common denominator of colour spaces. - If the value
AdobeRGB
is used, we link to a Wikipedia article about the Adobe RGB colour space and auto-categorize the file into Category:AdobeRGB photographs. - If the value
DisplayP3
is used, we link to a Wikipedia article about the Display P3 colour space. - If the value
WideGamut
is used, we link to a Wikipedia article about the Adobe Wide Gamut RGB color space. - If the value
ProPhoto
is used, we link to a Wikipedia article about the ProPhoto RGB (ROMM RGB) color space. - With any other non-empty value, we assume that the value is the name of some other specific colour space; we mention the name and link to a general Wikipedia article about RGB colour spaces.
Template preview[edit]
Color space | Colour space parameter missing! (Fortunately today most systems and applications respect colour spaces and ICC profiles. But there may still be some exceptions: outdated or misconfigured software can display wrong colours. If you see strange colours or if the picture appears flat and low in contrast, you should try another application or device for viewing it.) |