Module:Shortcut/config

From OpenStreetMap Wiki
Jump to navigation Jump to search
[Create] Documentation
-- This module has configuration data for [[Module:Shortcut]].

local cfg = {}

-- The shortcut heading inside the message box. It accepts the following parameter:
-- • $1 ― the total number of shortcuts (required).
local shortcutHeading = '[[Wiki:Shortcut|{{PLURAL:$1|Shortcut|Shortcuts}}]]'

-- The error if there is an invalid shortcut. It accepts the following parameter:
-- • $1 – the total number of shortcuts (required).
local invalidShortcutError = 'shortcut #$1 was invalid (shortcuts must be ' ..
	'strings of at least one character in length)'

-- The error if no parameters are specified.
local noParametersError = 'Error: no shortcuts were specified and the ' ..
	mw.text.nowiki('|msg=') ..
	' parameter was not set.'

-- The error category if no parameters are specified.
local noParametersError = 'Shortcut templates with missing parameters'

return cfg