မေႃႇၵျူး:Storm categories/icons
Appearance
This module is rated as ready for general use. It has reached a mature form and is thought to be relatively bug-free and ready for use wherever appropriate. It is ready to mention on help pages and other Wikipedia resources as an option for new users to learn. To reduce server load and bad output, it should be improved by sandbox testing rather than repeated trial-and-error editing. |
Lua module ဢၼ်ၼႆႉ လႆႈၸႂ်ႉဝႆႉ တီႈၼႃႈလိၵ်ႈ many ၼႃႈလိၵ်ႈ လႄႈ လွင်ႈလႅၵ်ႈလၢႆႈၸိူဝ်းၼႆႉ တေႁႂ်ႈၽၢင်ႉမႅၼ်ႈၺႃး ၵႂၢင်ႈၵႂၢင်ႈၶႂၢင်ၶႂၢင်။ ၸၢမ်းတူၺ်း လွင်ႈလႅၵ်ႈလၢႆႈ တီႈၼႂ်း မေႃႇၵျူး's /sandbox ဢမ်ႇၼၼ် ၼႃႈလိၵ်ႈၽႄ /testcases . ဝူၼ်ႉသွၼ်ႇ ဢုပ်ႇဢူဝ်း လွင်ႈလႅၵ်ႈလၢႆႈ တီႈၼႂ်း ၼႃႈလိၵ်ႈ တႃႇဢုပ်ႇ ၽွင်းမိူဝ်ႈပႆႇ ၵေႃႇသၢင်ႈၶဝ်ၼၼ်ႉ။
ႁူဝ်ၼပ်ႉ လွင်ႈၶဝ်ႈပႃးၼႆႉ မၼ်းႁဵတ်းဢၢပ်ႉတဵတ်ႉဝႆႉႁင်းမၼ်း (တူၺ်းတီႈ ၽိုၼ်လိၵ်ႈ)။ |
လွင်ႈၸႂ်ႉတိုဝ်း
[မႄးထတ်းငဝ်ႈငႃႇ]This template contains icon overrides for Module:Storm categories. These icon overrides can either add an extra icon to the template without adding a category, or override the icon of an existing category or category alias for backwards compatibility. These are primarily used for categories that apply to basins across both hemispheres, but require an icon that applies to the southern hemisphere (where cyclones rotate counter-clockwise).
Overrides are defined in the following format:
-- For overrides that include the icon of an existing category.
["override_id"] = cats["actual_category"].icon,
-- For overrides that introduce a new icon.
["override_id"] = "[[File:Super duper ultra strong magnitude 100 storm icon.svg|18px]]",
ၽိုၼ်ၵႅမ်မိုဝ်းလၢႆးၸႂ်ႉတိုဝ်း (documentation)တီႈၽၢႆႇၼိူဝ်ၼႆႉ လုၵ်ႉတီႈ မေႃႇၵျူး:Storm categories/icons/doc သေ ၶၢႆႉသႂ်ႇၶဝ်ႈ (ႁဵတ်း transclude ဝႆႉၶႃႈဢေႃႈ။ (မႄးထတ်း | ပိုၼ်း) ၽူႈၸိူဝ်းမႄးထတ်းၶဝ် ၸၢင်ႈၸၢမ်းတူၺ်းလႆႈ ၸိူဝ်းပဵၼ်ၼႃႈလိၵ်ႈ sandbox (သၢင်ႈ | ငဝ်းမိူၼ်) လႄႈ testcases (သၢင်ႈ) ႁင်း မေႃႇၵျူးဢၼ်ၼႆႉ လႆႈယူႇၶႃႈ။ ၼႃႈလိၵ်ႈၽႄ ႁင်း မေႃႇၵျူး ဢၼ်ၼႆႉ။. |
local p = {}
local cats = require("Module:Storm categories/categories").cats
-- Icon overrides for old {{Tropical cyclone status icons}} that don't have a
-- viable category.
local icons = {
-- Ambiguious 5-tier scale
["1"] = cats["cat1"].icon,
["2"] = cats["cat2"].icon,
["3"] = cats["cat3"].icon,
["4"] = cats["cat4"].icon,
["5"] = cats["cat5"].icon,
-- FMS scale
["a5"] = cats["aus5"].icon,
["a4"] = cats["aus4"].icon,
["a3"] = cats["aus3"].icon,
["a2"] = cats["aus2"].icon,
["a1"] = cats["aus1"].icon,
-- Misc
["extratropical2"] = "[[File:Extratropical storm icon.png|18px]]",
["typhoon"] = "[[File:Typhoon icon.png|18px]]",
["vstyphoon"] = "[[File:Very strong typhoon icon.png|18px]]",
["vityphoon"] = "[[File:Violent typhoon icon.png|18px]]",
["swiosts"] = "[[File:Severe tropical storm south icon.png|18px]]",
["swiotc"] = "[[File:SWIO tropical cyclone icon.png|18px]]"
}
icons["et2"] = icons["extratropical2"]
icons["ex2"] = icons["extratropical2"]
icons["ty"] = icons["typhoon"]
icons["stss"] = icons["swiosts"]
icons["tc"] = icons["swiotc"]
p.icons = icons
return p