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

模板:Infobox settlement:修订间差异

来自Blockland Wiki
无编辑摘要
无编辑摘要
标签:已被回退
第1行: 第1行:
<includeonly>{{Infobox
<noinclude>
{{#cargo_declare:
_table = Countries
|Name = Page
|FullName = String
|Capital = Page
|MajorCity = Page
|OfficialLanguage = String
|GovType = String
|HeadOfState = String
|HeadOfGov = String
|Area = Float
|Population = Float
|GDP_Nominal = Float
|GDP_PerCapita = Float
|Currency = String
|Continent = String
|Lat = Float
|Lng = Float
}}
</noinclude><includeonly>{{Infobox
| bodyclass = geography vcard ve-infobox-country
| bodyclass = geography vcard ve-infobox-country
| 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:#f8f9fa; font-size:1.25em; font-weight:bold; border-top:1px solid #a2a9b1; border-bottom:1px solid #a2a9b1; padding:5px;
| abovestyle = background-color:#CCEEFF; padding:0.5em; text-align:center; border-bottom:1px solid #a2a9b1;
| aboveclass = fn org
| aboveclass = fn org
| above = {{#if:{{{官方名称|{{{名称|}}}}}}|{{{官方名称|{{{名称}}}}}}|{{PAGENAME}}}}<br/>{{#if:{{{当地名称|}}}|<span class="nickname" style="font-size:0.85em; font-weight:normal">{{{当地名称}}}</span>}}
| 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>


| subheaderstyle = background-color:#CDDEFF; font-weight:bold; border-bottom:1px solid #a2a9b1; padding:3px; margin-top:-1px;
| headerstyle = background-color:#f0f0f0; font-weight:bold; text-align:center; padding:4px; border-top:1px solid #a2a9b1; border-bottom:1px solid #a2a9b1;
| subheader = {{#if:{{{聚居地类型|{{{类型|}}}}}}|<span class="category">{{{聚居地类型|{{{类型}}}}}}</span>}}
| labelstyle = width:6.5em; white-space:nowrap; vertical-align:top; text-align:left; padding:3px 0.5em; border:none; color:#000000;
| subheader2style = font-size:90%; font-style:italic; padding:3px;
| datastyle = vertical-align:top; text-align:left; padding:3px 0.5em; border:none;
| subheader2 = {{#if:{{{格言|}}}|“{{{格言}}}”}}


| image1 = {{#if:{{{天际线图片|{{{图片|}}}}}}|[[File:{{{天际线图片|{{{图片}}}}}}|{{#if:{{{图片尺寸|}}}|{{{图片尺寸}}}|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;


| image2 = {{#if:{{{旗帜图片|}}}{{{徽章图片|}}}|
| header10 = 基本信息
<table style="width:100%; background:transparent; border-collapse:collapse;">
| label11 = 首都
<tr>
| data11 = {{{首都|}}}
{{#if:{{{旗帜图片|}}}|<td style="text-align:center; border:none; padding:5px;">[[File:{{{旗帜图片}}}|border|100x65px|alt=旗帜]]<br/><small>[[{{{旗帜链接|旗帜}}}|旗帜]]</small></td>}}
| label12 = 最大城市
{{#if:{{{徽章图片|}}}|<td style="text-align:center; border:none; padding:5px;">[[File:{{{徽章图片}}}|85x85px|alt=徽章]]<br/><small>[[{{{徽章链接|徽章}}}|徽章]]</small></td>}}
| data12 = {{{最大城市|}}}
</tr>
| label13 = 官方语言
</table>}}
| data13 = {{{官方语言|}}}
 
| label14 = 官方文字
| headerstyle = background-color:#f0f0f0; font-weight:bold; text-align:center; padding:4px; border-top:1px solid #a2a9b1; border-bottom:1px solid #a2a9b1;
| data14 = {{{官方文字|}}}
| labelstyle = width:6.5em; white-space:nowrap; vertical-align:top; text-align:left; padding:3px 0.5em; border:none; color:#000000;
| label15 = 族群
| datastyle = vertical-align:top; text-align:left; padding:3px 0.5em; border:none;
| data15 = {{{族群|}}}
| label16 = 国名释义
| data16 = {{{国名释义|}}}


| image3 = {{#if:{{{地图图片|}}}|[[File:{{{地图图片}}}|250px|alt=地图]]<br/><small>{{{地图说明|}}}</small>}}
| header20 = 政治体制
| label21 = 政府形式
| data21 = {{{政府形式|}}}
| label22 = {{{元首称谓|总统}}}
| data22 = {{{元首|}}}
| label23 = {{{政府首脑称谓|总理}}}
| data23 = {{{政府首脑|}}}
| label24 = 立法机构
| data24 = {{{立法机构|}}}


| header10 = {{#if:{{{行政区1|}}}{{{国家|}}}{{{隶属势力|}}}{{{省|}}}{{{市|}}}{{{区|}}}{{{下辖区划|}}}{{{城市地位|}}}|行政区划}}
| header30 = 历史沿革
| label11 = {{{行政区类型1|国家 / 势力}}}
| label31 = {{{历史事件1名称|建立}}}
| data11 = {{{行政区1|{{{国家|{{{隶属势力|}}}}}}}}}
| data31 = {{{历史事件1日期|}}}
| label12 = {{{行政区类型2|一级行政区}}}
| label32 = {{{历史事件2名称|独立}}}
| data12 = {{{行政区2|{{{省|}}}}}}
| data32 = {{{历史事件2日期|}}}
| label13 = {{{行政区类型3|二级行政区}}}
| data13 = {{{行政区3|{{{市|}}}}}}
| label14 = {{{行政区类型4|三级行政区}}}
| data14 = {{{行政区4|{{{区|}}}}}}
| label15 = 下辖区划
| data15 = {{{下辖区划|}}}
| label16 = 城市地位
| data16 = {{{城市地位|}}}


| header20 = {{#if:{{{命名来源|}}}{{{建立者|}}}{{{建立日期|}}}{{{设市日期|}}}{{{废弃日期|}}}{{{毁灭日期|}}}{{{重大事件|}}}|历史沿革}}
| header35 = 地图标注
| label21 = 命名来源
| data36 = {{#if:{{{纬度|}}}{{{经度|}}}|
| data21 = {{{命名来源|}}}
<div id="country-map-{{{国名|{{PAGENAME}}}}}" style="width:100%; height:200px; background:#ddd; border:1px solid #ccc; margin:5px 0;"></div>
| label22 = 建立者
<link rel="stylesheet" href="https://unpkg.com/[email protected]/dist/leaflet.css" />
| data22 = {{{建立者|}}}
<script src="https://unpkg.com/[email protected]/dist/leaflet.js"></script>
| label23 = {{{建立事件|建立日期}}}
<script>
| data23 = {{{建立日期|}}}
(function() {
| label24 = 设市日期
    var lat = parseFloat("{{{纬度|0}}}");
| data24 = {{{设市日期|}}}
    var lng = parseFloat("{{{经度|0}}}");
| label25 = 废弃/毁灭日
    var zoom = parseInt("{{{缩放|4}}}");
| data25 = {{{废弃日期|{{{毁灭日期|}}}}}}
    var tiles = "http://blkl.fun//wp-content/uploads/arcgis_tiles/_alllayers0408";
| label26 = 重大事件
   
| data26 = {{{重大事件|}}}
    var map = L.map("country-map-{{{国名|{{PAGENAME}}}}}" , {
        zoomControl: false,
        attributionControl: false,
        maxZoom: 9,
        minZoom: 1
    }).setView([lat, lng], zoom);


| header30 = {{#if:{{{政府驻地|}}}{{{领导人姓名|}}}{{{市长|}}}{{{领导人姓名2|}}}{{{立法机构|}}}{{{执政党|}}}{{{派系|}}}|政府机构}}
    L.TileLayer.ArcGISLocal = L.TileLayer.extend({
| label31 = 政府驻地
        getTileUrl: function(coords) {
| data31 = {{{政府驻地|}}}
            var z = coords.z;
| label32 = {{{领导人头衔|行政长官}}}
            var x = coords.x;
| data32 = {{{领导人姓名|{{{市长|}}}}}}
            var y = coords.y;
| label33 = {{{领导人头衔2|副职}}}
            // 补零逻辑适配你提供的 ArcGIS 路径格式
| data33 = {{{领导人姓名2|}}}
            var sz = z.toString().padStart(2, '0');
| label34 = 立法机构
            var sy = y.toString(16).padStart(8, '0');
| data34 = {{{立法机构|}}}
            var sx = x.toString(16).padStart(8, '0');
| label35 = 执政党/派系
            return tiles + "/L" + sz + "/R" + sy + "/C" + sx + ".png";
| data35 = {{{执政党|{{{派系|}}}}}}
        }
    });


| header40 = {{#if:{{{地理坐标|}}}{{{坐标|}}}{{{总面积|}}}{{{陆地面积|}}}{{{水域面积|}}}{{{海拔|}}}{{{最高点|}}}{{{最低点|}}}{{{气候类型|}}}{{{年均气温|}}}|地理与环境}}
    new L.TileLayer.ArcGISLocal().addTo(map);
| label41 = 坐标
   
| data41 = {{{地理坐标|{{{坐标|}}}}}}
    var icon = L.divIcon({
| label42 = 总面积
        html: '<div style="color:#ff3b30;"><span style="font-size:24px;">📍</span></div>',
| data42 = {{#if:{{{总面积|}}}|{{{总面积}}} km²}}
        className: '',
| label43 = &nbsp;• 陆地
        iconSize: [24, 24],
| data43 = {{#if:{{{陆地面积|}}}|{{{陆地面积}}} km²}}
        iconAnchor: [12, 24]
| label44 = &nbsp;• 水域
    });
| data44 = {{#if:{{{水域面积|}}}|{{{水域面积}}} km²}}
    L.marker([lat, lng], {icon: icon}).addTo(map);
| label45 = 平均海拔
})();
| data45 = {{#if:{{{海拔|}}}|{{{海拔}}} m}}
</script>
| label46 = 最高点
| {{#if:{{{地图图片|}}}|[[File:{{{地图图片}}}|250px]]<br/><small>{{{地图说明|}}}</small>}} }}
| data46 = {{{最高点|}}}
| label47 = 最低点
| data47 = {{{最低点|}}}
| label48 = 气候类型
| data48 = {{{气候类型|}}}
| label49 = 年均气温
| data49 = {{{年均气温|}}}


| header50 = {{#if:{{{总人口|}}}{{{都会区人口|}}}{{{主要语言|}}}{{{种族|}}}{{{族群|}}}|人口 {{#if:{{{人口年份|}}}|<span style="font-weight:normal; font-size:smaller;">({{{人口年份}}})</span>}}}}
| header40 = 地理与人口
| label51 = 总人口
| label41 = 总面积
| data51 = {{{总人口|}}}
| data41 = {{#if:{{{总面积|}}}|约{{{总面积}}} km²}}
| label52 = 密度
| label42 = 总人口
| data52 = {{#if:{{{人口密度|}}}|{{{人口密度}}}/km²}}
| data42 = {{#if:{{{总人口|}}}|{{{总人口}}} 万人 {{#if:{{{人口年份|}}}|({{{人口年份}}})}}}}
| label53 = 居民称谓
| label43 = 人口密度
| data53 = {{{居民称谓|}}}
| data43 = {{#ifexpr: {{{总面积|0}}} > 0 and {{{总人口|0}}} > 0 | {{#expr: {{{总人口}}} * 10000 / {{{总面积}}} round 1}} 人/km² | 不适用 }}
| label54 = 都会区人口
| data54 = {{{都会区人口|}}}
| label55 = 主要语言
| data55 = {{{主要语言|}}}
| label56 = 种族/族群
| data56 = {{{种族|{{{族群|}}}}}}


| header60 = {{#if:{{{GDP|}}}{{{人均GDP|}}}{{{货币|}}}{{{主要产业|}}}{{{轨道交通|}}}{{{地铁|}}}{{{枢纽机场|}}}|经济与基建}}
| header50 = 经济
| label61 = GDP
| label51 = 总GDP
| data61 = {{{GDP|}}}
| data51 = {{#if:{{{GDP (名义)|}}}|{{{GDP (名义)}}}({{{经济年份|}}}年)[[世界币]]}}
| label62 = 人均GDP
| label52 = 人均GDP
| data62 = {{{人均GDP|}}}
| data52 = {{#if:{{{人均GDP|}}}|{{{人均GDP}}}({{{经济年份|}}}年)[[世界币]]}}
| label63 = 法定货币
| label53 = 法定货币
| data63 = {{{货币|}}}
| data53 = {{{货币|}}}
| label64 = 主要产业
| data64 = {{{主要产业|}}}
| label65 = 轨道交通
| data65 = {{{轨道交通|{{{地铁|}}}}}}
| label66 = 枢纽机场
| data66 = {{{枢纽机场|}}}


| header70 = {{#if:{{{时区|}}}{{{邮政编码|}}}{{{电话区号|}}}{{{车牌代码|}}}{{{网站|}}}{{{官网|}}}|其他信息}}
| header60 = 其他信息
| label71 = 时区
| label61 = 时区
| data71 = {{{时区|}}}
| data61 = {{{时区|}}}
| label72 = 邮政编码
| label62 = 国际电话区号
| data72 = {{{邮政编码|}}}
| data62 = {{{国际电话区号|}}}
| label73 = 电话区号
| label63 = 国家代码
| data73 = {{{电话区号|}}}
| data63 = {{{国家代码|}}}
| label74 = 车牌代码
| label64 = 域名后缀
| data74 = {{{车牌代码|}}}
| data64 = {{{网站域名后缀|}}}
| label75 = 官方网站
| data75 = {{{网站|{{{官网|}}}}}}


| belowstyle = border-top:1px solid #a2a9b1; background-color:#f9f9f9; padding:0.4em; text-align:left; font-size:85%; line-height:1.2em; color:#555;
| belowstyle = border-top:1px solid #a2a9b1; background-color:#f9f9f9; padding:0.4em; text-align:left; font-size:85%; line-height:1.2em; color:#555;
| below = {{{脚注|}}}
| below = {{{脚注|}}}
}}[[分类:城市]]</includeonly><noinclude>
}}
{{Documentation}}
{{#cargo_store:
</noinclude>
_table = Countries
|Name = {{PAGENAME}}
|FullName = {{{国名全称|}}}
|Capital = {{{首都|}}}
|MajorCity = {{{最大城市|}}}
|OfficialLanguage = {{{官方语言|}}}
|GovType = {{{政府形式|}}}
|HeadOfState = {{{元首|}}}
|HeadOfGov = {{{政府首脑|}}}
|Area = {{{总面积|}}}
|Population = {{{总人口|}}}
|GDP_Nominal = {{{GDP (名义)|}}}
|GDP_PerCapita = {{{人均GDP|}}}
|Currency = {{{货币|}}}
|Lat = {{{纬度|}}}
|Lng = {{{经度|}}}
}}[[分类:国家]]</includeonly>

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

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