Welcome to Assassin's Creed Wiki! Log in and join the community.

Template:Text superimpose: Difference between revisions

From the Assassin's Creed Wiki
Jump to navigation Jump to search
imported>Jasca Ducato
m 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;..."
 
imported>Jasca Ducato
mNo edit summary
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><noinclude>
<pre>
{{Text superimpose
|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 =
}}
</pre>
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
 
Header text will always appear on the image; leaving it blank will cause the default "Text?" to show.
Content text is not required; if it is not given it will remain blank.
 
Image caption will also remain blank until specified.
 
All other parameters will show the default if left blank.
</noinclude>

Revision as of 03:40, 23 June 2011

Text?
{{Text superimpose
|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


Header text will always appear on the image; leaving it blank will cause the default "Text?" to show.

Content text is not required; if it is not given it will remain blank.

Image caption will also remain blank until specified.

All other parameters will show the default if left blank.