Module:Face: Difference between revisions
From Elwiki
No edit summary |
No edit summary |
||
Line 27: | Line 27: | ||
local data = args[2] | local data = args[2] | ||
local isBase = not data or data == base; | local isBase = not data or data == base; | ||
local pathIndex | local pathIndex, jobIndex, transString = "" | ||
local link = args.link and (isBase and character or args.link) or "" | local link = args.link and (isBase and character or args.link) or "" | ||
local lang = args.link and args.lang and ("/" .. args.lang) or "" | local lang = args.link and args.lang and ("/" .. args.lang) or "" | ||
local scale = args.scale or 1 | local scale = args.scale or 1 | ||
local charId = string.len( | local id = CHARACTER_ID[character] | ||
local charId = string.len(id) == 1 and ("0" .. id) or id | |||
if isBase then | if isBase then |