Ir para o conteúdo

Módulo:Item link/config/sandbox

De DropWiki PoE 2
Revisão de 00h31min de 7 de fevereiro de 2025 por Dr.faustobdls (discussão | contribs)
(dif) ← Edição anterior | Revisão atual (dif) | Versão posterior → (dif)

A documentação para este módulo pode ser criada em Módulo:Item link/config/sandbox/doc

-------------------------------------------------------------------------------
-- 
--                    Configuration for Module:Item link
-- 
-------------------------------------------------------------------------------

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


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