模板:Infobox Ideology:修订间差异
来自Blockland Wiki
更多操作
无编辑摘要 |
无编辑摘要 |
||
| 第13行: | 第13行: | ||
}} | }} | ||
</noinclude><includeonly>{{Infobox | </noinclude><includeonly>{{Infobox | ||
| bodyclass = ve-infobox-ideology | | bodyclass = ve-infobox-ideology | ||
| bodystyle = width: 320px; border: none; box-shadow: 0 4px 12px rgba(0,0,0,0.15); border-radius: 8px; overflow: hidden; background: var(--background-color-surface, #fff); font-family: sans-serif; | |||
| above = {{{名称|{{PAGENAME}}}}}<br><span style="font-size: | /* ———— 顶部通栏:使用代表色作为背景,文字强制白色 ———— */ | ||
| abovestyle = background-color: {{{代表色|#333}}}; color: #fff; font-size: 1.5em; padding: 15px 10px; text-shadow: 0 1px 3px rgba(0,0,0,0.3); border-bottom: 3px solid rgba(0,0,0,0.1); | |||
| above = {{{名称|{{PAGENAME}}}}}<br><span style="font-size: 0.6em; opacity: 0.8; font-weight: normal; text-transform: uppercase; letter-spacing: 1px;">{{{原生名称|}}}</span> | |||
| | /* ———— 图片区域 ———— */ | ||
| | | imagestyle = padding: 20px 0 10px 0; background: var(--background-color-neutral-subtle, #f9f9f9); | ||
| image = {{#if:{{{图片|{{{image|}}}}}}|[[File:{{{图片|{{{image}}}}}}|180px|alt={{{名称|{{{name|}}}}}}]]}} | |||
| caption = {{{图片说明|{{{caption|}}}}}} | |||
/* ———— 罗盘区域:作为一个“仪表盘”插入 ———— */ | |||
| | | header1 = <div style="display:none;"></div> | ||
| data2 = {{#if:{{{经济坐标|}}}{{{政治坐标|}}}| | |||
<div style="background: var(--background-color-base, #fff); padding: 15px; border-top: 1px solid var(--border-color-subtle, #eee); border-bottom: 1px solid var(--border-color-subtle, #eee);"> | |||
| | <div style="text-align:center; color: var(--color-subtle, #aaa); font-size: 0.75em; letter-spacing: 2px; margin-bottom: 10px; text-transform: uppercase;">Political Compass</div> | ||
<div style="width: 200px; margin: 0 auto;"> | |||
{{IdeologyCompass | {{IdeologyCompass | ||
| width = 100% | | width = 100% | ||
| x = {{{经济坐标|0}}} | | x = {{{经济坐标|0}}} | ||
| y = {{{政治坐标|0}}} | | y = {{{政治坐标|0}}} | ||
| label = {{{ | | label = | icon = {{{图标|}}} | ||
| | | color = {{{代表色|#333}}} | ||
}} | |||
<div style="text-align:center; font-size: | </div> | ||
<div style="display: flex; justify-content: center; margin-top: 15px; gap: 20px;"> | |||
<div style="text-align: center;"> | |||
<div style="font-size: 0.7em; color: var(--color-subtle, #888);">ECON (X)</div> | |||
<div style="font-size: 1.2em; font-weight: bold; color: {{{代表色|#333}}};">{{{经济坐标|0}}}</div> | |||
</div> | |||
<div style="width: 1px; background: var(--border-color-subtle, #eee);"></div> | |||
<div style="text-align: center;"> | |||
<div style="font-size: 0.7em; color: var(--color-subtle, #888);">GOVT (Y)</div> | |||
<div style="font-size: 1.2em; font-weight: bold; color: {{{代表色|#333}}};">{{{政治坐标|0}}}</div> | |||
</div> | |||
</div> | |||
</div> | |||
}} | }} | ||
| | /* ———— 属性数据:改为更现代的列表样式,去掉表格线 ———— */ | ||
| labelstyle = color: var(--color-subtle, #666); font-size: 0.9em; padding: 6px 10px; font-weight: normal; width: 35%; text-align: right; | |||
| datastyle = font-weight: bold; padding: 6px 10px; width: 65%; | |||
| label5 = 类型 | | label5 = 类型 | ||
| data5 = {{{类型|}}} | | data5 = {{{类型|}}} | ||
| label6 = | | label6 = 成立 | ||
| data6 = {{{成立时间|}}} | | data6 = {{{成立时间|}}} | ||
| 第54行: | 第72行: | ||
| label9 = 代表色 | | label9 = 代表色 | ||
| data9 = {{{代表色|}}} | | data9 = <span style="display:inline-block; width:12px; height:12px; background:{{{代表色|transparent}}}; border-radius:50%; margin-right:5px; border:1px solid rgba(0,0,0,0.1);"></span>{{{代表色|}}} | ||
}} | }} | ||
| 第68行: | 第86行: | ||
|Region = {{{流行地区|}}} | |Region = {{{流行地区|}}} | ||
|Colors = {{{代表色|}}} | |Colors = {{{代表色|}}} | ||
}}[[分类:意识形态]]</includeonly | }}[[分类:意识形态]]</includeonly> | ||
2026年2月11日 (三) 15:31的版本
此模板定义表格“Ideologies”。 此表格尚未创建。