模板:Standard of living/doc

这是Template:Standard of living的模板文档
当直接浏览时,使用变量可能会失效,请不要使用硬编码来代替页面名或地址。

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