Edge Rewrite
// HTMLRewriter · presentation

This page was redesigned at the edge.

Cloudflare fetched the original article and streamed it through HTMLRewriter to apply an entirely new visual system without rebuilding the source page.

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