Difference between revisions of "Template:Atlas"

From Second Life Wiki
Jump to navigation Jump to search
m (debugging)
(added meta parameter)
 
(9 intermediate revisions by the same user not shown)
Line 2: Line 2:
|{{#vardefine:image|Agni.jpg}}
|{{#vardefine:image|Agni.jpg}}
}}
}}
{{{1}}}
<div class="map" style="position:relative;width:{{{width|256}}}px;height:{{{height|256}}}px;">{{#if:{{{meta|}}}|<div class="meta" style="position:absolute;top:0;left:0;width:{{{width|256}}};height:{{{height|256}}}px;z-index:2;">{{{meta}}}</div>|}}<div style="z-index:1;width:{{{width|256}}}px;height:{{{width|256}}}px;position:absolute;margin-left:-{{{5|0}}}px;margin-top:-{{{2|0}}}px;clip: rect({{{2|0}}}px {{{3|256}}}px {{{4|256}}}px {{{5|0}}}px);">[[Image:{{#var:image}}]]</div></div></includeonly><noinclude>
<div class="map" style="position:relative;width:{{{width|256}}}px;height:{{{height|256}}}px;"><div style="width:{{{width|256}}}px;height:{{{width|256}}}px;position:absolute;margin-left:-{{{5|0}}}px;margin-top:-{{{2|0}}}px;clip: rect({{{2|0}}}px {{{3|256}}}px {{{4|256}}}px {{{5|0}}}px);">[[Image:{{#var:image}}]]</div></div></includeonly><noinclude>
== Usage ==
{{:User:SignpostMarv Martin/Template:Atlas|Agni|256|512|512|256}}</noinclude>
* width: integer
** specifies the width of the map
** defaults to 256
* height: integer
** specifies the height of the map
** defaults to 256
# Grid name
#* Agni
# top: integer
# right: integer
#* Should be the "width" added to the "left"
# bottom: integer
#* Should be the "height" added to the "top"
# left: integer
 
=== Examples ===
==== Main Landmass ====
<nowiki>{{Atlas/Main Landmass}}</nowiki>
{{Atlas/Main Landmass}}
 
==== General Usage ====
<nowiki>{{Atlas|Agni|256|512|512|256}}</nowiki>
{{Atlas|Agni|256|512|512|256}}
 
</noinclude>

Latest revision as of 02:31, 9 January 2008

Usage

  • width: integer
    • specifies the width of the map
    • defaults to 256
  • height: integer
    • specifies the height of the map
    • defaults to 256
  1. Grid name
    • Agni
  2. top: integer
  3. right: integer
    • Should be the "width" added to the "left"
  4. bottom: integer
    • Should be the "height" added to the "top"
  5. left: integer

Examples

Main Landmass

{{Atlas/Main Landmass}}

Heterocera Atoll
Sansara
Agni.jpg

General Usage

{{Atlas|Agni|256|512|512|256}}

Agni.jpg