Jump to content

Template:Image label custom/doc

From Wikipedia, the free encyclopedia

This template is intended for use with Template:Image label begin and Template:Image label end. For an overview of their use, examples, best practices, and alternative templates, see Template:Image label begin/doc.

This template creates text labels over an image when used between {{Image label begin}} and {{Image label end}}. It is based on Template:Image label but allows for changing font size and more.

Parameter Explanation
x The point on the x-axis on which the text will start (it will be the text's top-left corner). The value is always between 0 and 1, with 0 being the left edge and 1 being the right edge of the image.
y The point on the y-axis on which the text will start (it will be the text's top-left corner). The value is always between 0 and 1, with 0 being the top edge and 1 being the bottom edge of the image.
scale This should likely correspond to the size specified in Template:image label begin. It is a value in pixels which the coordinates will scale to. This way, the overall image can change size while maintaining labels in the correct position.
size (Optional) Font size. Accepts any CSS font-size property values (but do not include a semicolon).
font-stretch (Optional) Font stretch. Accepts any valid CSS font-stretch property values (but do not include a semicolon).
bold (Optional) Bold text. Default is no. The only recognized value is "yes", which will result in bold text.
border (Optional) Border around the text. Default is none. Use value "yes" for a basic 1px solid border. Otherwise, if any value is given it will be treated as the CSS property border (but do not include a semicolon).
padding (Optional) padding. Default is none. Treated as the CSS padding property (but do not include a semicolon).
extra (Optional) Additional style of the label. Can contain a valid CSS property if needed.
text Text of the label. Can contain wikilinks.