Module:Citation/CS1: திருத்தங்களுக்கு இடையிலான வேறுபாடு

உள்ளடக்கம் நீக்கப்பட்டது உள்ளடக்கம் சேர்க்கப்பட்டது
All the functions not directly associated with {cite} moved to Module:Citation
remove Module:Wikitext requirement no longer used here, and remove parts of createTag no longer needed
வரிசை 5:
--require "mw.text"
 
local z = {}
wikitext = require("Module:Wikitext"),
extensiontags = {
nowiki = true,
ref = true,
gallery = true,
pre = true,
source = true,
categorytree = true,
charinsert = true,
hiero = true,
imagemap = true,
inputbox = true,
math = true,
poem = true,
ref = true,
references = true,
syntaxhighlight = true,
timeline = true,
}
}
 
function hideinprint(content)
வரி 52 ⟶ 32:
local content = t.contents or ""
local attrs = {}
for n,v in pairs(t.params) do
if ( z.extensiontags[name] ) then
nowikiif =(v) true,then
-- We have to preprocess these, so that they are properly turned into so-called "strip markers" in the generated wikitext.
table.insert(attrs, n .. "=\"" .. wikiescape(v) .. "\"")
if ( not frame ) then error ("Please supply an extra frame argument to the createTag() function.") end
local params = {}
for n,v in pairs(t.params) do
table.insert(params, "|" .. n .. "=" .. v)
end
return frame:preprocess("{{#tag:" .. name .. "|" .. content .. table.concat(params) .. "}}")
else
for n,v in pairs(t.params) do
if (v) then
table.insert(attrs, n .. "=\"" .. wikiescape(v) .. "\"")
else
table.insert(attrs, n)
end
end
if ("" == content) then
return "<" .. name .. " " .. table.concat(attrs, " ") .. "/>"
else
return "<" .. name .. " " .. table.concatinsert(attrs, " "n) .. ">" .. content .. "</" .. name .. ">"
end
}end
if ("" == if (vcontent) then
return frame:preprocess("{{#tag:<" .. name .. "| " .. content .. table.concat(paramsattrs, " ") .. "}}/>")
else
return "<" .. name .. " " .. table.concat(attrs, " ") .. ">" .. content .. "</" .. name .. ">"
end
end
"https://tamilar.wiki/w/Module:Citation/CS1" இலிருந்து மீள்விக்கப்பட்டது