Difference between revisions of "Template:TextImage"
Jump to navigation
Jump to search
(Created page with "<div style="float:{{{align|center}}}; border:0px; border-color:CCCCCC; margin:0px;"><div style="position: relative; width: {{{image width|200}}};"><div style="position: absolute; font-size:{{{header text_size|}}}; color:{{{header text_color|}}}; left: {{{header x|310}}}px; top: {{{header y|20}}}px; padding: 0;">{{{header text|Text?}}}</div><div style="position: absolute; font-size:{{{content text_size|}}}; color:{{{content text_color|}}}; left: {{{content x|310}}}px; top...") |
|||
(One intermediate revision by the same user not shown) | |||
Line 1: | Line 1: | ||
<div style="float:{{{align|center}}}; border:0px; border-color:CCCCCC; margin:0px;"><div style="position: relative; width: {{{image width|200}}};"><div style="position: absolute; font-size:{{{header text_size|}}}; color:{{{header text_color|}}}; left: {{{header x|310}}}px; top: {{{header y|20}}}px; padding: 0;">{{{header text|Text?}}}</div><div style="position: absolute; font-size:{{{content text_size|}}}; color:{{{content text_color|}}}; left: {{{content x|310}}}px; top: {{{content y|40}}}px; padding: 0;">{{{content text|}}}</div>[[File:{{{base image|example.jpg|}}}|{{{image width|200}}}px|{{{image align|center}}}|{{{image caption|}}}]]</div></div> | <div style="float:{{{align|center}}}; border:0px; border-color:CCCCCC; margin:0px;"><div style="position: relative; width: {{{image width|200}}};"><div style="position: absolute; font-size:{{{header text_size|}}}; color:{{{header text_color|}}}; left: {{{header x|310}}}px; top: {{{header y|20}}}px; padding: 0;">{{{header text|Text?}}}</div><div style="position: absolute; font-size:{{{content text_size|}}}; color:{{{content text_color|}}}; left: {{{content x|310}}}px; top: {{{content y|40}}}px; padding: 0;">{{{content text|}}}</div>[[File:{{{base image|example.jpg|}}}|{{{image width|200}}}px|{{{image align|center}}}|{{{image caption|}}}]]</div></div> | ||
<!---- | |||
usage: | |||
{{TextImage | |||
|base image = | |||
|image width = | |||
|image align = | |||
|image caption = | |||
|header x = | |||
|header y = | |||
|header text = | |||
|header text_size = | |||
|header text_color = | |||
|content x = | |||
|content y = | |||
|content text = | |||
|content text_size = | |||
|content text_color = | |||
}} | |||
The template will place an image with superimposed text on a page: | |||
* x, y - position of text across page; in pixels, from the upper left corner | |||
* base image - background image file; use just the name, without the "File:" tag | |||
* image width - width of background image in pixels | |||
* image align - position of image on the page; (left/right/center) | |||
* image caption- the caption you want to appear with your image | |||
* header/content text - text to be superimposed on background image; can contain some formatting (bold, italic, line breaks) and wikilinks | |||
* header/content text_size - size of superimposed text; in pixels, em, or specified (small,large); if left blank, normal size text will be used | |||
* header/content text_color - color of the superimposed text; in hexadecimal code | |||
---> |
Latest revision as of 01:10, 4 July 2022
Text?