Module:UserLinks/config: Difference between revisions
From the Croc Wiki, the Croc encyclopedia
Jump to navigationJump to search
Content added Content deleted
(add snippet defaults) |
(add a "snippet-project-default" message) |
||
Line 46: | Line 46: | ||
-- Snippet defaults |
-- Snippet defaults |
||
cfg['snippet-project-default'] = 'w' |
|||
cfg['snippet-projectlong-default'] = 'wikipedia' |
cfg['snippet-projectlong-default'] = 'wikipedia' |
||
cfg['snippet-lang-default'] = 'en' |
cfg['snippet-lang-default'] = 'en' |
Revision as of 16:10, April 4, 2014
This module is subject to page protection. It is a highly visible module in use by a very large number of pages, or is substituted very frequently. Because vandalism or mistakes would affect many pages, and even trivial editing might cause substantial load on the servers, it is protected from editing. |
This Lua module is used in system messages. Changes to it can cause immediate changes to the Wikipedia user interface. To avoid major disruption, any changes should be tested in the module's /sandbox or /testcases subpages, or in your own module sandbox. The tested changes can be added to this page in a single edit. Please discuss changes on the talk page before implementing them. |
Configuration used by Module:UserLinks
local cfg = {}
-- Display values
cfg['display-talk'] = 'talk'
cfg['display-contributions'] = 'contribs'
cfg['display-count'] = 'count'
cfg['display-moves'] = 'page moves'
cfg['display-logs'] = 'logs'
cfg['display-blocklog'] = 'block log'
cfg['display-blocks'] = 'blocks'
cfg['display-blockuser'] = 'block user'
cfg['display-centralauth'] = 'central auth'
cfg['display-deletedcontributions'] = 'deleted contribs'
cfg['display-email'] = 'email'
cfg['display-editsummaries'] = 'edit summaries'
cfg['display-deletions'] = 'deletions'
cfg['display-listuser'] = 'list user'
cfg['display-sul'] = 'global contribs'
cfg['display-targetlogs'] = 'target logs'
cfg['display-abuselog'] = 'edit filter log'
cfg['display-protections'] = 'protections'
cfg['display-rights'] = 'rights'
cfg['display-renames'] = 'renames'
cfg['display-rfa'] = 'RfA'
cfg['display-api'] = 'api'
cfg['display-uploads'] = 'uploads'
-- Page names
cfg['page-rfa'] = 'Wikipedia:Requests for adminship'
-- Error messages
cfg['error-nousername'] = 'no username detected'
cfg['error-nousername-section'] = 'No username detected'
cfg['error-invalidproject'] = '"$1" is not a valid project or language code'
cfg['error-invalidproject-section'] = 'Not a valid project or language code'
cfg['error-invalidlanguage'] = '"$1" is not a valid language code'
cfg['error-invalidlanguage-section'] = 'Not a valid language code'
cfg['error-nolinkcode'] = 'no link code specified'
cfg['error-nolinkcode-section'] = 'No link code specified'
cfg['error-nosnippet'] = 'no snippet exists for the key "$1"'
cfg['error-nosnippet-section'] = 'No snippet exists'
cfg['error-malformedlinkcode'] = 'malformed link code detected'
cfg['error-malformedlinkcode-section'] = 'Malformed link code detected'
cfg['error-invalidlinkcode'] = '"$1" is not a valid link code'
cfg['error-invalidlinkcode-section'] = 'Not a valid link code'
-- Snippet defaults
cfg['snippet-project-default'] = 'w'
cfg['snippet-projectlong-default'] = 'wikipedia'
cfg['snippet-lang-default'] = 'en'
-- Link table headers
cfg['linktable-codeheader'] = 'Code'
cfg['linktable-previewheader'] = 'Preview'
return cfg