Module:T-Campaign: Difference between revisions
// via Wikitext Extension for VSCode |
// via Wikitext Extension for VSCode |
||
| Line 185: | Line 185: | ||
end | end | ||
-- | -- Use the centralized NoticeFactory to create the notice | ||
local | local noticeOptions = { | ||
type = "campaign-js", | type = "campaign-js", | ||
position = "top", | position = "top", | ||
content = bannerContent, | content = bannerContent, | ||
| Line 194: | Line 194: | ||
} | } | ||
return WikitextProcessor.createNoticeForJS(noticeOptions) .. ErrorHandling.formatCombinedOutput(context) | |||
end | end | ||
} | } | ||