Difference between revisions of "Template:Atlas"
Jump to navigation
Jump to search
m (User:SignpostMarv Martin/Template:Atlas moved to Template:Atlas: template is relatively "done") |
(created basic manual) |
||
Line 3: | Line 3: | ||
}} | }} | ||
<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> | <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 == | ||
* 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 === | |||
<nowiki>{{Atlas|Agni|256|512|512|256}}</nowiki> | |||
{{Atlas|Agni|256|512|512|256}} | |||
</noinclude> |
Revision as of 21:16, 6 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
- 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
{{Atlas|Agni|256|512|512|256}}