Path of Exile Wiki

Please consider helping keep the wiki up to date. Check the to-do list of updates needed for version 3.14.0.

Game data exports will becoming later as the technical changes in addition to regular changes take some more time.

READ MORE

Path of Exile Wiki
Advertisement
Module documentation[view] [edit] [history] [purge]

This module implements the following templates:

local getArgs = require('Module:Arguments').getArgs
local util = require('Module:Util')
local messageBox = require('Module:Message box')

local p = {}
local g_frame, g_args

----------------------------------------------------------------------------
-- Meta module - Implements Template:Meta module
----------------------------------------------------------------------------

function p.meta_module(frame)
    g_args = getArgs(frame, {
        parentFirst = true
    })
    g_frame = util.misc.get_frame(frame)
    local text = mw.html.create()
    text
        :tag('b')
            :wikitext('This is a [[:Category:Meta modules|meta module]] ')
            :done()
        :wikitext('that is meant to be used only by other modules. It should not be invoked in wikitext.')
    local mbox = messageBox.main('mbox', {
        type = 'notice',
        text = tostring(text),
    })
    local cat = util.misc.add_category('Meta modules', {namespace=828, namespace_blacklist={}}) -- 828 = Module namespace
    local html = mw.html.create()
        :wikitext(mbox)
        :wikitext(cat)
    return tostring(html)
end

return p
Advertisement