跳转到内容
打开/关闭菜单
  • 451 条目
  • 808 文件
  • 22 用户
  • 9241 编辑
Blockland Wiki
打开/关闭外观设置菜单
打开/关闭个人菜单
未登录
未登录用户的IP地址会在进行任意编辑后公开展示。

模板:Infobox country:修订间差异

来自Blockland Wiki
无编辑摘要
无编辑摘要
第16行: 第16行:
|Currency = String
|Currency = String
|Continent = String
|Continent = String
|Lat = Float
|Lng = Float
}}
}}
</noinclude><includeonly>{{Infobox
</noinclude><includeonly>{{Infobox
第21行: 第23行:
| bodystyle = width:23em; font-size:88%; line-height:1.5em; background:#fff; border:1px solid #a2a9b1; border-spacing:0;
| bodystyle = width:23em; font-size:88%; line-height:1.5em; background:#fff; border:1px solid #a2a9b1; border-spacing:0;


| abovestyle = background-color:#CCEEFF; font-weight:bold; padding:0.5em 0.5em 0.3em 0.5em; text-align:center;
| abovestyle = background-color:#CCEEFF; padding:0.5em; text-align:center; border-bottom:1px solid #a2a9b1;
| aboveclass = fn org
| aboveclass = fn org
| above = <div style="font-size:1.25em;">{{{国名全称|}}}</div><div style="font-size:1.05em; margin-top:0.1em;">{{{国名|{{PAGENAME}}}}}</div><div style="font-size:0.9em; font-weight:normal; margin-top:0.3em;">{{#if:{{{格言|}}}|“{{{格言}}}”}}<br/>{{#if:{{{国歌|}}}|《{{{国歌}}}》}}</div>
| above = <div style="font-size:1.25em; font-weight:bold;">{{{国名全称|}}}</div><div style="font-size:1.1em; font-weight:bold;">{{{国名|{{PAGENAME}}}}}</div><div style="font-size:0.9em; font-weight:normal; margin-top:0.2em; line-height:1.3em;">{{#if:{{{格言|}}}|<div style="font-style:italic;">“{{{格言}}}”</div>}}{{#if:{{{国歌|}}}|<div style="margin-top:0.1em;">《{{{国歌}}}》</div>}}</div>


| headerstyle = background-color:#f0f0f0; font-weight:bold; text-align:center; padding:4px; border-top:1px solid #a2a9b1; border-bottom:1px solid #a2a9b1;
| headerstyle = background-color:#f0f0f0; font-weight:bold; text-align:center; padding:4px; border-top:1px solid #a2a9b1; border-bottom:1px solid #a2a9b1;
第29行: 第31行:
| datastyle = vertical-align:top; text-align:left; padding:3px 0.5em; border:none;
| datastyle = vertical-align:top; text-align:left; padding:3px 0.5em; border:none;


| image1 = {{#if:{{{国旗图片|}}}|[[File:{{{国旗图片}}}|300px|alt={{{{国旗释义|}}}}]]}}
| image1 = {{#if:{{{国旗图片|}}}|[[File:{{{国旗图片}}}|300px|alt={{{国旗释义|}}}]]}}
| caption1 = {{{国旗释义|}}}
| caption1 = {{{国旗释义|}}}
| caption1style = padding:0.3em 0 0.6em 0; text-align:center; font-size:smaller;
| caption1style = padding:0.3em 0 0.6em 0; text-align:center; font-size:smaller;
第63行: 第65行:
| data32 = {{{历史事件2日期|}}}
| data32 = {{{历史事件2日期|}}}


| image2 = {{#if:{{{地图图片|}}}|[[File:{{{地图图片}}}|250px|alt=地图]]}}
| header35 = 地图标注
| caption2 = {{{地图说明|}}}
| data36 = {{#if:{{{纬度|}}}{{{经度|}}}|
| caption2style = padding:0 0 0.6em 0; text-align:center; font-size:smaller;
<div id="country-map-{{{国名|{{PAGENAME}}}}}" style="width:100%; height:200px; background:#ddd; border:1px solid #ccc; margin:5px 0;"></div>
<link rel="stylesheet" href="https://unpkg.com/[email protected]/dist/leaflet.css" />
<script src="https://unpkg.com/[email protected]/dist/leaflet.js"></script>
<script>
(function() {
    var lat = parseFloat("{{{纬度|0}}}");
    var lng = parseFloat("{{{经度|0}}}");
    var zoom = parseInt("{{{缩放|4}}}");
    var tiles = "http://blkl.fun//wp-content/uploads/arcgis_tiles/_alllayers0408";
   
    var map = L.map("country-map-{{{国名|{{PAGENAME}}}}}" , {
        zoomControl: false,
        attributionControl: false,
        maxZoom: 9,
        minZoom: 1
    }).setView([lat, lng], zoom);
 
    L.TileLayer.ArcGISLocal = L.TileLayer.extend({
        getTileUrl: function(coords) {
            var z = coords.z;
            var x = coords.x;
            var y = coords.y;
            // 补零逻辑适配你提供的 ArcGIS 路径格式
            var sz = z.toString().padStart(2, '0');
            var sy = y.toString(16).padStart(8, '0');
            var sx = x.toString(16).padStart(8, '0');
            return tiles + "/L" + sz + "/R" + sy + "/C" + sx + ".png";
        }
    });
 
    new L.TileLayer.ArcGISLocal().addTo(map);
   
    var icon = L.divIcon({
        html: '<div style="color:#ff3b30;"><span style="font-size:24px;">📍</span></div>',
        className: '',
        iconSize: [24, 24],
        iconAnchor: [12, 24]
    });
    L.marker([lat, lng], {icon: icon}).addTo(map);
})();
</script>
| {{#if:{{{地图图片|}}}|[[File:{{{地图图片}}}|250px]]<br/><small>{{{地图说明|}}}</small>}} }}


| header40 = 地理与人口
| header40 = 地理与人口
第111行: 第154行:
|GDP_PerCapita = {{{人均GDP|}}}
|GDP_PerCapita = {{{人均GDP|}}}
|Currency = {{{货币|}}}
|Currency = {{{货币|}}}
}}[[分类:国家]]</includeonly><noinclude>
|Lat = {{{纬度|}}}
{{Documentation}}
|Lng = {{{经度|}}}
</noinclude>
}}[[分类:国家]]</includeonly>

2026年5月10日 (日) 12:21的版本

此模板定义表格“Countries”。 查看表格.