Module:UserLinks/config

From the Croc Wiki, the Croc encyclopedia
Revision as of 07:49, April 5, 2014 by wikipedia>Mr. Stradivarius (add more comments)
Jump to navigationJump to search

Configuration used by Module:UserLinks


--------------------------------------------------------------------------------
--                            UserLinks configuration                         --
-- This module provides configuration and localisation messages for           --
-- [[Module:UserLinks]]. See the comments in the code below for explanations  --
-- of what each message does.                                                 --
--------------------------------------------------------------------------------

local cfg = {} -- Don't edit this line.

--------------------------------------------------------------------------------
--                                Display values                              --
-- These messages are the display values for the user links. These are the    --
-- most visible messages in the module. They should be short, but             --
-- descriptive. Spaces are automatically escaped with  , so there is no  --
-- need to add any &nsbp; values here.                                        --
--------------------------------------------------------------------------------

-- The user talk page.
cfg['display-talk'] = 'talk'

-- The user's contributions.
cfg['display-contributions'] = 'contribs'

-- The user's edit count, using the edit count tool on WMF Labs.
cfg['display-count'] = 'count'

-- Log of the user's page moves.
cfg['display-moves'] = 'page moves'

-- All the user's logged actions.
cfg['display-logs'] = 'logs'

-- The user's block log.
cfg['display-blocklog'] = 'block log'

-- Blocks that the user has performed.
cfg['display-blocks'] = 'blocks'

-- Link to the interface where the user can be blocked.
cfg['display-blockuser'] = 'block user'

-- CentralAuth, the global account manager for the user.
cfg['display-centralauth'] = 'central auth'

-- The user's deleted contributions.
cfg['display-deletedcontributions'] = 'deleted contribs'

-- Likn to email the user.
cfg['display-email'] = 'email'

-- Analysis of the user's edit summaries, using the tool on WMF Labs.
cfg['display-editsummaries'] = 'edit summaries'

-- Deletions that the user has performed.
cfg['display-deletions'] = 'deletions'

-- The user's entry on [[Special:ListUsers]].
cfg['display-listuser'] = 'list user'

-- A display of the user's global contributions, using the sulutil: interwiki
-- prefix.
cfg['display-sul'] = 'global contribs'

-- All logs of actions performed on the user or their user page.
cfg['display-targetlogs'] = 'target logs'

-- Log of times the user has triggered the AbuseFilter (also known as the
-- edit filter).
cfg['display-abuselog'] = 'edit filter log'

-- Page protections that the user has performed.
cfg['display-protections'] = 'protections'

-- Log of rights changes that the user has performed.
cfg['display-rights'] = 'rights'

-- Log of username changes that the user has performed.
cfg['display-renames'] = 'renames'

-- Link to a list of the user's requests for adminship.
cfg['display-rfa'] = 'RfA'

-- Data about the user from the MediaWiki Web API.
cfg['display-api'] = 'api'

-- List of the user's local file uploads.
cfg['display-uploads'] = 'uploads'

--------------------------------------------------------------------------------
--                                  Page names                                --
-- Page names used in formatting some of the user links.                      --
--------------------------------------------------------------------------------

-- The base page for a request for adminship link. This assumes that the link
-- is of the format [[Base page/username]]. If your wiki uses a different
-- format, consider adding a new link at [[Module:UserLinks/extra]], or you can
-- leave a message at [[w:en:Template talk:User-multi]] to ask the module
-- developers how best to deal with it.
cfg['page-rfa'] = 'Wikipedia:Requests for adminship'

--------------------------------------------------------------------------------
--                                Error messages                              --
-- The following are error messages that may occur when the module is run.    --
-- These are the more common error messages that are localisable; other,      --
-- rarer error messages may be raised from other modules or directly from     --
-- Lua. The messages ending with "section" are the section names on a help    --
-- page that give advice to users who encounter the error. The help page is   --
-- defined in the 'error-config-message-help' message.                        --
--------------------------------------------------------------------------------

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'

--------------------------------------------------------------------------------
--                             Error configuration                            --
--------------------------------------------------------------------------------

cfg['error-config-message-help'] = '[[Template:User-multi|User-multi]] error:'
	.. ' $1 ([[Template:User-multi#$2|help]]).'
cfg['error-config-message-nohelp'] = '[[Template:User-multi|User-multi]] error: $1.'
cfg['error-config-category'] = 'UserLinks transclusions with errors'

--------------------------------------------------------------------------------
--                               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