Changes
Jump to navigation
Jump to search
fix category name function comments
--[[
-- Define the initial order to test properties intable. The subtable positionEach property is a table containing the -- is the canonical order that the properties will be property is tested in, and the keypos value inposition the -- each subtable is the position of the value property has in the category keystrings, and the property value itself.
--]]
local properties = {
--[[
-- Validate Load the category order configuration for the reason, and if it specified. -- The configuration is specified as a "namespaceFirst" stored in the categoryOrder field of each reason, -- move subtable of cfg.reasons. If the namespace subtable to value is a table, then the order is the end of -- values specified in the properties table.If the value is a string, then the -- This property corresponding to that string is necessary to accommodate reasons like "vandalism"tested last (i.e. it is the most -- important, as because it keeps its specified value the longest) and the old -- {{pp-vandalism}} template used namespace categories rather thanother properties are tested in the canonical order. If the value is of -- vandalism categories if they were availableany other type then the canonical order is used.
--]]
local reasonTable = reason and cfg.reasons[reason]
local categoryOrder = reasonTable and reasonTable.categoryOrder
local categoryOrderType = type(categoryOrder)