Module:UserLinks/config: Difference between revisions

Content deleted Content added
see what happens without the section name
sync
 
(6 intermediate revisions by 5 users not shown)
Line 30:
-- All the user's logged actions.
cfg['display-logs'] = 'logs'
 
-- Analysis of the user's (non-)automated contributions.
cfg['display-autoedits'] = 'non-automated edits'
 
-- The user's block log.
Line 51 ⟶ 54:
-- Analysis of the user's edit summaries, using the tool on WMF Labs.
cfg['display-editsummaries'] = 'edit summaries'
 
-- Label before links for former administrators
cfg['display-formeradmin'] = 'former admin:'
 
-- Deletions that the user has performed.
cfg['display-deletions'] = 'deletions'
 
-- Log of rights changes performed on the user
cfg['display-localrights'] = 'local rights'
 
-- The user's entry on [[Special:ListUsers]].
cfg['display-listuser'] = 'list user'
 
-- Log of rights changes performed on the user on Meta-Wiki
cfg['display-metarights'] = 'meta'
 
-- A display of the user's global contributions, using the sulutil: interwiki
Line 67 ⟶ 79:
-- 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.
Line 86 ⟶ 98:
-- List of the user's local file uploads.
cfg['display-uploads'] = 'uploads'
 
-- List of the user's local file uploads.
cfg['display-nuke'] = 'nuke contribs'
 
 
--------------------------------------------------------------------------------
Line 109 ⟶ 125:
--------------------------------------------------------------------------------
 
-- The module didn't detect a username from the "user" or "User" parameters.
-- This could be because no username was specified, or because the user used a
-- positional parameter and their username contains an equals sign,
-- e.g. {{user|John=Smith}}, rather than {{user|1=John=Smith}}.
cfg['error-nousername'] = 'no username detected'
cfg['error-nousername-section'] = nil'No username detected'
 
-- The input to the "project" or "Project" arguments wasn't a valid interwiki
-- prefix or a valid language code. $1 is the code that was input to the module.
cfg['error-invalidproject'] = '"$1" is not a valid project or language code'
cfg['error-invalidproject-section'] = 'Not a valid project or language code'
 
-- The input to the "lang" or "Lang" arguments wasn't a valid interwiki
-- prefix or a valid language code. $1 is the code that was input to the module.
cfg['error-invalidlanguage'] = '"$1" is not a valid language code'
cfg['error-invalidlanguage-section'] = 'Not a valid language code'
 
-- The user didn't specify any link codes. This is only an error when using the
-- "single" function to return a single link; the "main" function includes a
-- user page link by default.
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"'
-- The link code passed to the module was malformed. This means it was either
cfg['error-nosnippet-section'] = 'No snippet exists'
-- not a string value or it was the blank string.
cfg['error-malformedlinkcode'] = 'malformed link code detected'
cfg['error-malformedlinkcode-section'] = 'Malformed link code detected'
 
-- No link function exists for the code specified, so the module cannot make
-- the link. $1 is the code that was passed to the module.
cfg['error-invalidlinkcode'] = '"$1" is not a valid link code'
cfg['error-invalidlinkcode-section'] = 'Not a valid link code'
 
-- The snippets table was accessed, but there was no value for the key it was
-- accessed with. This is not usually visible by end users; it is probably a
-- mistake in one of the link functions in [[Module:UserLinks/extra]]. $1 is the
-- key that was passed to the module.
cfg['error-nosnippet'] = 'no snippet exists for the key "$1"'
cfg['error-nosnippet-section'] = 'No snippet exists'
 
--------------------------------------------------------------------------------
-- Error configuration --
-- Configuration for the display of the error messages. --
--------------------------------------------------------------------------------
 
-- The error message used when a section link is available. $1 is the error
-- message, and $2 is the name of the section.
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.'
-- The error message used when ano section link is available. $1 is the error
-- message.
cfg['error-config-message-nohelp'] = '[[Template:User-multi|User-multi]] error: $1.'
.. ' $1.'
 
-- The name of the error category. Pages are put in this category if any errors
-- are encountered.
cfg['error-config-category'] = 'UserLinks transclusions with errors'
 
--------------------------------------------------------------------------------
-- Snippet defaults --
-- Some of the snippets require default values when the user doesn't specify --
-- "project" or "lang" arguments. Those default values are stored here. --
--------------------------------------------------------------------------------
 
-- The short project interwiki prefix.
cfg['snippet-project-default'] = 'w'
 
-- The long project interwiki prefix.
cfg['snippet-projectlong-default'] = 'wikipedia'
 
-- The MediaWiki language code for the wiki.
cfg['snippet-lang-default'] = 'en'
 
--------------------------------------------------------------------------------
-- LinkEnd tableconfiguration headers --
--------------------------------------------------------------------------------
 
return cfg -- Don't edit this line.
cfg['linktable-codeheader'] = 'Code'
cfg['linktable-previewheader'] = 'Preview'
 
return cfg