Difference between revisions of "Template:Image label"
m ((just a test)) |
|||
Line 1: | Line 1: | ||
− | <includeonly><div style="position: absolute; left: {{{x}}} px; top: {{{y}}} px;">{{{text}}}</div></includeonly | + | <includeonly><div style="position: absolute; left:{{#expr: {{{x|0}}} * {{{scale|1}}} - 6}}px; top: {{#expr: {{{y|0}}} * {{{scale|1}}} - 8}}px;">{{{text}}}</div></includeonly> |
− | |||
* '''x''': (coordinate for horizontal placement of text. Values between 0 and 1) | * '''x''': (coordinate for horizontal placement of text. Values between 0 and 1) | ||
− | * '''y''': (coordinate for vertical placement of text. Values between 0 and 1) | + | * '''y''': (coordinate for vertical placement of text. Values between 0 and 1) |
− | * '''text''': Text content | + | * '''scale''': <nowiki>{{{size|scale of text, given the pixel width of text}}}</nowiki> |
+ | * '''text''': Text content</p> | ||
{| | {| |
Revision as of 14:05, March 28, 2008
- x: (coordinate for horizontal placement of text. Values between 0 and 1)
- y: (coordinate for vertical placement of text. Values between 0 and 1)
- scale: {{{size|scale of text, given the pixel width of text}}}
- text: Text content</p>
Code | |
---|---|
<div style="float: {{{float|none}}}; clear: {{{float|none}}}; position: relative; font-size: 7pt; line-height: 10px;"></tt> | |