模板: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