Module:TemplateHelpers: Difference between revisions

// via Wikitext Extension for VSCode
// via Wikitext Extension for VSCode
Line 405: Line 405:
     -- If achievement support is needed, use AchievementSystem
     -- If achievement support is needed, use AchievementSystem
     if options.achievementSupport then
     if options.achievementSupport then
         local AchievementSystem = require('Module:AchievementSystem')
         return require('Module:AchievementSystem').renderTitleBlockWithAchievement(
        local achievementClass = options.achievementClass or ""
            args, titleClass, titleText,
        local achievementId = options.achievementId or ""
            options.achievementClass or "",
        local achievementName = options.achievementName or ""
            options.achievementId or "",
       
            options.achievementName or ""
        return AchievementSystem.renderTitleBlockWithAchievement(
            args, titleClass, titleText, achievementClass, achievementId, achievementName
         )
         )
     else
     else
         -- Otherwise use the basic title block from TemplateStructure
         -- Otherwise use the basic title block from TemplateStructure
         local TemplateStructure = require('Module:TemplateStructure')
         return require('Module:TemplateStructure').renderTitleBlock(args, titleClass, titleText)
        return TemplateStructure.renderTitleBlock(args, titleClass, titleText)
     end
     end
end
end