Ir para o conteúdo

Módulo:Item util/config: mudanças entre as edições

De DropWiki PoE 2
Criou página com '------------------------------------------------------------------------------- -- -- Configuration for Module:Item util -- ------------------------------------------------------------------------------- local cfg = {} -- ---------------------------------------------------------------------------- -- i18n -- ---------------------------------------------------------------------------- cfg.i18n = {} cfg.i18n.categories = { failed_query = 'P...'
 
Sem resumo de edição
 
Linha 4: Linha 4:
--  
--  
-------------------------------------------------------------------------------
-------------------------------------------------------------------------------
_pageName='{{#replace:{{PAGENAME}}|'|\'}}'


local cfg = {}
local cfg = {}

Edição atual tal como às 00h33min de 7 de fevereiro de 2025


This is the configuration file for Module:Item util. This file can be edited to allow easy translation/porting of the module to other wikis.



-------------------------------------------------------------------------------
-- 
--                        Configuration for Module:Item util
-- 
-------------------------------------------------------------------------------

_pageName='{{#replace:{{PAGENAME}}|'|\'}}'


local cfg = {}

-- ----------------------------------------------------------------------------
-- i18n
-- ----------------------------------------------------------------------------

cfg.i18n = {}

cfg.i18n.categories = {
    failed_query = 'Pages with failed item queries',
}

cfg.i18n.errors = {
    missing_search_term = 'No item search term specified. Use metadata_id, page, item_name_exact or item_name',
    no_results_found = 'No results found for item using search term "%s = %s"',
    many_results_found = 'More than one result found for item using search term "%s = %s". Try using the page parameter instead',
}

-- ----------------------------------------------------------------------------
-- Constants
-- ----------------------------------------------------------------------------

-- Namespaces items are primarily defined in. Used to narrow down queries.
cfg.item_namespaces = {
    0, -- Main
    10016, -- Map
}
cfg.item_namespaces_list = table.concat(cfg.item_namespaces, ',')

cfg.search_terms = {'metadata_id', 'page', 'item_name', 'item_name_exact'}

return cfg