Jump to content

Module:Importance/configuration

From Wikipedia, the free encyclopedia
local p = {}

p.definitions = mw.text.jsonDecode(
	mw.title.new('Importance/definition.json', 'Module'):getContent()
)

p.messages = {
	defaultCode = 'DEFAULT',
	classPrefix = 'importance-',
	globalClass = 'importance',
	defaultClassSuffix = 'default',
	unboldClassSuffix = 'unbold',
	catBasicFormat = '%s-%s %s',
	categoryFormat = '[[:Category:%s|%s]]',
	catPagetypeDefault = 'articles',
	templateLocation = 'Template:Importance',
	iconTemplateLocation = 'Template:Importance/icon',
	colourTemplateLocation = 'Template:Importance/colour',
	stylesLocation = 'Module:Importance/styles.css',
	baseColourPath = {'colour', 'base'},
	iconPath = {"icon", "file"},
	iconDefaultPath = {"icon", "default"},
	iconAttribPath = {"icon", "requiresAttribution"},
	shortLabelPath = {"labels", "short"},
	categoryRootPath = {"categoryRoot"},
	yes = "yes",
	no = "no", 
	argumentNames = {
		class = "class",
		impn = "impn",
		style = "style"
	},
	getOptions = {
		--First item is localized argument name, second is case-sensitivity
		bold = {"bold", false},
		header = {"header", false},
		image = {"image", false},
		rowspan = {"rowspan", false},
		category = {"category", true},
		topic = {"topic", true}
	}
}

return p