Templat:Infobox map: Perbedaan antara revisi

Konten dihapus Konten ditambahkan
Farras (bicara | kontrib)
baru
 
k Robot: Perubahan kosmetika
 
(2 revisi perantara oleh satu pengguna lainnya tidak ditampilkan)
Baris 1:
<includeonly>{{#ifeq:{{{map|}}}||{{error|Error: no map specified when using {{tl|Infobox map}}}}}}
{{#if:{{{map|}}}
|{{#if:{{#ifexist:Module:Location map/data/{{{map|}}}|1|{{#ifexist:Template:Location map {{{map|}}}|1}}}}
| {{Locationlocation map
| {{{map}}}
| relief = {{{relief|}}}
| width overlay_image = {{ifempty|{{{map_widthoverlay|}}}|220}}
| alt width = {{{map_altmap_width|}}}
| default_width = {{#if:{{{default_width|}}}|{{{default_width}}}|220}}
| label = {{{label|}}}
| caption = <!-- no value assigned but it must be declaredspecified, see Location{{location map}} -->
| mark = {{ifempty|{{{mark|}}}|Red pog.svg}}
| marksize alt = {{ifempty|{{{mark_widthmap_alt|}}}|8}}
| float = center
| background = {{{background|}}}
| position label = {{lc:{{{label_positionlabel|}}} }}
| lat background = {{{latbackground|}}}
| long position = {{lc:{long{{label_position|}}} }}
| mark = {{#if:{{{mark|}}}|{{{mark}}}|Red pog.svg}}
| border = none
| float_widthmarksize = {{ifempty|#if:{{{mark_width|}}}|{{{mark_width}}}|8}}px
| float = center
| baselink = {{{mapmark_link|}}}
| caption = <!-- no value assigned but it must be declared, see Location map -->
| baselat = {{{maplat|}}}
| xlat_deg = {{{pixel_xlat_deg|}}}
| ylat_min = {{{pixel_ylat_min|}}}
| lat_sec = {{{lat_sec|}}}
| lat_dir = {{{lat_dir|}}}
| long = {{{long|}}}
| lon_deg = {{{lon_deg|}}}
| lon_min = {{{lon_min|}}}
| lon_sec = {{{lon_sec|}}}
| lon_dir = {{{lon_dir|}}}
}}
| {{#if:{{{pixel_x|}}}{{{pixel_y|}}}
| {{center | {{superimpose
{{#if: | base = {{{map|}}}
| base_width = {{#if:{{{map_width|}}}|{{{map_width}}}|{{#if:{{{default_width|}}}|{{{default_width}}}|220}}}}px
| base_alt = {{ifempty|#if:{{{map_alt|}}}|{{{map_alt}}}|{{{map|}}}}}
| float = {{ifempty|#if:{{{mark|}}}|{{{mark}}}|Red pog.svg}}
| float_width = {{ifempty|#if:{{{mark_width|}}}|{{{mark_width}}}|8}}px
| x = {{{pixel_x|}}}
| y = {{{pixel_y|}}}
}} }}
| {{location mark+
| image = {{{map|}}}
| overlay = {{{overlay|}}}
| width = {{#if:{{{map_width|}}}|{{{map_width}}}|{{#if:{{{default_width|}}}|{{{default_width}}}|220}}}}
| caption =
| alt = {{{map_alt|}}}
| float = center
| type = <!-- default is not a thumb & no border -->
| marks = {{location mark~
| width = {{#if:{{{map_width|}}}|{{{map_width}}}|{{#if:{{{default_width|}}}|{{{default_width}}}|220}}}}
| label = {{{label|}}}
| position = {{lc:{{{label_position|}}} }}
| font_size =
| background = {{{background|}}}
| mark = {{ifempty|#if:{{{mark|}}}|{{{mark}}}|Red pog.svg}}
| base_altmark_width = {{ifempty|#if:{{{map_altmark_width|}}}|{{{map|mark_width}}}|8}}
| mark_alt = {{{mark_alt|}}}
| mark_link = {{{mark_link|}}}
| x = {{{x|}}}
| y = {{{y|}}}
| x% = {{{x%|}}}
| floaty% = {{ifempty|{{{marky%|}}}|Red pog.svg}}
}}
}}
| <div align="center">{{if both|{{{x|}}}|{{{y|}}}<!--create map based an a map 1000 pixels wide -->
}}{{{map_caption|}}}{{main other|{{#if:{{#ifeq:{{{map|}}}||1}}{{{pixel_x|}}}{{{pixel_y|}}}|[[Kategori:Pages using Template:Infobox map needing attention]]}}}}</includeonly><noinclude>
| {{Superimpose
}}<noinclude>{{documentation}}
| base = {{{map|}}}
| base_width = {{ifempty|{{{map_width|}}}|220}}px
| base_alt = {{ifempty|{{{map_alt|}}}|{{{map|}}}}}
| float = {{ifempty|{{{mark|}}}|Red pog.svg}}
| float_width = {{ifempty|{{{mark_width|}}}|8}}px
| x = {{#expr:{{ifempty|{{{map_width|}}}|220}} / 1000 * {{{x|}}} - {{ifempty{{{marker_width|}}}|8}} / 2}}
| y = {{#expr:{{ifempty|{{{map_width|}}}|220}} / 1000 * {{{y|}}} - {{ifempty{{{marker_width|}}}|8}} / 2}}
}}
| {{Superimpose
| base = {{{map|}}}
| base_width = {{ifempty|{{{map_width|}}}|220}}px
| base_alt = {{ifempty|{{{map_alt|}}}|{{{map|}}}}}
| float = {{ifempty|{{{mark|}}}|Red pog.svg}}
| float_width = {{ifempty|{{{mark_width|}}}|8}}px
| x = {{{pixel_x|}}}
| y = {{{pixel_y|}}}
}}
}}</div>
}}{{{map_caption|}}}
}}<noinclude>{{documentation}}
<!--
PLEASE ADD CATEGORIES AND INTERWIKIS
TO THE /doc SUBPAGE, THANKS
-->
</noinclude>