Module:SkillInfoCard: Difference between revisions
From Eco - English Wiki
| [checked revision] | [checked revision] |
Created page with "local p = {} local Utils = require('Module:Utils') local IconUtils = require('Module:IconUtils') local L = require('Module:Localization') function p.main(frame) return frame.args[1] end return p" |
No edit summary |
||
| Line 4: | Line 4: | ||
local IconUtils = require('Module:IconUtils') | local IconUtils = require('Module:IconUtils') | ||
local L = require('Module:Localization') | local L = require('Module:Localization') | ||
local Lang = Utils.getLanguageName() | |||
function p.main(frame) | function p.main(frame) | ||
local PageName = frame.args[1] | |||
if (Lang == 'English') then SkillName = PageName else SkillName = Util.SkillSearch(PageName, Lang) end | |||
return SkillName | |||
end | end | ||
return p | return p | ||
Revision as of 20:20, 6 July 2025
ATTENTION! Data files are generated using game data and are not intended for manual editing.
Warning about use
To prevent multiple call of data array, you must use the function: local SkillInfoCard = mw.loadData("Module:SkillInfoCard")
local p = {}
local Utils = require('Module:Utils')
local IconUtils = require('Module:IconUtils')
local L = require('Module:Localization')
local Lang = Utils.getLanguageName()
function p.main(frame)
local PageName = frame.args[1]
if (Lang == 'English') then SkillName = PageName else SkillName = Util.SkillSearch(PageName, Lang) end
return SkillName
end
return p