Changes
Jump to navigation
Jump to search
Inverted the sense of a test.
local content = t.contents or ""
local params = ""
if ( "spannowiki" == name or "divref" == name or "blockquotepre" == name or "supgallery" == name or "poem" == name ) then -- We have to preprocess these, so that they are properly turned into so-called "strip markers" in the generated wikitext.
for n,v in pairs(t.params) do
params = params .. " |" .. n .. "=\"" .. v .. "\""
end
return frame:preprocess("<{{#tag:" .. name .. params .. ">|" .. content .. "</" .. name params .. ">}}")
else
-- Everything else we can just generate directly, without calling the preprocessor.
for n,v in pairs(t.params) do
params = params .. "|" .. n .. "=\"" .. v.. "\""
end
return frame:preprocess("{{#tag:<" .. name .. params .. "|>" .. content .. params "</" .. name .. "}}>")
end
end