Module:Item link/config: Difference between revisions
Jump to navigation
Jump to search
>Vinifera7 m (Protected "Module:Item link/config" ([Edit=Allow only administrators] (indefinite) [Move=Allow only administrators] (indefinite))) |
m (7 revisions imported) |
||
(4 intermediate revisions by the same user not shown) | |||
Line 19: | Line 19: | ||
cfg.i18n.errors = { | cfg.i18n.errors = { | ||
alt_art_undefined = 'Item link: Image parameter was specified, but there is no alternate art defined on page "%s"', | alt_art_undefined = 'Item link: Image parameter was specified, but there is no alternate art defined on page "%s"', | ||
alt_art_invalid_index = 'Item Link: Alternate art with index/name "%s" not found on page "%s"', | alt_art_invalid_index = 'Item Link: Alternate art with index/name "%s" not found on page "%s"', | ||
Line 35: | Line 32: | ||
cfg.parameters = { | cfg.parameters = { | ||
name = ' | name = 'name', | ||
inventory_icon = ' | inventory_icon = 'inventory_icon', | ||
html = ' | html = 'html', | ||
width = ' | width = 'size_x', | ||
height = ' | height = 'size_y', | ||
} | } | ||
return cfg | return cfg |
Latest revision as of 16:46, 25 September 2024
This is the configuration file for Module:Item link. This file can be edited to allow easy translation/porting of the module to other wikis.
The above documentation is transcluded from Module:Item 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:Item link
--
-------------------------------------------------------------------------------
local cfg = {}
-- ----------------------------------------------------------------------------
-- i18n
-- ----------------------------------------------------------------------------
cfg.i18n = {}
cfg.i18n.categories = {
-- maintenance cats
broken_item_links = 'Pages with broken item links',
}
cfg.i18n.errors = {
alt_art_undefined = 'Item link: Image parameter was specified, but there is no alternate art defined on page "%s"',
alt_art_invalid_index = 'Item Link: Alternate art with index/name "%s" not found on page "%s"',
}
-- ----------------------------------------------------------------------------
-- Constants
-- ----------------------------------------------------------------------------
cfg.image_size = 39
cfg.image_size_full = cfg.image_size * 2
cfg.parameters = {
name = 'name',
inventory_icon = 'inventory_icon',
html = 'html',
width = 'size_x',
height = 'size_y',
}
return cfg