Template:Text-superimpose/doc

From the AARoads Wiki: Read about the road before you go
Jump to navigation Jump to search

Use this template to superimpose some text over an image.

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 for 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

Example

{{Text-superimpose
|align        = left
|x            = 123
|y            = 140
|base_img     = Athabasca Oil Sands map.png
|base_width   = 280px
|base_caption = Oil Sands
|float_text   = <div class="center">☉<br><small><span style="line-height: 10px;">'''[[Wabasca, Alberta|Wabasca]]'''<br>[[Oil field]]</span></small></div>
|text_size    =1.3em
}}

{{Text-superimpose
|align        = right
|x            = 17
|y            = 32
|base_img     = MA Route 77.svg
|base_width   = 64px
|base_caption = Highway 77
|float_text   = '''[[British Columbia Highway 77|77]]'''
|text_size    = 2em
}}