模板:Infobox settlement:修订间差异
来自Blockland Wiki
更多操作
无编辑摘要 标签:手工回退 已被回退 |
无编辑摘要 标签:手工回退 |
||
| 第1行: | 第1行: | ||
{{Infobox | {{Infobox | ||
| bodyclass = geography vcard | | bodyclass = geography vcard | ||
| bodystyle = width:23em | | bodystyle = width:23em; font-size: 88%; border: 1px solid #a2a9b1; border-spacing: 0; line-height: 1.5em; background-color: #fff; color: #202122; | ||
| abovestyle = font-size:1. | <!-- ==================== 顶部样式 ==================== --> | ||
| abovestyle = background-color: #f8f9fa; font-size: 1.45em; font-weight: bold; padding: 5px; border-bottom: 1px solid #a2a9b1; | |||
| above = {{{name|{{{official_name|{{PAGENAMEBASE}}}}}}}} | | above = {{{name|{{{official_name|{{PAGENAMEBASE}}}}}}}} | ||
{{#if:{{{native_name|}}}|<br /><span class="nickname">{{{native_name}}}</span>}} | {{#if:{{{native_name|}}}|<br /><span class="nickname" style="font-size:0.85em; font-weight:normal;">{{{native_name}}}</span>}} | ||
| subheaderstyle = background-color:#cddeff; font-weight:bold; | <!-- 蓝色分类条 --> | ||
| subheaderstyle = background-color: #cddeff; font-weight: bold; padding: 2px; border-bottom: 1px solid #a2a9b1; | |||
| subheader = {{#if:{{{settlement_type|{{{type|}}}}}}|<span class="category">{{{settlement_type|{{{type}}}}}}</span>}} | | subheader = {{#if:{{{settlement_type|{{{type|}}}}}}|<span class="category">{{{settlement_type|{{{type}}}}}}</span>}} | ||
<!-- 图片 --> | |||
| image1 = {{#if:{{{image|}}}|{{#invoke:InfoboxImage|InfoboxImage|image={{{image|}}}|size={{{image_size|250px}}}|alt={{{image_alt|}}}}}}} | | image1 = {{#if:{{{image|}}}|{{#invoke:InfoboxImage|InfoboxImage|image={{{image|}}}|size={{{image_size|250px}}}|alt={{{image_alt|}}}}}}} | ||
| caption1 = {{{image_caption|}}} | | caption1 = {{{image_caption|}}} | ||
| caption1style = padding: 0.5em 0; border-bottom: 1px solid #a2a9b1; | |||
| image2 = {{#if:{{{image_map|}}}|{{#invoke:InfoboxImage|InfoboxImage|image={{{image_map|}}}|size={{{map_size|250px}}}|alt={{{map_alt|}}}}}}} | | image2 = {{#if:{{{image_map|}}}|{{#invoke:InfoboxImage|InfoboxImage|image={{{image_map|}}}|size={{{map_size|250px}}}|alt={{{map_alt|}}}}}}} | ||
| caption2 = {{{map_caption|}}} | | caption2 = {{{map_caption|}}} | ||
| caption2style = padding: 0.5em 0; border-bottom: 1px solid #a2a9b1; | |||
<!-- ==================== | <!-- ==================== 关键样式设置 ==================== --> | ||
<!-- | <!-- labelstyle: 顶端对齐(关键),固定宽度,极淡背景,加粗,底部细灰线 --> | ||
| | | labelstyle = vertical-align: top; text-align: left; width: 6.5em; padding: 4px 6px; background-color: #f5f7f9; font-weight: bold; border-bottom: 1px solid #a2a9b1; color: #004090; | ||
<!-- datastyle: 顶端对齐,左对齐,底部细灰线 --> | |||
| | | datastyle = vertical-align: top; text-align: left; padding: 4px 8px; border-bottom: 1px solid #a2a9b1; | ||
<!-- | <!-- ==================== 基础信息 (标准行) ==================== --> | ||
| | | label1 = 国家 | ||
| | | data1 = {{{subdivision_name|}}} | ||
| | | label2 = 行政区 | ||
| data2 = {{{subdivision_name1|}}} | |||
| | <!-- ==================== 政府 (合并行) ==================== --> | ||
| | <!-- 这一行复刻图中“政府”:左边是政府,右边是多行列表 --> | ||
| | | label3 = 政府 | ||
| data3 = {{#if:{{{seat_type|}}}{{{seat|}}}{{{leader_title|}}}{{{leader_name|}}}| | |||
<div style="display:table; width:100%;"> | |||
{{#if:{{{seat_type|}}}{{{seat|}}}| | |||
<div style="display:table-row"><div style="display:table-cell; white-space:nowrap; padding-right:0.5em;">• {{{seat_type|类型}}}</div><div style="display:table-cell">{{{seat|}}}</div></div> | |||
}} | |||
{{#if:{{{subdivision_type|}}}{{{subdivision_name|}}}|<!-- 这里的逻辑根据你实际需求调整,我是模拟图中的结构 --> | |||
<div style="display:table-row"><div style="display:table-cell; white-space:nowrap; padding-right:0.5em;">• 行政机构</div><div style="display:table-cell">这里填机构名</div></div> | |||
}} | |||
{{#if:{{{leader_title|}}}{{{leader_name|}}}| | |||
<div style="display:table-row"><div style="display:table-cell; white-space:nowrap; padding-right:0.5em;">• {{{leader_title|市长}}}</div><div style="display:table-cell">{{{leader_name|}}}</div></div> | |||
}} | |||
</div> | |||
}} | |||
<!-- ==================== 面积 ==================== --> | <!-- ==================== 面积 (合并行) ==================== --> | ||
| label4 = 面积 | |||
| | | data4 = {{#if:{{{area_total_km2|}}}{{{area_land_km2|}}}| | ||
<div style="display:table; width:100%;"> | |||
{{#if:{{{area_total_km2|}}}| | |||
<div style="display:table-row"><div style="display:table-cell; white-space:nowrap; padding-right:0.5em;">• {{{area_total_type|总计}}}</div><div style="display:table-cell">{{{area_total_km2}}} km²</div></div> | |||
}} | |||
{{#if:{{{area_land_km2|}}}| | |||
<div style="display:table-row"><div style="display:table-cell; white-space:nowrap; padding-right:0.5em;">• 陆地</div><div style="display:table-cell">{{{area_land_km2}}} km²</div></div> | |||
}} | |||
</div> | |||
}} | |||
<!-- | <!-- ==================== 海拔 (标准行) ==================== --> | ||
| | | label5 = 海拔 | ||
| | | data5 = {{#if:{{{elevation_m|}}}|{{{elevation_m}}} 米}} | ||
| | |||
| | <!-- ==================== 人口 (合并行) ==================== --> | ||
| | | label6 = 人口 {{#if:{{{population_as_of|}}}|<br/><span style="font-weight:normal; font-size:0.85em">({{{population_as_of}}})</span>}} | ||
| | | data6 = {{#if:{{{population_total|}}}{{{population_density_km2|}}}{{{population_metro|}}}| | ||
<div style="display:table; width:100%;"> | |||
{{#if:{{{population_total|}}}| | |||
<div style="display:table-row"><div style="display:table-cell; white-space:nowrap; padding-right:0.5em;">• {{{population_total_type|总计}}}</div><div style="display:table-cell">{{{population_total}}}人</div></div> | |||
}} | |||
{{#if:{{{population_density_km2|}}}| | |||
<div style="display:table-row"><div style="display:table-cell; white-space:nowrap; padding-right:0.5em;">• 密度</div><div style="display:table-cell">{{{population_density_km2}}}/km²</div></div> | |||
}} | |||
{{#if:{{{population_metro|}}}| | |||
<div style="display:table-row"><div style="display:table-cell; white-space:nowrap; padding-right:0.5em;">• 城市群</div><div style="display:table-cell">{{{population_metro}}}</div></div> | |||
}} | |||
</div> | |||
}} | |||
| | <!-- ==================== 城市象征 (标准行列表) ==================== --> | ||
| | | label20 ={{{blank1_name|}}} | ||
| | | data20 = {{{blank1_info|}}} | ||
| label21 ={{{blank2_name|}}} | |||
| data21 = {{{blank2_info|}}} | |||
| label22 ={{{blank3_name|}}} | |||
| data22 = {{{blank3_info|}}} | |||
<!-- ==================== | <!-- ==================== 经济 (标准行列表) ==================== --> | ||
| | | label30 = GDP <small>(城市)</small> | ||
| | | data30 = {{{gdp_total|}}} | ||
| | | label31 = 人均GDP | ||
| data31 = {{{gdp_per_capita|}}} | |||
<!-- ==================== | <!-- ==================== 网站 ==================== --> | ||
| label40 = 网站 | |||
| data40 = {{{website|}}} | |||
| | |||
| | |||
}} | }} | ||
2025年11月19日 (三) 20:38的版本
| Infobox settlement |
|---|