Module:ElementAchievementHeader: Difference between revisions

// via Wikitext Extension for VSCode
// via Wikitext Extension for VSCode
Line 41: Line 41:
             -- Include debug information
             -- Include debug information
             local debugInfo = string.format(
             local debugInfo = string.format(
                 "<!-- Achievement Debug: cssClass='%s', displayName='%s', achievementId='%s', pageId='%s' -->",
                 "<!-- Achievement Debug: achievementId='%s', displayName='%s', achievementId2='%s', pageId='%s' -->",
                 cssClass or "nil",  
                 achievementId or "nil",  
                 displayName or "nil",
                 displayName or "nil",
                 achievementId or "nil",
                 achievementId2 or "nil",
                 pageId or "nil"
                 pageId or "nil"
             )
             )
              
              
             -- If title achievement found, create a populated row (exact match with original)
             -- If title achievement found, create a populated row (exact match with original)
             if cssClass ~= "" and displayName ~= "" and achievementId ~= "" then
             if achievementId ~= "" and displayName ~= "" and achievementId2 ~= "" then
                 -- Exactly matching original HTML structure from LuaTemplatePerson.lua
                 -- Exactly matching original HTML structure from LuaTemplatePerson.lua
                 return string.format(
                 return string.format(