Шаблон:Text-superimpose

Материал из Department of Theoretical and Applied Mechanics
Версия от 22:31, 15 января 2015; Spiderjerky (обсуждение)

(разн.) ← Предыдущая | Текущая версия (разн.) | Следующая → (разн.)
Перейти к: навигация, поиск
{{{float_text}}}
[[Image:{{{base_img}}}|{{{base_width}}}|]]

Use this template to overimpose 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

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



Highway 77
{{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
}}