|
|
| 第1行: |
第1行: |
| <noinclude> | | <includeonly><templatestyles src="Template:IdeologyCompass/styles.css" /> |
| {{#cargo_declare:
| | <div style="max-width: {{{width|300px}}}; margin: 0 auto;"> |
| _table = Ideologies
| | <div class="ideology-compass" role="img" aria-label="政治罗盘:X轴{{{x|0}}},Y轴{{{y|0}}}"> |
| |Name = String
| | <div class="compass-label top">{{{top|威权}}}</div> |
| |Native_name = String
| | <div class="compass-label bottom">{{{bottom|自由}}}</div> |
| |Image = File
| | <div class="compass-label left">{{{left|左派}}}</div> |
| |Type = String
| | <div class="compass-label right">{{{right|右派}}}</div> |
| |Position_X = Float
| |
| |Position_Y = Float
| |
| |Founding_year = Integer
| |
| |Founder = String
| |
| |Region = String
| |
| |Colors = List (,) of String
| |
| }}
| |
| </noinclude><includeonly>{{#cargo_store:
| |
| _table = Ideologies
| |
| |Name = {{{名称|{{{name|{{PAGENAME}}}}}}}}
| |
| |Native_name = {{{原生名称|{{{native_name|}}}}}}
| |
| |Image = {{{图片|{{{image|}}}}}}
| |
| |Type = {{{类型|{{{type|}}}}}}
| |
| |Position_X = {{{经济坐标|{{{compass_x|}}}}}}
| |
| |Position_Y = {{{政治坐标|{{{compass_y|}}}}}}
| |
| |Founding_year = {{{成立时间|{{{founded|}}}}}}
| |
| |Founder = {{{创始人|{{{founder|}}}}}}
| |
| |Region = {{{流行地区|{{{region|}}}}}}
| |
| |Colors = {{{代表色|{{{colors|}}}}}}
| |
| }}<div class="infobox" style="width: 300px; float: right; clear: right; margin: 0 0 1em 1em; background: var(--background-color-surface, #fff); border: 1px solid var(--border-color-base, #a2a9b1); padding: 0.5em; border-radius: 4px; box-shadow: 0 1px 2px rgba(0,0,0,0.05);"> | |
|
| |
|
| <div style="text-align: center; font-size: 1.25em; font-weight: bold; padding: 0.5em; background: var(--background-color-quiet, #f8f9fa); border-bottom: 1px solid var(--border-color-base, #a2a9b1); margin: -0.5em -0.5em 0.5em -0.5em; border-radius: 4px 4px 0 0; color: var(--color-base, #202122);"> | | <div class="compass-point" style=" |
| {{{名称|{{{name|{{PAGENAME}}}}}}}} | | left: {{#expr: ( ({{{x|0}}} + 10) / 20 ) * 100 }}%; |
| {{#if:{{{原生名称|{{{native_name|}}}}}}|<br><span style="font-size: 0.8em; font-weight: normal; color: var(--color-subtle, #54595d);">{{{原生名称|{{{native_name}}}}}}</span>}} | | top: {{#expr: 100 - ( ({{{y|0}}} + 10) / 20 ) * 100 }}%; |
| | "> |
| | {{#if:{{{icon|}}} |
| | | [[File:{{{icon}}}|32px|link=]] |
| | | <div class="compass-dot" style="background-color:{{{color|var(--color-primary)}}};"></div> |
| | }} |
| | {{#if:{{{label|}}} |
| | | <div class="compass-text">'''{{{label}}}'''</div> |
| | }} |
| | </div> |
| </div> | | </div> |
| | | </div></includeonly><noinclude> |
| {{#if:{{{图片|{{{image|}}}}}}|
| | {{Documentation}} |
| <div style="text-align: center; margin-bottom: 0.5em;">
| | </noinclude> |
| [[File:{{{图片|{{{image}}}}}}|250px|center|alt={{{名称|{{{name|}}}}}}]]
| |
| {{#if:{{{图片说明|{{{caption|}}}}}}|<div style="font-size: 0.9em; line-height: 1.2; margin-top: 0.4em; color: var(--color-subtle, #54595d);">{{{图片说明|{{{caption}}}}}}</div>}}
| |
| </div> | |
| }}
| |
| | |
| {{#if:{{{经济坐标|{{{compass_x|}}}}}}|{{#if:{{{政治坐标|{{{compass_y|}}}}}}|
| |
| <div style="text-align: center; margin: 0.5em 0; padding: 0.5em; background: var(--background-color-neutral-subtle, #f8f9fa); border-radius: 4px;"> | |
| <div style="font-weight: bold; margin-bottom: 6px; font-size: 0.9em; color: var(--color-base, #202122);">意识形态定位</div>
| |
| {{IdeologyCompass | |
| | width = 100%
| |
| | x = {{{经济坐标|{{{compass_x|0}}}}}}
| |
| | y = {{{政治坐标|{{{compass_y|0}}}}}}
| |
| | label = {{{名称|{{{name|}}}}}}
| |
| | icon = {{{图标|{{{icon|}}}}}}
| |
| | colored = yes
| |
| }}
| |
| <div style="font-size: 0.8em; color: var(--color-subtle, #666); margin-top: 4px; font-family: monospace;">
| |
| X: {{{经济坐标|{{{compass_x}}}}}} | Y: {{{政治坐标|{{{compass_y}}}}}}
| |
| </div> | |
| </div>
| |
| }}}}
| |
| | |
| <table style="width: 100%; border-collapse: collapse; font-size: 0.9em; line-height: 1.4;">
| |
| | |
| {{#if:{{{类型|{{{type|}}}}}}|
| |
| <tr style="border-top: 1px solid var(--border-color-subtle, #eee);">
| |
| <th style="text-align: left; padding: 6px 4px; width: 35%; color: var(--color-subtle, #54595d);">类型</th>
| |
| <td style="padding: 6px 4px;">{{{类型|{{{type}}}}}}</td>
| |
| </tr>
| |
| }}
| |
| | |
| {{#if:{{{成立时间|{{{founded|}}}}}}|
| |
| <tr style="border-top: 1px solid var(--border-color-subtle, #eee);">
| |
| <th style="text-align: left; padding: 6px 4px; color: var(--color-subtle, #54595d);">成立时间</th>
| |
| <td style="padding: 6px 4px;">{{{成立时间|{{{founded}}}}}}</td>
| |
| </tr>
| |
| }}
| |
| | |
| {{#if:{{{创始人|{{{founder|}}}}}}|
| |
| <tr style="border-top: 1px solid var(--border-color-subtle, #eee);">
| |
| <th style="text-align: left; padding: 6px 4px; color: var(--color-subtle, #54595d);">创始人</th>
| |
| <td style="padding: 6px 4px;">{{{创始人|{{{founder}}}}}}</td>
| |
| </tr>
| |
| }}
| |
| | |
| {{#if:{{{流行地区|{{{region|}}}}}}|
| |
| <tr style="border-top: 1px solid var(--border-color-subtle, #eee);">
| |
| <th style="text-align: left; padding: 6px 4px; color: var(--color-subtle, #54595d);">主要流行地区</th>
| |
| <td style="padding: 6px 4px;">{{{流行地区|{{{region}}}}}}</td>
| |
| </tr>
| |
| }}
| |
| | |
| {{#if:{{{代表色|{{{colors|}}}}}}|
| |
| <tr style="border-top: 1px solid var(--border-color-subtle, #eee);">
| |
| <th style="text-align: left; padding: 6px 4px; color: var(--color-subtle, #54595d);">代表色</th>
| |
| <td style="padding: 6px 4px;">{{{代表色|{{{colors}}}}}}</td>
| |
| </tr>
| |
| }}
| |
| | |
| </table>
| |
| </div></includeonly>
| |