个人工具

模板:Map

出自Meshal Lite

跳转到: 导航, 搜索
第1行: 第1行:
<includeonly><div class="litemap-container" style="width:{{#ifeq: {{{width|100%}}}||100%|{{{width|100%}}}}}; height:{{#ifeq: {{{height|600px}}}||600px|{{{height|600px}}}}}; {{{containerstyle|}}}"><div class="litemap-labelLayer" style="width:{{#ifeq: {{{width|100%}}}||100%|{{{width|100%}}}}}; height:{{#ifeq: {{{height|600px}}}||600px|{{{height|600px}}}}};">{{{2|{{{label|}}}}}}</div><div class="litemap-imageLayer" style="width:{{#ifeq: {{{width|100%}}}||100%|{{{width|100%}}}}}; height:{{#ifeq: {{{height|600px}}}||600px|{{{height|600px}}}}};"><div style="position: absolute; left: {{#ifeq: {{{offx|0}}}||0|{{{offx|0}}}}}; top: {{#ifeq: {{{offy|0}}}||0|{{{offy|0}}}}}; width: max-content; zoom: {{#ifeq: {{{scale|100%}}}||100%|{{{scale|100%}}}}};{{{imgstyle|}}}">{{{1|{{{src|}}}}}}</div></div>
+
<includeonly><div class="litemap-container" style="width:{{#ifeq: {{{width|100%}}}||100%|{{{width|100%}}}}}; height:{{#ifeq: {{{height|600px}}}||600px|{{{height|600px}}}}}; {{{containerstyle|}}}"><div class="litemap-labelLayer" style="width:{{#ifeq: {{{width|100%}}}||100%|{{{width|100%}}}}}; height:{{#ifeq: {{{height|600px}}}||600px|{{{height|600px}}}}};">{{{2|{{{label|}}}}}}</div><div class="litemap-imageLayer" style="width:{{#ifeq: {{{width|100%}}}||100%|{{{width|100%}}}}}; height:{{#ifeq: {{{height|600px}}}||600px|{{{height|600px}}}}};"><div style="position: absolute; left: {{#ifeq: {{{offx|0}}}||0|{{{offx|0}}}}}; top: {{#ifeq: {{{offy|0}}}||0|{{{offy|0}}}}}; width: max-content; zoom: {{#ifeq: {{{scale|100%}}}||100%|{{{scale|100%}}}}}; transform: rotate({{{rotate|0}}}deg) translateZ(0); {{{imgstyle|}}}">{{{1|{{{src|}}}}}}</div></div>
 
</div></includeonly><noinclude>[[category:模板]]
 
</div></includeonly><noinclude>[[category:模板]]
 
这个模板用来嵌入一张地图,可以调整地图的尺寸和位置,并有一个标注层可供添加标注。
 
这个模板用来嵌入一张地图,可以调整地图的尺寸和位置,并有一个标注层可供添加标注。
第20行: 第20行:
 
地图的缩放比例,可以为百分数或浮点数。
 
地图的缩放比例,可以为百分数或浮点数。
 
*默认为100%
 
*默认为100%
 +
}}
 +
 +
{{block|rotate|
 +
地图图片的旋转度数。
 +
*默认为0
 
}}
 
}}
  

在2018年5月3日 (四) 06:03所做的修订版本