Template:Text-superimpose

From Wikipedia, the free encyclopedia

{{{float_text}}}
[[Image:{{{base_img}}}|{{{base_width}}}|{{{base_caption}}}]]

Use this template to overimpose some text over an image.

[edit] Usage

{{Text-superimpose
|align        = 
|x            = 
|y            = 
|base_img     = 
|base_width   = 
|base_caption = 
|float_text   = 
|text_size    =
}}

The template will place an image with a superimposed text:

  • align - left, right; alignment of image in article
  • x, y - position of text inside image; in pixels, from the upper left corner
  • base_img - background image file; use just the name, without the "Image:" tag
  • base_width - width of background image in pixels
  • base caption - alternative text fo background image, if left blank, the image name will be used
  • float_text - text to be superimposed on background image; can contain some formating (bold, italic, line breaks) and wikilinks
  • text_size - size of superimposed text; in pixels, em, or specified (small,large); if left blank, normal size text will be used

[edit] Example

6
Highway 6
{{Text-superimpose
|align        = left
|x            = 12
|y            = 29
|base_img     = AB-provincial highway.png
|base_width   = 48px
|base_caption = Highway 6
|float_text   = 6
|text_size    = 3em
}}

Highway 77
{{Text-superimpose
|align        = right
|x            = 17
|y            = 32
|base_img     = BC-Road-blank.png
|base_width   = 64px
|base_caption = Highway 77
|float_text   = '''[[British Columbia provincial highway 77|77]]'''
|text_size    = 2em
}}