Malline:Superimpose2
Ulkoasu

Tätä mallinetta on pyydetty parannettavaksi. Voit auttaa Wikipediaa parantamalla mallinetta. Lisää tietoa saattaa olla keskustelusivulla. Syy: Tämän mallineen ohje on siirretty metasivulta ja muokattu botilla. Ohje saattaa sisältää tarpeetonta koodia, olla huonosti jäsennelty tai muuten korjausta vaativa. Lisätietoja täällä. |
Käyttötarkoitus
[muokkaa wikitekstiä]Ohje
[muokkaa wikitekstiä]Tämän mallineen avulla voi sijoittaa kuvan toisen kuvan päälle haluttuun kohtaan. Malline sopii esimerkiksi kaupungin sijainnin osoittamiseen tyhjällä karttapohjalla. Malline tukee enimmillään 50 kuvakerrosta.
Koodi
[muokkaa wikitekstiä]{{Superimpose2 | base = | base_width = px | base_alt = | base_link = | float = | float_width = px | float_alt = | link = | x = | y = | float2 = | float2_width = px | float2_alt = | link2 = | x2 = | y2 = | float3 = | float3_width = px | float3_alt = | link3 = | x3 = | y3 = }}
- Esimerkki
{{Superimpose2 | base = Hong Kong Railway Route Map blank.svg | base_width = 250px | base_alt = Hong Kong MTR system map | base_link = MTR | float = Red Dot.svg | float_width = 10px | float_alt = Kam Sheung Road | link = Kam Sheung Road Station | x = 107 | y = 80 | float2 = Green Dot.svg | float2_width = 10px | float2_alt = Quarry Bay | link2 = Quarry Bay Station | x2 = 200 | y2 = 180 }}
- Mallineen parametrit
- base: File name of the base (bottom) image
- base_width: Width to display the base image, in pixels
- base_alt: alt attribute for the base image, text for visually impaired readers; see WP:ALT for properly written alt text
- base_link: Linking for the base image
- float: File name of the 1st layer image
- float_width: Width to display the 1st layer image, in pixels
- float_alt: alt attribute for the 1st layer image
- x: distance to offset the 1st layer image from the left edge of the base image, in pixels or any other CSS-standard units
- y: distance to offset the 1st layer image from the top edge of the base image, in pixels or any other CSS-standard units
- link: Linking for the 1st layer image
- When applying the 2nd ~ 50th layer, add the number after all of the words float, x, y and link of floating image-related parameters to indicate their layer order as shown in the example. The image of the greater number will always appears over the smaller number layer.
- Note for users changing template from the original {{Superimpose}}: The caption parameters are substituted by alt parameters completely. Since Superimpose templates do not support thumbnail image, effectively defeats the purpose of caption entry.