Mòideal:UserLinks/config

O Wiktionary

(deasbaireachd⧼tpt-languages-separator⧽deasaich⧼tpt-languages-separator⧽eachdraidh⧼tpt-languages-separator⧽ceanglaichean⧼tpt-languages-separator⧽doc⧼tpt-languages-separator⧽bogsa-gainmhich⧼tpt-languages-separator⧽cùisean deuchainn)

This module generates links about a given user. It is used to generate templates such as {{user}}, {{user5}}, and {{admin}}, usually through its wrapper template {{user-multi}}.

Foincseanan - Functions

Prìomh - Main

The main function implements the {{user-multi}} template. It generates a list of links about a given user. Please see the template page for documentation.

Singilte - Single

The single function generates a single link about a given user. See {{User-multi/link}} for documentation.

Clàr ceangail -Link table

Teamplaid:User-multi/link/documentation The linktable function generates a wikitext table containing the possible link codes that can be used with the main and single functions, along with example output for each code. It is used on the documentation pages at Teamplaid:User-multi/doc and Teamplaid:User-multi/link/documentation.

It is displayed with the following code:

{{#invoke:UserLinks|linktable}}

Às-phortaich gu Uician eile - Porting to other wikis

If you want to use this module on another wiki, there are a few modules that you must also copy across, and some that can be used but are not essential.

Required modules:

Mòidealan roghainneil - Optional modules

After you have copied over the necessary modules, you should adjust the configuration settings in Mòideal:UserLinks/config for your language and for your wiki's setup.



--------------------------------------------------------------------------------
--                            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'] = 'deasbaireachd'

-- The user's contributions.
cfg['display-contributions'] = 'mùthaidhean'

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

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

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

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

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

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

-- CentralAuth, the global account manager for the user.
cfg['display-centralauth'] = 'àrd-uachdaranachd'

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

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

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

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

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

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

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

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

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

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

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

-- 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'] = 'luchdaidhean suas'

--------------------------------------------------------------------------------
--                                  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:Iarrtasan airson rianaireachd'

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

-- 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'] = 'gun ainm-cleachdaiche'
cfg['error-nousername-section'] = 'Gun ainm-cleachdaiche'

-- 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" chan e pròiseact dligheach no còd cànain a th ’ann'
cfg['error-invalidproject-section'] = 'Chan e pròiseact dligheach no còd cànain a th ’ann'

-- 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" chan e còd cànain dligheach a th ’ann'
cfg['error-invalidlanguage-section'] = 'Chan e còd cànain dligheach'

-- 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'] = 'cha deach còd ceangail a shònrachadh'
cfg['error-nolinkcode-section'] = 'Cha deach còd ceangail a shònrachadh'

-- The link code passed to the module was malformed. This means it was either
-- not a string value or it was the blank string.
cfg['error-malformedlinkcode'] = 'còd ceangail droch-chùmta air a lorg'
cfg['error-malformedlinkcode-section'] = 'Còd ceangail droch-chùmta air a lorg'

-- 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" chan e còd ceangail dligheach a th ’ann'
cfg['error-invalidlinkcode-section'] = 'Chan e còd ceangail dligheach a th ’ann'

-- 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'] = 'chan eil criomag ann airson an iuchair "$1"'
cfg['error-nosnippet-section'] = 'Chan eil criomag ann'

--------------------------------------------------------------------------------
--                             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'] = '[[Teamplaid:User-multi|User-multi]] mearachd:'
	.. ' $1 ([[Teamplaid:User-multi#$2|cobhair]]).'

-- The error message used when no section link is available. $1 is the error
-- message.
cfg['error-config-message-nohelp'] = '[[Teamplaid:User-multi|User-multi]] mearachd:'
	.. ' $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'] = 'gd'

--------------------------------------------------------------------------------
--                              Link table headers                            --
-- The headers used in the table of links used on documentation pages.        --
--------------------------------------------------------------------------------

-- The link code.
cfg['linktable-codeheader'] = 'Còd'

-- The link preview.
cfg['linktable-previewheader'] = 'Ro-shealladh'

--------------------------------------------------------------------------------
--                              End configuration                             --
--------------------------------------------------------------------------------

return cfg -- Don't edit this line.