Module:ElementAchievementHeader: Difference between revisions
// via Wikitext Extension for VSCode |
// via Wikitext Extension for VSCode |
||
| Line 67: | Line 67: | ||
) | ) | ||
else | else | ||
-- No achievement found - create phantom row with visible debug info | -- No achievement found - create phantom row with directly visible debug info | ||
local visibleDebugInfo = string.format( | |||
"DEBUG: Page ID=%s, Found %d achievements, Title achievement=%s", | |||
tostring(pageId), | |||
achievementCount, | |||
achievementId or "none" | |||
) | |||
return string.format( | return string.format( | ||
'|-\n! colspan="2" class="achievement-header-phantom" | | '|-\n! colspan="2" class="achievement-header-phantom" style="font-size:85%%; color:#777;" | %s %s', | ||
visibleDebugInfo, | |||
debugInfo | debugInfo | ||
) | ) | ||