Module:ElementAchievementHeader: Difference between revisions
// via Wikitext Extension for VSCode |
// via Wikitext Extension for VSCode |
||
| Line 47: | Line 47: | ||
-- Important: The CSS classes must be directly on the table cell element | -- Important: The CSS classes must be directly on the table cell element | ||
-- The CSS animations are attached to these elements via pseudo-elements | -- The CSS animations are attached to these elements via pseudo-elements | ||
-- Debug information to help diagnose the issue | |||
local debugInfo = string.format("<!-- Achievement Debug: ID=%s, Name=%s, Type=%s, PageID=%s -->", | |||
achievementId or "nil", | |||
displayName or "nil", | |||
achievementType or "nil", | |||
pageId or "nil") | |||
return string.format( | return string.format( | ||
'|-\n! colspan="2" class="%s %s" data-achievement-id="%s" data-achievement-name="%s" | %s', | '|-\n! colspan="2" class="%s %s" data-achievement-id="%s" data-achievement-name="%s" | %s%s', | ||
headerClass, achievementId, achievementId, displayName, displayName | headerClass, achievementId, achievementId, displayName, displayName, debugInfo | ||
) | ) | ||
end | end | ||