Welcome to our new Skyland! Article rewrites are welcome. If you see any missing images, please feel free to add them. Please use the Aboutfile template when uploading and add categories.
We are also aware of some articles being unavailable. Please bear with us while we are working to get them fixed.

Template:Overlay

From Skylanders Wiki

Syntax

{{overlay|content=<content>|layer=<content>|x=<posx>|y=<posy>}}

This template is used to display content with overlays.

Preview code

{{overlay|content=[[File:Spyro.jpg|200px]]|layer=[[File:MagicSymbolSkylanders.png|50px]]|x=0|y=150}}

Resulting in an image of Spyro (resized to 200px) with an overlay of the Magic Symbol (resized to 50px) at x=0, y=150.

Multiple layers

View/Hide Section

For multiple layers of content, you appropriately enough need to use multiple layers of overlay templates.

Example syntax

Yields 3 overlays over the original content.

{{overlay|content=
 {{overlay|content=
  {{overlay|content=<content>
  |layer=<content>|x=<posx>|y=<posy>}}
 |layer=<content>|x=<posx>|y=<posy>}}
|layer=<content>|x=<posx>|y=<posy>}}

Multiple layers example

Picture of Doom Jet with 2 overlays: An Earth Symbol and Air Symbol. (Air is 1 layer above Earth)

{{overlay|content=
 {{overlay|content=[[File:Doom_Swap_02.png|200px]]
 |layer=[[File:EarthSymbolSkylanders.png|50px]]|x=150|y=0}}
|layer=[[File:AirSymbolSkylanders.png|50px]]|x=0|y=150}}

Result: