Module:T-Campaign: Difference between revisions

// via Wikitext Extension for VSCode
// via Wikitext Extension for VSCode
Line 203: Line 203:
         -- If it's a table, we need to serialize it to see what's inside.
         -- If it's a table, we need to serialize it to see what's inside.
         if type(rawTitle) == 'table' then
         if type(rawTitle) == 'table' then
            -- If it's a table, we need to serialize it to see what's inside.
             -- This is a simple serializer for demonstration.
             -- This is a simple serializer for demonstration.
             local serialized = "{"
             local serialized = "{"
Line 230: Line 229:
         }
         }
          
          
         ErrorHandling.addStatus(context, 'campaignBanner', 'Final placeholder value set', 'CAMPAIGN_NAME = "' .. finalTitle .. '"')
         ErrorHandling.addStatus(context, 'campaignBanner', 'Final placeholder value set', 'CAMPAIGN_NAME = "' .. cleanTitle .. '"')
          
          
         bannerContent = WikitextProcessor.processContentForFrontend(bannerContent, placeholderValues, context)
         bannerContent = WikitextProcessor.processContentForFrontend(bannerContent, placeholderValues, context)