local Filename = {}
local lib = require('Модуль:Feature')
local UE = require("Dev:User error")
function Filename.herosquare(frame)
local args; if frame.args == nil then args = lib.arguments(frame) else args = lib.arguments(frame.args) end
local hero = args["hero"] or args[1]
local heroData = require("Модуль:HeroData")
if(heroData.get{hero, "exists"}) then
icon = heroData.get{hero, "icon"}
else
return UE(
mw.ustring.format(
"Герой %s не найден в Модуль:HeroData/data (message from Модуль:Filename)",
hero),
"LuaError")
end
return mw.ustring.format('%s', icon) or 'ChampionSquare.png'
end
return Filename