Template:Superimpose/doc

From Uncyclopedia, the content-free encyclopedia
Jump to navigation Jump to search
This is a documentation subpage for Template:Superimpose.
It contains usage information, categories and other content that is not part of the original template page.
To view the template page itself, see Template:Superimpose.

Description

Graphics template that superimposes images. Wikipedia uses it primarily for maps, but superimposition is also used in comedy: googly eyes, devil horns, Groucho glasses…

Usage

Two main parameters are expected: |base= for the base image, and |float= for the image atop. |width= sets the widths for both images at once, or |base_width= and |float_width= can be set separately. |x= and |y= position the floating image atop the base image, where (0, 0) is the top left corner. The rest of the parameters should be self-evident.

Tips

Images of different sizes may be annoying to align.

Images with transparent backgrounds – SVGs work well for this – superimpose cleanly. Base images can have solid backgrounds though.

Parameter list

{{Superimpose
  | align = 
  | width = 
  | base = 
  | base_width = 
  | base_alt = 
  | base_caption = 
  | base_link = 
  | float = 
  | float_alt = 
  | float_width = 
  | float_caption = 
  | float_link = 
  | x = 
  | y = 
}}

Examples

Example 1

Superimpose File:Groucho glasses.svg on File:Sophia (Nude).png, disabling links to file pages with an empty |base_link=

{{Superimpose
|base=Sophia (Nude).png
|base_link=
|float=Groucho glasses.svg
|float_width=80px
|x=40
|y=15
}}

Example 2

Superimpose File:Prohibition sign.svg on File:Peanut.png, give a caption of "No peanuts!" (when hovered over with a mouse), and link to Peanut allergy (when the image is clicked anywhere)

{{Superimpose
|width=100px
|base=Peanut.png
|base_caption=No peanuts!
|base_link=Peanut allergy
|float=Prohibition sign.svg
|float_caption=No peanuts!
|float_link=Peanut allergy
}}

Example 3

Example 2, without the frills

{{Superimpose
|width=100px
|base=Peanut.png
|float=Prohibition sign.svg
}}

History

From wikipedia:Template:Superimpose.