Module:Guide/config: Difference between revisions

From Path of Exile 2 Wiki
Jump to navigation Jump to search
(Created page with "------------------------------------------------------------------------------- -- -- Configuration for Module:New content -- ------------------------------------------------------------------------------- local cfg = {} -- ---------------------------------------------------------------------------- -- i18n -- ---------------------------------------------------------------------------- cfg.i18n = {} cfg.i18n.message_box = { guide = 'This is a...")
 
(icon)
 
(5 intermediate revisions by the same user not shown)
Line 14: Line 14:


cfg.i18n.message_box = {
cfg.i18n.message_box = {
    guide = 'This is a [[Project:Guides|guide]].',
     guide_subject = 'This is a [[Project:Guides|guide]] on the subject of %s.',
     guide_subject = 'This is a [[Project:Guides|guide]] on the subject of %s.',
     version_valid = 'Valid as of [[version %s]].',
     version_valid = 'Valid as of [[version %s]].',
     last_updated = 'Last updated on %s.',
     last_updated = 'Last updated on %s.',
}
cfg.i18n.table = {
    guide = 'Guide',
    subject = 'Subject',
    version = 'Version valid',
    date = 'Last updated',
    version_link = '[[Version %s|%s]]',
    no_results = 'No results',
}
}


cfg.i18n.icons = {
cfg.i18n.icons = {
     guide = 'Surveyor\'s Compass inventory icon.png',
     guide = 'Balbala\'s Barya inventory icon.png',
}
}


Line 45: Line 53:
         'Template:Guide',
         'Template:Guide',
     },
     },
     guide_list = {
     guide_table = {
         'Template:Guide list',
         'Template:Guide table',
     },
     },
}
}

Latest revision as of 07:42, 7 December 2025

Module documentation[view] [edit] [history] [purge]


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


-------------------------------------------------------------------------------
-- 
--                    Configuration for Module:New content
-- 
-------------------------------------------------------------------------------

local cfg = {}

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

cfg.i18n = {}

cfg.i18n.message_box = {
    guide_subject = 'This is a [[Project:Guides|guide]] on the subject of %s.',
    version_valid = 'Valid as of [[version %s]].',
    last_updated = 'Last updated on %s.',
}

cfg.i18n.table = {
    guide = 'Guide',
    subject = 'Subject',
    version = 'Version valid',
    date = 'Last updated',
    version_link = '[[Version %s|%s]]',
    no_results = 'No results',
}

cfg.i18n.icons = {
    guide = 'Balbala\'s Barya inventory icon.png',
}

cfg.i18n.categories = {
    guides = 'Guides',
}

cfg.i18n.templates = {
    message_box = 'Message box',
}

cfg.i18n.errors = {
    no_subject = 'an unspecified subject',
}

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

-- Wrapper templates
cfg.wrappers = {
    guide = {
        'Template:Guide',
    },
    guide_table = {
        'Template:Guide table',
    },
}

-- Attach templates
cfg.attach_templates = {
    guides = 'Template:Guide/cargo/guides/attach',
}

-- Guide namespace
cfg.guide_namespace = 10014

return cfg