[dismiss]
The wiki is currently a work in progress. If you'd like to help out, please check the Community Portal and our getting started guide. Also, check out our sister project on poewiki.net.
Module:Skill link/config: Difference between revisions
Jump to navigation
Jump to search
m (1 revision imported) |
No edit summary |
||
Line 1: | Line 1: | ||
------------------------------------------------------------------------------- | ------------------------------------------------------------------------------- | ||
-- | -- | ||
-- Configuration for Module:Skill link | -- Configuration for [[Module:Skill link]] | ||
-- | -- | ||
------------------------------------------------------------------------------- | ------------------------------------------------------------------------------- | ||
Line 29: | Line 29: | ||
-- Constants | -- Constants | ||
-- ---------------------------------------------------------------------------- | -- ---------------------------------------------------------------------------- | ||
-- Wrapper templates | |||
cfg.wrappers = { | |||
skill_link = { | |||
'Template:Skill link', | |||
}, | |||
query_skill_infobox = { | |||
'Template:Query skill infobox', | |||
}, | |||
} | |||
cfg.attach_template = 'Template:Cargo/main_pages/attach' | |||
cfg.parameters = { | cfg.parameters = { |
Latest revision as of 19:19, 19 April 2025
This is the configuration file for Module:Skill link. This file can be edited to allow easy translation/porting of the module to other wikis.
The above documentation is transcluded from Module:Skill link/config/doc.
Editors can experiment in this module's sandbox and testcases pages.
Subpages of this module.
Editors can experiment in this module's sandbox and testcases pages.
Subpages of this module.
-------------------------------------------------------------------------------
--
-- Configuration for [[Module:Skill link]]
--
-------------------------------------------------------------------------------
local cfg = {}
-- ----------------------------------------------------------------------------
-- i18n
-- ----------------------------------------------------------------------------
cfg.i18n = {}
cfg.i18n.errors = {
missing_id_parameter = 'id parameter must be specified, please choose only one of these ids:<br>%s',
multiple_results = 'Too many skills found with q_where = %s. Please choose only one of the following ids:<br>%s',
no_results = 'No results found.',
category = 'Pages with skill infobox errors',
-- Skill link:
invalid_args = 'id, page or name must be specified',
no_results_found = 'No skills found with q_where = %s',
invalid_format = 'Invalid return format specified: %s',
broken_skill_links = 'Pages with broken skill links',
}
-- ----------------------------------------------------------------------------
-- Constants
-- ----------------------------------------------------------------------------
-- Wrapper templates
cfg.wrappers = {
skill_link = {
'Template:Skill link',
},
query_skill_infobox = {
'Template:Query skill infobox',
},
}
cfg.attach_template = 'Template:Cargo/main_pages/attach'
cfg.parameters = {
name = 'skill.active_skill_name',
icon = 'skill.icon',
html = 'skill.html',
}
cfg.selectors = {'id', 'page', 'skill_name'}
return cfg