DigimonWiki
Advertisement

Documentation for this module may be created at Module:HF/doc

local HF = mw.InfoboxBuilderHF
local getArgs = require('Dev:Arguments').getArgs

function HF.bareFile( frame )
    local args = getArgs(frame)
    local reference = args[1] or ''
    local response = reference:match('%[?%[?([^%|]*)%|?'):gsub('%[%[', ''):gsub('%]%]', '')
    return response
end

return HF
Advertisement