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: | "<!-- Achievement Debug: achievementId='%s', displayName='%s', achievementId2='%s', pageId='%s' -->", | ||
achievementId or "nil", | |||
displayName or "nil", | displayName 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 | 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( | ||