Template:Standard of living:修订间差异

(天津风不是天津的风移动页面Template:SolTemplate:Standard of living
无编辑摘要
 
(未显示同一用户的3个中间版本)
第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|赤贫 = [[File:SOL destitute.png|{{{w|24px}}}|link=Standard of living|Destitute]] {{{1|Destitute}}}
|0|赤贫|destitute = [[File:SOL destitute.png|{{{w|24px}}}|link=Standard of living|Destitute]] {{{1| 赤贫}}}
|1|挣扎 = [[File:SOL struggling.png|{{{w|24px}}}|link=Standard of living|Struggling]] {{{1|Struggling}}}
|1|挣扎|struggling = [[File:SOL struggling.png|{{{w|24px}}}|link=Standard of living|Struggling]] {{{1| 挣扎}}}
|2|贫困 = [[File:SOL impoverished.png|{{{w|24px}}}|link=Standard of living|Impoverished]] {{{1|Impoverished}}}
|2|贫困|impoverished = [[File:SOL impoverished.png|{{{w|24px}}}|link=Standard of living|Impoverished]] {{{1| 贫困}}}
|3|温饱 = [[File:SOL middling.png|{{{w|24px}}}|link=Standard of living|Middling]] {{{1|Middling}}}
|3|温饱|middling = [[File:SOL middling.png|{{{w|24px}}}|link=Standard of living|Middling]] {{{1| 温饱}}}
|4|安稳 = [[File:SOL secure.png|{{{w|24px}}}|link=Standard of living|Secure]] {{{1|Secure}}}
|4|安稳|secure = [[File:SOL secure.png|{{{w|24px}}}|link=Standard of living|Secure]] {{{1| 安稳}}}
|5|宽裕 = [[File:SOL prosperous.png|{{{w|24px}}}|link=Standard of living|Prosperous]] {{{1|Prosperous}}}
|5|宽裕|prosperous = [[File:SOL prosperous.png|{{{w|24px}}}|link=Standard of living|Prosperous]] {{{1| 宽裕}}}
|6|7|殷实 = [[File:SOL affluent.png|{{{w|24px}}}|link=Standard of living|Affluent]] {{{1|Affluent}}}
|6|7|殷实|affluent = [[File:SOL affluent.png|{{{w|24px}}}|link=Standard of living|Affluent]] {{{1| 殷实}}}
|8|9|富有 = [[File:SOL wealthy.png|{{{w|24px}}}|link=Standard of living|Wealthy]] {{{1|Wealthy}}}
|8|9|富有|wealthy = [[File:SOL wealthy.png|{{{w|24px}}}|link=Standard of living|Wealthy]] {{{1| 富有}}}
|10|11|奢侈 = [[File:SOL lavish.png|{{{w|24px}}}|link=Standard of living|Lavish]] {{{1|Lavish}}}
|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
|奢华 = [[File:SOL opulent.png|{{{w|24px}}}|link=Standard of living|Opulent]] {{{1|Opulent}}}
|奢华|opulent = [[File:SOL opulent.png|{{{w|24px}}}|link=Standard of living|Opulent]] {{{1| 奢华}}}
|生活水平|sol| = [[File:SOL.png|{{{w|24px}}}|link=Standard of living]] {{{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|}}}|&nbsp;({{{num}}})}}</span></includeonly><noinclude>{{template doc}}[[Category:Templates]]</noinclude>
}}{{#if:{{{num|}}}|&nbsp;({{{num}}})}}</span></includeonly><noinclude>{{template doc}}[[Category:Templates]]</noinclude>

2025年6月2日 (一) 09:32的最新版本

[阅读] [编辑]Template-info.png 模板文档

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.

Valid keys
Key Value range
赤贫, destitute 01 - 4.9
挣扎, struggling 05 - 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

Examples

Wikitext Output
{{standard of living|Middling}} Middling Middling
{{standard of living|温饱}} Middling 温饱
{{sol|num=12.4}} Impoverished 贫困 (12.4)
{{standard of living||num=26}} Prosperous (26)
The first parameter can be given a null value to generate
just the standard of living general icon with no text
{{sol|}} SOL.png