小无编辑摘要 |
小无编辑摘要 |
||
| (未显示同一用户的2个中间版本) | |||
| 第1行: | 第1行: | ||
<includeonly><span style="white-space:nowrap;">{{#switch: {{#if:{{{num|}}}|{{#expr: floor({{{num}}}/5)}}|{{lc:{{{1}}}}}}} | <includeonly><span style="white-space:nowrap;">{{#switch: {{#if:{{{num|}}}|{{#expr: floor({{{num}}}/5)}}|{{lc:{{{1}}}}}}} | ||
|0|赤贫 | |0|赤贫|destitute = [[File:SOL destitute.png|{{{w|24px}}}|link=Standard of living|Destitute]] {{{1| 赤贫}}} | ||
|1|挣扎 | |1|挣扎|struggling = [[File:SOL struggling.png|{{{w|24px}}}|link=Standard of living|Struggling]] {{{1| 挣扎}}} | ||
|2|贫困 | |2|贫困|impoverished = [[File:SOL impoverished.png|{{{w|24px}}}|link=Standard of living|Impoverished]] {{{1| 贫困}}} | ||
|3|温饱 | |3|温饱|middling = [[File:SOL middling.png|{{{w|24px}}}|link=Standard of living|Middling]] {{{1|温饱}}} | ||
|4|安稳 | |4|安稳|secure = [[File:SOL secure.png|{{{w|24px}}}|link=Standard of living|Secure]] {{{1| 安稳}}} | ||
|5|宽裕 | |5|宽裕|prosperous = [[File:SOL prosperous.png|{{{w|24px}}}|link=Standard of living|Prosperous]] {{{1| 宽裕}}} | ||
|6|7|殷实 | |6|7|殷实|affluent = [[File:SOL affluent.png|{{{w|24px}}}|link=Standard of living|Affluent]] {{{1| 殷实}}} | ||
|8|9|富有 | |8|9|富有|wealthy = [[File:SOL wealthy.png|{{{w|24px}}}|link=Standard of living|Wealthy]] {{{1| 富有}}} | ||
|10|11|奢侈 | |10|11|奢侈|lavish = [[File:SOL lavish.png|{{{w|24px}}}|link=Standard of living|Lavish]] {{{1| 奢侈}}} | ||
|12|13|14|15|16|17|18|19 | |12|13|14|15|16|17|18|19 | ||
|奢华 | |奢华|opulent = [[File:SOL opulent.png|{{{w|24px}}}|link=Standard of living|Opulent]] {{{1| 奢华}}} | ||
|生活水平 | |生活水平|standard of living|sol| = [[File:SOL.png|{{{w|24px}}}|link=Standard of living]] {{{1}}} | ||
|#default = <span style="color: red; font-size: 11px;">({{#if:{{{num|}}}|out of range value “{{{num}}}”|unrecognized string “{{{1}}}”}} for [[Template:Standard of living]])</span>[[Category:Pages with standard of living template errors]] | |#default = <span style="color: red; font-size: 11px;">({{#if:{{{num|}}}|out of range value “{{{num}}}”|unrecognized string “{{{1}}}”}} for [[Template:Standard of living]])</span>[[Category:Pages with standard of living template errors]] | ||
}}{{#if:{{{num|}}}| ({{{num}}})}}</span></includeonly><noinclude>{{template doc}}[[Category:Templates]]</noinclude> | }}{{#if:{{{num|}}}| ({{{num}}})}}</span></includeonly><noinclude>{{template doc}}[[Category:Templates]]</noinclude> | ||
2025年6月2日 (一) 09:32的最新版本
This template generates an icon corresponding to a standard of living value. It can be used either with numbers (1-99, including decimals) or the names of standard of living ranges. It can also be called with the shortcut {{sol}}
Parameters
| Parameter | Description |
|---|---|
| 1 | Standard of living key and text following icon |
| num | Standard of living value |
| w | Icon size, defaults to 24px |
One of either the first parameter or the num parameter must be used; they can also be used together to customize the text that follows the icon. When using the num parameter, the value is suffixed in parentheses. The first parameter is not case sensitive for keys, but is output as entered.
| Key | Value range |
|---|---|
| 赤贫, destitute | 1 - 4.9 |
| 挣扎, struggling | 5 - 9.9 |
| 贫困, impoverished | 10 - 14.9 |
| 温饱, middling | 15 - 19.9 |
| 安稳, secure | 20 - 24.9 |
| 宽裕, prosperous | 25 - 29.9 |
| 殷实, affluent | 30 - 39.9 |
| 富有, wealthy | 40 - 49.9 |
| 奢侈, lavish | 50 - 59.9 |
| 奢华, opulent | 60 - 99 |
| 生活水平, standard of living, sol | N/A |