Modul:Calendar date: Perbedaan antara revisi

Konten dihapus Konten ditambahkan
Glorious Engine (bicara | kontrib)
←Membuat halaman berisi '--[[ Display Gregorian date of a holiday that moves year to year. Date data can be obtained from multiple sources as configured in Module:Calendar date/Events "lo...'
 
Uzume (bicara | kontrib)
strict
 
(Satu revisi perantara oleh satu pengguna lainnya tidak ditampilkan)
Baris 9:
]]
 
require('Module:No globalsstrict')
 
local p = {}
Baris 388:
if cite then
cite = ""
if cfg.datatypeciteurl ==and "localfile"cfg.accessdate and cfg.source and cfg.name then
local citetitle = cfg.citetitle
if cfg.citeurl and cfg.accessdate and cfg.source and cfg.name then
if cfg.sourcecitetitle == nil then
cite = frame:preprocess('<ref name="' .. holiday .. ' dates">{{cite web |url=' .. cfg.citeurl .. ' |title=Dates for ' .. cfg.name .. ' |publisher=' .. cfg.source .. '|accessdate=' .. cfg.accessdate .. '}}</ref>')
citetitle = 'Dates for ' .. cfg.name
end
elseif cfg.datatype == "calculator" then
if cfg.source then
cite = frame:preprocess('<ref name="' .. holiday .. ' dates">' .. cfg.source .. '</ref>')
else
cite = ""
end
cite = frame:preprocess('<ref name="' .. holiday .. ' dates">{{cite web |url=' .. cfg.citeurl .. ' |title=Dates for ' .. cfg.namecitetitle .. ' |publisher=' .. cfg.source .. '|accessdate=' .. cfg.accessdate .. '}}</ref>')
elseif cfg.datatype == "calculator"source then
cite = frame:preprocess('<ref name="' .. holiday .. ' dates">' .. cfg.source:gsub("YYYY", date) .. '</ref>')
else
cite = ""
end
else