Module:Importance
From Soyjak Wiki, the free ensoyclopedia
Jump to navigationJump to search
| This module is rated as ready for general use. It is considered stable and may be used wherever appropriate. Improvements should be developed and tested in a sandbox before changing the live module. |

This page is currently under development(You) VVILL NOT edit the page until it's properly finished.
local p = {}
function p.category(frame)
local config = mw.loadData('Module:Importance/config')
local quality = frame.args.quality
if not quality or quality == '' then return '' end
local ok, data = pcall(mw.loadJsonData, config.dataPage)
local class = ok and data[mw.title.getCurrentTitle().prefixedText]
local pattern = class and config.categories[class] or config.unrated
return '[[Category:' .. pattern:format(quality) .. ']]'
end
return p