Module:T-Campaign: Difference between revisions
// via Wikitext Extension for VSCode |
// via Wikitext Extension for VSCode |
||
| Line 157: | Line 157: | ||
return tonumber(frameArgs._recursion_depth or parentArgs._recursion_depth) or 0 | return tonumber(frameArgs._recursion_depth or parentArgs._recursion_depth) or 0 | ||
end | end | ||
| Line 202: | Line 185: | ||
end | end | ||
-- The "JavaScript Escape Hatch" | -- The "Leaner JavaScript Escape Hatch" | ||
local noticeData = { | local noticeData = { | ||
type = "campaign-js", -- New type for JS handling | type = "campaign-js", -- New type for JS handling | ||
position = "top", | position = "top", | ||
content = | content = bannerContent, | ||
title = | title = titleText, | ||
cssClass = cssClass | cssClass = cssClass | ||
} | } | ||