Module:Face: Difference between revisions

no edit summary
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 jobIndex = ""
    local 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(CHARACTER_ID[character]) == 1 and ("0" .. CHARACTER_ID[character]) or CHARACTER_ID[character]
    local id = CHARACTER_ID[character]
     local charId = string.len(id) == 1 and ("0" .. id) or id


     if isBase then
     if isBase then