Module:FormatTemplate/sandbox/trialruns2

From MOASSpedia
Jump to navigation Jump to search

Documentation for this module may be created at Module:FormatTemplate/sandbox/trialruns2/doc

 ---- beginning of module ----
local p = {}

getArgs = require('Module:Arguments').getArgs

p.main = function(frame)
args = getArgs(frame)

 -- begin variable table
local t_note = args['note'] and mw.text.trim(args['note'])
local t_rowheader = args['rowheader'] and mw.text.trim(args['rowheader'])
local t_date = args['date'] and mw.text.trim(args['date'])
local t_archivedate = args['archivedate'] and mw.text.trim(args['archivedate'])
local t_dvd = args['dvd'] and mw.text.trim(args['dvd'])
local t_month = args['month'] and mw.text.trim(args['month'])
local t_archiveurl = args['archiveurl'] and mw.text.trim(args['archiveurl'])
local t_url = args['url'] and mw.text.trim(args['url'])
local t_refname = args['refname'] and mw.text.trim(args['refname'])
local t_year = args['year'] and mw.text.trim(args['year'])
local t_1 = args[1] and mw.text.trim(args[1])
local t_week = args['week'] and mw.text.trim(args['week'])
local t_3 = args[3] and mw.text.trim(args[3])
local t_2 = args[2] and mw.text.trim(args[2])
local t_albumid = args['albumid'] and mw.text.trim(args['albumid'])
local t_id = args['id'] and mw.text.trim(args['id'])
local t_artist = args['artist'] and mw.text.trim(args['artist'])
local t_album = args['album'] and mw.text.trim(args['album'])
local t_refgroup = args['refgroup'] and mw.text.trim(args['refgroup'])
local t_publisher = args['publisher'] and mw.text.trim(args['publisher'])
local t_title = args['title'] and mw.text.trim(args['title'])
local t_publishdate = args['publishdate'] and mw.text.trim(args['publishdate'])
local t_location = args['location'] and mw.text.trim(args['location'])
local t_page = args['page'] and mw.text.trim(args['page'])
local t_work = args['work'] and mw.text.trim(args['work'])
local t_accessdate = args['accessdate'] and mw.text.trim(args['accessdate'])
local p_0, p_1, p_2, p_4, p_5, p_6, p_7, p_8, p_9, p_11, p_12, p_13, p_14, p_15, p_28, p_41, p_54, p_67, p_80, p_93, p_106, p_119, p_132, p_145, p_158, p_171, p_184, p_197, p_210, p_223, p_236, p_249, p_262, p_275, p_288, p_301, p_314, p_327, p_340, p_353, p_366, p_379, p_392, p_405, p_418, p_431, p_444, p_457, p_470, p_483, p_496, p_509, p_522, p_535, p_548, p_561, p_574, p_587, p_600, p_613, p_626, p_639, p_652, p_665, p_678, p_691, p_704, p_717, p_730, p_743, p_756, p_769, p_782, p_795, p_808, p_821, p_834, p_847, p_860, p_873, p_886, p_899, p_912, p_925, p_938, p_951, p_964, p_977, p_990, p_1012, p_1013, p_1014, p_1015, p_1047
 -- end variable table

 -- begin parser function translations
if mw.text.trim((t_rowheader or "")) == mw.text.trim("true") then
p_0 = '!scope="row"'
else p_0 = ""
end

if mw.text.trim((t_location or "")) ~= "" then
    p_4 = (t_location or "{{{location}}}")
else
    p_4 = ""
end

if mw.text.trim((t_work or "")) ~= "" then
    p_5 = (t_work or "{{{work}}}")
else
    p_5 = ""
end

if mw.text.trim((t_page or "")) ~= "" then
    p_6 = (t_page or "{{{page}}}")
else
    p_6 = ""
end

if mw.text.trim((t_date or "")) ~= "" then
    p_7 = (t_date or "{{{date}}}")
else
    p_7 = ""
end

if mw.text.trim((t_publisher or "")) ~= "" then
    p_8 = (t_publisher or "{{{publisher}}}")
else
    p_8 = ""
end

if mw.text.trim((t_accessdate or "")) ~= "" then
    p_9 = (t_accessdate or "{{{accessdate}}}")
else
    p_9 = ""
end

if mw.text.trim((t_publishdate or "")) ~= "" then
    p_11 = (t_publishdate or "{{{publishdate}}}") .. ". "
else
    p_11 = ""
end

if mw.text.trim((t_accessdate or "")) ~= "" then
    p_12 = " Retrieved " .. (t_accessdate or "{{{accessdate}}}") .. ". "
else
    p_12 = ""
end

if mw.text.trim((t_refname or "")) ~= "" then
    p_13 = (t_refname or "{{{refname}}}")
else
    p_13 = '"ac_' .. (t_1 or "") .. "_" .. (t_artist or "") .. '"'
end

if mw.text.trim((t_refgroup or "")) ~= "" then
    p_14 = ' "' .. (t_refgroup or "{{{refgroup}}}") .. '"'
else
    p_14 = ""
end

if mw.text.trim(" " .. (t_3 or "") .. " ") ~= "" then
    p_2 = " {{#tag:ref|{{cite news|url=" .. (t_url or "{{{url}}}") .. "|title=" .. (t_title or "{{{title}}}") .. "|location=" .. p_4 .. "|work=" .. p_5 .. "|page=" .. p_6 .. "|date=" .. p_7 .. "|publisher=" .. p_8 .. "|accessdate=" .. p_9 .. "}}}} "
else
    p_2 = " {{#tag:ref|[{{BillboardURLbyName|artist=" .. (t_artist or "{{{artist}}}") .. "|chart=Billboard 200}}" .. ' "' .. (t_artist or "{{{artist}}}") .. [=[ Album & Song Chart History"] '']=] ..
"[[Billboard charts|Billboard]]'' [[Billboard 200|200]] for " .. (t_artist or "{{{artist}}}") .. ". [[Prometheus Global Media]]. " .. p_11 .. " " .. p_12 .. "|name=" .. p_13 .. "|group=" .. p_14 .. "}}"
end

if mw.text.trim(" " .. (t_3 or "") .. " ") ~= "" then
    p_15 = " {{#tag:ref|{{cite news|url=" .. (t_url or "{{{url}}}") .. "|title=" .. (t_title or "{{{title}}}") .. "|location=" .. p_4 .. "|work=" .. p_5 .. "|page=" .. p_6 .. "|date=" .. p_7 .. "|publisher=" .. p_8 .. "|accessdate=" .. p_9 .. "}}}} "
else
    p_15 = " {{#tag:ref|" .. '"[' ..
"{{BillboardURLbyName|artist=" .. (t_artist or "{{{artist}}}") .. "|chart=Digital Albums}}" .. [=[ Album & Song Chart History"] '']=] ..
"[[Billboard charts|Billboard]]'' [[Digital Albums]] for " .. (t_artist or "{{{artist}}}") .. ". [[Prometheus Global Media]]. " .. p_11 .. " " .. p_12 .. "|name=" .. p_13 .. "|group=" .. p_14 .. "}}"
end

if mw.text.trim(" " .. (t_3 or "") .. " ") ~= "" then
    p_28 = " {{#tag:ref|{{cite news|url=" .. (t_url or "{{{url}}}") .. "|title=" .. (t_title or "{{{title}}}") .. "|location=" .. p_4 .. "|work=" .. p_5 .. "|page=" .. p_6 .. "|date=" .. p_7 .. "|publisher=" .. p_8 .. "|accessdate=" .. p_9 .. "}}}} "
else
    p_28 = " {{#tag:ref|" .. '"[' ..
"{{BillboardURLbyName|artist=" .. (t_artist or "{{{artist}}}") .. "|chart=Heatseekers Albums}} " .. (t_artist or "{{{artist}}}") .. [=[ Album & Song Chart History"] '']=] ..
"[[Billboard charts|Billboard]]'' [[Top Heatseekers|Top Heatseekers Albums]] for " .. (t_artist or "{{{artist}}}") .. ". [[Prometheus Global Media]]. " .. p_11 .. " " .. p_12 .. "|name=" .. p_13 .. "|group=" .. p_14 .. "}}"
end

if mw.text.trim(" " .. (t_3 or "") .. " ") ~= "" then
    p_41 = " {{#tag:ref|{{cite news|url=" .. (t_url or "{{{url}}}") .. "|title=" .. (t_title or "{{{title}}}") .. "|location=" .. p_4 .. "|work=" .. p_5 .. "|page=" .. p_6 .. "|date=" .. p_7 .. "|publisher=" .. p_8 .. "|accessdate=" .. p_9 .. "}}}} "
else
    p_41 = " {{#tag:ref|" .. '"[' ..
"{{BillboardURLbyName|artist=" .. (t_artist or "{{{artist}}}") .. "|chart=Dance/Electronic Albums C}} " .. (t_artist or "{{{artist}}}") .. [=[ Album & Song Chart History"] '']=] ..
"[[Billboard charts|Billboard]]'' [[Dance/Electronic Albums]] for " .. (t_artist or "{{{artist}}}") .. ". [[Prometheus Global Media]]. " .. p_11 .. " " .. p_12 .. "|name=" .. p_13 .. "|group=" .. p_14 .. "}}"
end

if mw.text.trim(" " .. (t_3 or "") .. " ") ~= "" then
    p_54 = " {{#tag:ref|{{cite news|url=" .. (t_url or "{{{url}}}") .. "|title=" .. (t_title or "{{{title}}}") .. "|location=" .. p_4 .. "|work=" .. p_5 .. "|page=" .. p_6 .. "|date=" .. p_7 .. "|publisher=" .. p_8 .. "|accessdate=" .. p_9 .. "}}}} "
else
    p_54 = " {{#tag:ref|" .. '"[' ..
"{{BillboardURLbyName|artist=" .. (t_artist or "{{{artist}}}") .. "|chart=R&B/Hip-Hop Albums B}} " .. (t_artist or "{{{artist}}}") .. [=[ Album & Song Chart History"] '']=] ..
"[[Billboard charts|Billboard]]'' [[Top R&B/Hip Hop Albums]] for " .. (t_artist or "{{{artist}}}") .. ". [[Prometheus Global Media]]. " .. p_11 .. " " .. p_12 .. "|name=" .. p_13 .. "|group=" .. p_14 .. "}}"
end

if mw.text.trim(" " .. (t_3 or "") .. " ") ~= "" then
    p_67 = " {{#tag:ref|{{cite news|url=" .. (t_url or "{{{url}}}") .. "|title=" .. (t_title or "{{{title}}}") .. "|location=" .. p_4 .. "|work=" .. p_5 .. "|page=" .. p_6 .. "|date=" .. p_7 .. "|publisher=" .. p_8 .. "|accessdate=" .. p_9 .. "}}}} "
else
    p_67 = " {{#tag:ref|" .. '"[' ..
"{{BillboardURLbyName|artist=" .. (t_artist or "{{{artist}}}") .. "|chart=Rap Albums}} " .. (t_artist or "{{{artist}}}") .. [=[ Album & Song Chart History"] '']=] ..
"[[Billboard charts|Billboard]]'' [[Top Rap Albums]] for " .. (t_artist or "{{{artist}}}") .. ". [[Prometheus Global Media]]. " .. p_11 .. " " .. p_12 .. "|name=" .. p_13 .. "|group=" .. p_14 .. "}}"
end

if mw.text.trim(" " .. (t_3 or "") .. " ") ~= "" then
    p_80 = " {{#tag:ref|{{cite news|url=" .. (t_url or "{{{url}}}") .. "|title=" .. (t_title or "{{{title}}}") .. "|location=" .. p_4 .. "|work=" .. p_5 .. "|page=" .. p_6 .. "|date=" .. p_7 .. "|publisher=" .. p_8 .. "|accessdate=" .. p_9 .. "}}}} "
else
    p_80 = " {{#tag:ref|" .. '"[' ..
"{{BillboardURLbyName|artist=" .. (t_artist or "{{{artist}}}") .. "|chart=Rock Albums}} " .. (t_artist or "{{{artist}}}") .. [=[ Album & Song Chart History"] '']=] ..
"[[Billboard charts|Billboard]]'' [[Top Rock Albums]] for " .. (t_artist or "{{{artist}}}") .. ". [[Prometheus Global Media]]. " .. p_11 .. " " .. p_12 .. "|name=" .. p_13 .. "|group=" .. p_14 .. "}}"
end

if mw.text.trim(" " .. (t_3 or "") .. " ") ~= "" then
    p_93 = " {{#tag:ref|{{cite news|url=" .. (t_url or "{{{url}}}") .. "|title=" .. (t_title or "{{{title}}}") .. "|location=" .. p_4 .. "|work=" .. p_5 .. "|page=" .. p_6 .. "|date=" .. p_7 .. "|publisher=" .. p_8 .. "|accessdate=" .. p_9 .. "}}}} "
else
    p_93 = " {{#tag:ref|" .. '"[' ..
"{{BillboardURLbyName|artist=" .. (t_artist or "{{{artist}}}") .. "|chart=Alternative Albums}} " .. (t_artist or "{{{artist}}}") .. [=[ Album & Song Chart History"] '']=] ..
"[[Billboard charts|Billboard]]'' [[Top Alternative Albums]] for " .. (t_artist or "{{{artist}}}") .. ". [[Prometheus Global Media]]. " .. p_11 .. " " .. p_12 .. "|name=" .. p_13 .. "|group=" .. p_14 .. "}}"
end

if mw.text.trim(" " .. (t_3 or "") .. " ") ~= "" then
    p_106 = " {{#tag:ref|{{cite news|url=" .. (t_url or "{{{url}}}") .. "|title=" .. (t_title or "{{{title}}}") .. "|location=" .. p_4 .. "|work=" .. p_5 .. "|page=" .. p_6 .. "|date=" .. p_7 .. "|publisher=" .. p_8 .. "|accessdate=" .. p_9 .. "}}}} "
else
    p_106 = " {{#tag:ref|" .. '"[' ..
"{{BillboardURLbyName|artist=" .. (t_artist or "{{{artist}}}") .. "|chart=Hard Rock Albums}} " .. (t_artist or "{{{artist}}}") .. [=[ Album & Song Chart History"] '']=] ..
"[[Billboard charts|Billboard]]'' [[Top Hard Rock Albums]] for " .. (t_artist or "{{{artist}}}") .. ". [[Prometheus Global Media]]. " .. p_11 .. " " .. p_12 .. "|name=" .. p_13 .. "|group=" .. p_14 .. "}}"
end

if mw.text.trim(" " .. (t_3 or "") .. " ") ~= "" then
    p_119 = " {{#tag:ref|{{cite news|url=" .. (t_url or "{{{url}}}") .. "|title=" .. (t_title or "{{{title}}}") .. "|location=" .. p_4 .. "|work=" .. p_5 .. "|page=" .. p_6 .. "|date=" .. p_7 .. "|publisher=" .. p_8 .. "|accessdate=" .. p_9 .. "}}}} "
else
    p_119 = " {{#tag:ref|" .. '"[' ..
"{{BillboardURLbyName|artist=" .. (t_artist or "{{{artist}}}") .. "|chart=Folk Albums}} " .. (t_artist or "{{{artist}}}") .. [=[ Album & Song Chart History"] '']=] ..
"[[Billboard charts|Billboard]]'' Folk Albums for " .. (t_artist or "{{{artist}}}") .. ". [[Prometheus Global Media]]. " .. p_11 .. " " .. p_12 .. "|name=" .. p_13 .. "|group=" .. p_14 .. "}}"
end

if mw.text.trim(" " .. (t_3 or "") .. " ") ~= "" then
    p_132 = " {{#tag:ref|{{cite news|url=" .. (t_url or "{{{url}}}") .. "|title=" .. (t_title or "{{{title}}}") .. "|location=" .. p_4 .. "|work=" .. p_5 .. "|page=" .. p_6 .. "|date=" .. p_7 .. "|publisher=" .. p_8 .. "|accessdate=" .. p_9 .. "}}}} "
else
    p_132 = " {{#tag:ref|" .. '"[' ..
"{{BillboardURLbyName|artist=" .. (t_artist or "{{{artist}}}") .. "|chart=Country Albums}} " .. (t_artist or "{{{artist}}}") .. [=[ Album & Song Chart History"] '']=] ..
"[[Billboard charts|Billboard]]'' [[Top Country Albums]] for " .. (t_artist or "{{{artist}}}") .. ". [[Prometheus Global Media]]. " .. p_11 .. " " .. p_12 .. "|name=" .. p_13 .. "|group=" .. p_14 .. "}}"
end

if mw.text.trim(" " .. (t_3 or "") .. " ") ~= "" then
    p_145 = " {{#tag:ref|{{cite news|url=" .. (t_url or "{{{url}}}") .. "|title=" .. (t_title or "{{{title}}}") .. "|location=" .. p_4 .. "|work=" .. p_5 .. "|page=" .. p_6 .. "|date=" .. p_7 .. "|publisher=" .. p_8 .. "|accessdate=" .. p_9 .. "}}}} "
else
    p_145 = " {{#tag:ref|" .. '"[' ..
"{{BillboardURLbyName|artist=" .. (t_artist or "{{{artist}}}") .. "|chart=Bluegrass Albums}} " .. (t_artist or "{{{artist}}}") .. [=[ Album & Song Chart History"] '']=] ..
"[[Billboard charts|Billboard]]'' [[Top Bluegrass Albums]] for " .. (t_artist or "{{{artist}}}") .. ". [[Prometheus Global Media]]. " .. p_11 .. " " .. p_12 .. "|name=" .. p_13 .. "|group=" .. p_14 .. "}}"
end

if mw.text.trim(" " .. (t_3 or "") .. " ") ~= "" then
    p_158 = " {{#tag:ref|{{cite news|url=" .. (t_url or "{{{url}}}") .. "|title=" .. (t_title or "{{{title}}}") .. "|location=" .. p_4 .. "|work=" .. p_5 .. "|page=" .. p_6 .. "|date=" .. p_7 .. "|publisher=" .. p_8 .. "|accessdate=" .. p_9 .. "}}}} "
else
    p_158 = " {{#tag:ref|" .. '"[' ..
"{{BillboardURLbyName|artist=" .. (t_artist or "{{{artist}}}") .. "|chart=Jazz Albums}} " .. (t_artist or "{{{artist}}}") .. [=[ Album & Song Chart History"] '']=] ..
"[[Billboard charts|Billboard]]'' [[Top Jazz Albums]] for " .. (t_artist or "{{{artist}}}") .. ". [[Prometheus Global Media]]. " .. p_11 .. " " .. p_12 .. "|name=" .. p_13 .. "|group=" .. p_14 .. "}}"
end

if mw.text.trim(" " .. (t_3 or "") .. " ") ~= "" then
    p_171 = " {{#tag:ref|{{cite news|url=" .. (t_url or "{{{url}}}") .. "|title=" .. (t_title or "{{{title}}}") .. "|location=" .. p_4 .. "|work=" .. p_5 .. "|page=" .. p_6 .. "|date=" .. p_7 .. "|publisher=" .. p_8 .. "|accessdate=" .. p_9 .. "}}}} "
else
    p_171 = " {{#tag:ref|" .. '"[' ..
"{{BillboardURLbyName|artist=" .. (t_artist or "{{{artist}}}") .. "|chart=Blues Albums}} " .. (t_artist or "{{{artist}}}") .. [=[ Album & Song Chart History"] '']=] ..
"[[Billboard charts|Billboard]]'' [[Top Blues Albums]] for " .. (t_artist or "{{{artist}}}") .. ". [[Prometheus Global Media]]. " .. p_11 .. " " .. p_12 .. "|name=" .. p_13 .. "|group=" .. p_14 .. "}}"
end

if mw.text.trim(" " .. (t_3 or "") .. " ") ~= "" then
    p_184 = " {{#tag:ref|{{cite news|url=" .. (t_url or "{{{url}}}") .. "|title=" .. (t_title or "{{{title}}}") .. "|location=" .. p_4 .. "|work=" .. p_5 .. "|page=" .. p_6 .. "|date=" .. p_7 .. "|publisher=" .. p_8 .. "|accessdate=" .. p_9 .. "}}}} "
else
    p_184 = " {{#tag:ref|" .. '"[' ..
"{{BillboardURLbyName|artist=" .. (t_artist or "{{{artist}}}") .. "|chart=Classical Albums}} " .. (t_artist or "{{{artist}}}") .. [=[ Album & Song Chart History"] '']=] ..
"[[Billboard charts|Billboard]]'' [[Top Classical Albums]] for " .. (t_artist or "{{{artist}}}") .. ". [[Prometheus Global Media]]. " .. p_11 .. " " .. p_12 .. "|name=" .. p_13 .. "|group=" .. p_14 .. "}}"
end

if mw.text.trim(" " .. (t_3 or "") .. " ") ~= "" then
    p_197 = " {{#tag:ref|{{cite news|url=" .. (t_url or "{{{url}}}") .. "|title=" .. (t_title or "{{{title}}}") .. "|location=" .. p_4 .. "|work=" .. p_5 .. "|page=" .. p_6 .. "|date=" .. p_7 .. "|publisher=" .. p_8 .. "|accessdate=" .. p_9 .. "}}}} "
else
    p_197 = " {{#tag:ref|" .. '"[' ..
"{{BillboardURLbyName|artist=" .. (t_artist or "{{{artist}}}") .. "|chart=Latin Albums}} " .. (t_artist or "{{{artist}}}") .. [=[ Album & Song Chart History"] '']=] ..
"[[Billboard charts|Billboard]]'' [[Top Latin Albums]] for " .. (t_artist or "{{{artist}}}") .. ". [[Prometheus Global Media]]. " .. p_11 .. " " .. p_12 .. "|name=" .. p_13 .. "|group=" .. p_14 .. "}}"
end

if mw.text.trim(" " .. (t_3 or "") .. " ") ~= "" then
    p_210 = " {{#tag:ref|{{cite news|url=" .. (t_url or "{{{url}}}") .. "|title=" .. (t_title or "{{{title}}}") .. "|location=" .. p_4 .. "|work=" .. p_5 .. "|page=" .. p_6 .. "|date=" .. p_7 .. "|publisher=" .. p_8 .. "|accessdate=" .. p_9 .. "}}}} "
else
    p_210 = " {{#tag:ref|" .. '"[' ..
"{{BillboardURLbyName|artist=" .. (t_artist or "{{{artist}}}") .. "|chart=Regional Mexican Albums}} " .. (t_artist or "{{{artist}}}") .. [=[ Album & Song Chart History"] '']=] ..
"[[Billboard charts|Billboard]]'' [[Regional Mexican Albums]] for " .. (t_artist or "{{{artist}}}") .. ". [[Prometheus Global Media]]. " .. p_11 .. " " .. p_12 .. "|name=" .. p_13 .. "|group=" .. p_14 .. "}}"
end

if mw.text.trim(" " .. (t_3 or "") .. " ") ~= "" then
    p_223 = " {{#tag:ref|{{cite news|url=" .. (t_url or "{{{url}}}") .. "|title=" .. (t_title or "{{{title}}}") .. "|location=" .. p_4 .. "|work=" .. p_5 .. "|page=" .. p_6 .. "|date=" .. p_7 .. "|publisher=" .. p_8 .. "|accessdate=" .. p_9 .. "}}}} "
else
    p_223 = " {{#tag:ref|" .. '"[' ..
"{{BillboardURLbyName|artist=" .. (t_artist or "{{{artist}}}") .. "|chart=Latin Pop Albums}} " .. (t_artist or "{{{artist}}}") .. [=[ Album & Song Chart History"] '']=] ..
"[[Billboard charts|Billboard]]'' [[Latin Pop Albums]] for " .. (t_artist or "{{{artist}}}") .. ". [[Prometheus Global Media]]. " .. p_11 .. " " .. p_12 .. "|name=" .. p_13 .. "|group=" .. p_14 .. "}}"
end

if mw.text.trim(" " .. (t_3 or "") .. " ") ~= "" then
    p_236 = " {{#tag:ref|{{cite news|url=" .. (t_url or "{{{url}}}") .. "|title=" .. (t_title or "{{{title}}}") .. "|location=" .. p_4 .. "|work=" .. p_5 .. "|page=" .. p_6 .. "|date=" .. p_7 .. "|publisher=" .. p_8 .. "|accessdate=" .. p_9 .. "}}}} "
else
    p_236 = " {{#tag:ref|" .. '"[' ..
"{{BillboardURLbyName|artist=" .. (t_artist or "{{{artist}}}") .. "|chart=Tropical Albums}} " .. (t_artist or "{{{artist}}}") .. [=[ Album & Song Chart History"] '']=] ..
"[[Billboard charts|Billboard]]'' [[Tropical Albums]] for " .. (t_artist or "{{{artist}}}") .. ". [[Prometheus Global Media]]. " .. p_11 .. " " .. p_12 .. "|name=" .. p_13 .. "|group=" .. p_14 .. "}}"
end

if mw.text.trim(" " .. (t_3 or "") .. " ") ~= "" then
    p_249 = " {{#tag:ref|{{cite news|url=" .. (t_url or "{{{url}}}") .. "|title=" .. (t_title or "{{{title}}}") .. "|location=" .. p_4 .. "|work=" .. p_5 .. "|page=" .. p_6 .. "|date=" .. p_7 .. "|publisher=" .. p_8 .. "|accessdate=" .. p_9 .. "}}}} "
else
    p_249 = " {{#tag:ref|" .. '"[' ..
"{{BillboardURLbyName|artist=" .. (t_artist or "{{{artist}}}") .. "|chart=Christian Albums}} " .. (t_artist or "{{{artist}}}") .. [=[ Album & Song Chart History"] '']=] ..
"[[Billboard charts|Billboard]]'' [[Christian Albums]] for " .. (t_artist or "{{{artist}}}") .. ". [[Prometheus Global Media]]. " .. p_11 .. " " .. p_12 .. "|name=" .. p_13 .. "|group=" .. p_14 .. "}}"
end

if mw.text.trim(" " .. (t_3 or "") .. " ") ~= "" then
    p_262 = " {{#tag:ref|{{cite news|url=" .. (t_url or "{{{url}}}") .. "|title=" .. (t_title or "{{{title}}}") .. "|location=" .. p_4 .. "|work=" .. p_5 .. "|page=" .. p_6 .. "|date=" .. p_7 .. "|publisher=" .. p_8 .. "|accessdate=" .. p_9 .. "}}}} "
else
    p_262 = " {{#tag:ref|" .. '"[' ..
"{{BillboardURLbyName|artist=" .. (t_artist or "{{{artist}}}") .. "|chart=Gospel Albums}} " .. (t_artist or "{{{artist}}}") .. [=[ Album & Song Chart History"] '']=] ..
"[[Billboard charts|Billboard]]'' [[Top Gospel Albums]] for " .. (t_artist or "{{{artist}}}") .. ". [[Prometheus Global Media]]. " .. p_11 .. " " .. p_12 .. "|name=" .. p_13 .. "|group=" .. p_14 .. "}}"
end

if mw.text.trim(" " .. (t_3 or "") .. " ") ~= "" then
    p_275 = " {{#tag:ref|{{cite news|url=" .. (t_url or "{{{url}}}") .. "|title=" .. (t_title or "{{{title}}}") .. "|location=" .. p_4 .. "|work=" .. p_5 .. "|page=" .. p_6 .. "|date=" .. p_7 .. "|publisher=" .. p_8 .. "|accessdate=" .. p_9 .. "}}}} "
else
    p_275 = " {{#tag:ref|" .. '"[' ..
"{{BillboardURLbyName|artist=" .. (t_artist or "{{{artist}}}") .. "|chart=Independent Albums}} " .. (t_artist or "{{{artist}}}") .. [=[ Album & Song Chart History"] '']=] ..
"[[Billboard charts|Billboard]]'' [[Independent Albums]] for " .. (t_artist or "{{{artist}}}") .. ". [[Prometheus Global Media]]. " .. p_11 .. " " .. p_12 .. "|name=" .. p_13 .. "|group=" .. p_14 .. "}}"
end

if mw.text.trim(" " .. (t_3 or "") .. " ") ~= "" then
    p_288 = " {{#tag:ref|{{cite news|url=" .. (t_url or "{{{url}}}") .. "|title=" .. (t_title or "{{{title}}}") .. "|location=" .. p_4 .. "|work=" .. p_5 .. "|page=" .. p_6 .. "|date=" .. p_7 .. "|publisher=" .. p_8 .. "|accessdate=" .. p_9 .. "}}}} "
else
    p_288 = " {{#tag:ref|" .. '"[' ..
"{{BillboardURLbyName|artist=" .. (t_artist or "{{{artist}}}") .. "|chart=Catalog Albums}} " .. (t_artist or "{{{artist}}}") .. [=[ Album & Song Chart History"] '']=] ..
"[[Billboard charts|Billboard]]'' [[Top Catalog Albums]] for " .. (t_artist or "{{{artist}}}") .. ". [[Prometheus Global Media]]. " .. p_11 .. " " .. p_12 .. "|name=" .. p_13 .. "|group=" .. p_14 .. "}}"
end

if mw.text.trim(" " .. (t_3 or "") .. " ") ~= "" then
    p_301 = " {{#tag:ref|{{cite news|url=" .. (t_url or "{{{url}}}") .. "|title=" .. (t_title or "{{{title}}}") .. "|location=" .. p_4 .. "|work=" .. p_5 .. "|page=" .. p_6 .. "|date=" .. p_7 .. "|publisher=" .. p_8 .. "|accessdate=" .. p_9 .. "}}}} "
else
    p_301 = " {{#tag:ref|" .. '"[' ..
"{{BillboardURLbyName|artist=" .. (t_artist or "{{{artist}}}") .. "|chart=Reggae Albums}} " .. (t_artist or "{{{artist}}}") .. [=[ Album & Song Chart History"] '']=] ..
"[[Billboard charts|Billboard]]'' Reggae Albums for " .. (t_artist or "{{{artist}}}") .. ". [[Prometheus Global Media]]. " .. p_11 .. " " .. p_12 .. "|name=" .. p_13 .. "|group=" .. p_14 .. "}}"
end

if mw.text.trim(" " .. (t_3 or "") .. " ") ~= "" then
    p_314 = " {{#tag:ref|{{cite news|url=" .. (t_url or "{{{url}}}") .. "|title=" .. (t_title or "{{{title}}}") .. "|location=" .. p_4 .. "|work=" .. p_5 .. "|page=" .. p_6 .. "|date=" .. p_7 .. "|publisher=" .. p_8 .. "|accessdate=" .. p_9 .. "}}}} "
else
    p_314 = " {{#tag:ref|" .. '"[' ..
"{{BillboardURLbyName|artist=" .. (t_artist or "{{{artist}}}") .. "|chart=World Albums}} " .. (t_artist or "{{{artist}}}") .. [=[ Album & Song Chart History"] '']=] ..
"[[Billboard charts|Billboard]]'' World Albums for " .. (t_artist or "{{{artist}}}") .. ". [[Prometheus Global Media]]. " .. p_11 .. " " .. p_12 .. "|name=" .. p_13 .. "|group=" .. p_14 .. "}}"
end

if mw.text.trim(" " .. (t_3 or "") .. " ") ~= "" then
    p_327 = " {{#tag:ref|{{cite news|url=" .. (t_url or "{{{url}}}") .. "|title=" .. (t_title or "{{{title}}}") .. "|location=" .. p_4 .. "|work=" .. p_5 .. "|page=" .. p_6 .. "|date=" .. p_7 .. "|publisher=" .. p_8 .. "|accessdate=" .. p_9 .. "}}}} "
else
    p_327 = " {{#tag:ref|" .. '"[' ..
"{{BillboardURLbyName|artist=" .. (t_artist or "{{{artist}}}") .. "|chart=Top Comedy Albums}} " .. (t_artist or "{{{artist}}}") .. [=[ Album & Song Chart History"] '']=] ..
"[[Billboard charts|Billboard]]'' [[Top Comedy Albums]] for " .. (t_artist or "{{{artist}}}") .. ". [[Prometheus Global Media]]. " .. p_11 .. " " .. p_12 .. "|name=" .. p_13 .. "|group=" .. p_14 .. "}}"
end

if mw.text.trim(" " .. (t_3 or "") .. " ") ~= "" then
    p_340 = " {{#tag:ref|{{cite news|url=" .. (t_url or "{{{url}}}") .. "|title=" .. (t_title or "{{{title}}}") .. "|location=" .. p_4 .. "|work=" .. p_5 .. "|page=" .. p_6 .. "|date=" .. p_7 .. "|publisher=" .. p_8 .. "|accessdate=" .. p_9 .. "}}}} "
else
    p_340 = " {{#tag:ref|" .. '"[' ..
"{{BillboardURLbyName|artist=" .. (t_artist or "{{{artist}}}") .. "|chart=Soundtrack Albums}} " .. (t_artist or "{{{artist}}}") .. [=[ Album & Song Chart History"] '']=] ..
"[[Billboard charts|Billboard]]'' Soundtrack Albums for " .. (t_artist or "{{{artist}}}") .. ". [[Prometheus Global Media]]. " .. p_11 .. " " .. p_12 .. "|name=" .. p_13 .. "|group=" .. p_14 .. "}}"
end

if mw.text.trim(" " .. (t_3 or "") .. " ") ~= "" then
    p_353 = " {{#tag:ref|{{cite news|url=" .. (t_url or "{{{url}}}") .. "|title=" .. (t_title or "{{{title}}}") .. "|location=" .. p_4 .. "|work=" .. p_5 .. "|page=" .. p_6 .. "|date=" .. p_7 .. "|publisher=" .. p_8 .. "|accessdate=" .. p_9 .. "}}}} "
else
    p_353 = " {{#tag:ref|" .. '"[' ..
"{{BillboardURLbyName|artist=" .. (t_artist or "{{{artist}}}") .. "|chart=Tastemaker Albums}} " .. (t_artist or "{{{artist}}}") .. [=[ Album & Song Chart History"] '']=] ..
"[[Billboard charts|Billboard]]'' [[Top Tastemaker Albums]] for " .. (t_artist or "{{{artist}}}") .. ". [[Prometheus Global Media]]. " .. p_11 .. " " .. p_12 .. "|name=" .. p_13 .. "|group=" .. p_14 .. "}}"
end

if mw.text.trim(" " .. (t_3 or "") .. " ") ~= "" then
    p_366 = " {{#tag:ref|{{cite news|url=" .. (t_url or "{{{url}}}") .. "|title=" .. (t_title or "{{{title}}}") .. "|location=" .. p_4 .. "|work=" .. p_5 .. "|page=" .. p_6 .. "|date=" .. p_7 .. "|publisher=" .. p_8 .. "|accessdate=" .. p_9 .. "}}}} "
else
    p_366 = " {{#tag:ref|" .. '"[' ..
"{{BillboardURLbyName|artist=" .. (t_artist or "{{{artist}}}") .. "|chart=Canadian Albums}} " .. (t_artist or "{{{artist}}}") .. [=[ Album & Song Chart History"] '']=] ..
"[[Billboard charts|Billboard]]'' [[Canadian Albums Chart]] for " .. (t_artist or "{{{artist}}}") .. ". [[Prometheus Global Media]]. " .. p_11 .. " " .. p_12 .. "|name=" .. p_13 .. "|group=" .. p_14 .. "}}"
end

if mw.text.trim(" " .. (t_3 or "") .. " ") ~= "" then
    p_379 = " {{#tag:ref|{{cite news|url=" .. (t_url or "{{{url}}}") .. "|title=" .. (t_title or "{{{title}}}") .. "|location=" .. p_4 .. "|work=" .. p_5 .. "|page=" .. p_6 .. "|date=" .. p_7 .. "|publisher=" .. p_8 .. "|accessdate=" .. p_9 .. "}}}} "
else
    p_379 = " {{#tag:ref|[http://www.officialcharts.com/artist/_/{{urlencode:" .. (t_artist or "{{{artist}}}") .. "|PATH}}" .. '/ "' .. (t_artist or "{{{artist}}}") .. ' <nowiki>|</nowiki> Artist <nowiki>|</nowiki> Official Charts"]. ' ..
"[[UK Albums Chart]]. The Official Charts Company. " .. p_11 .. " " .. p_12 .. "|name=" .. p_13 .. "|group=" .. p_14 .. "}}"
end

if mw.text.trim(" " .. (t_3 or "") .. " ") ~= "" then
    p_392 = " {{#tag:ref|{{cite news|url=" .. (t_url or "{{{url}}}") .. "|title=" .. (t_title or "{{{title}}}") .. "|location=" .. p_4 .. "|work=" .. p_5 .. "|page=" .. p_6 .. "|date=" .. p_7 .. "|publisher=" .. p_8 .. "|accessdate=" .. p_9 .. "}}}} "
else
    p_392 = " {{#tag:ref|[http://www.officialcharts.com/archive-chart/_/3/" .. (t_date or "{{{date}}}") .. ' "' .. (t_date or "{{{date}}}") .. ' Top 40 Official UK Albums Archive <nowiki>|</nowiki> Official Charts"]. ' ..
"[[UK Albums Chart]]. The Official Charts Company. " .. p_11 .. " " .. p_12 .. "|name=" .. p_13 .. "|group=" .. p_14 .. "}}"
end

if mw.text.trim(" " .. (t_3 or "") .. " ") ~= "" then
    p_405 = " {{#tag:ref|{{cite news|url=" .. (t_url or "{{{url}}}") .. "|title=" .. (t_title or "{{{title}}}") .. "|location=" .. p_4 .. "|work=" .. p_5 .. "|page=" .. p_6 .. "|date=" .. p_7 .. "|publisher=" .. p_8 .. "|accessdate=" .. p_9 .. "}}}} "
else
    p_405 = " {{#tag:ref|[http://www.officialcharts.com/archive-chart/_/7/" .. (t_date or "{{{date}}}") .. ' "' .. (t_date or "{{{date}}}") .. ' Top 40 UK Album Downloads Archive <nowiki>|</nowiki> Official Charts"]. ' ..
"[[UK Albums Chart]]. The Official Charts Company. " .. p_11 .. " " .. p_12 .. "|name=" .. p_13 .. "|group=" .. p_14 .. "}}"
end

if mw.text.trim(" " .. (t_3 or "") .. " ") ~= "" then
    p_418 = " {{#tag:ref|{{cite news|url=" .. (t_url or "{{{url}}}") .. "|title=" .. (t_title or "{{{title}}}") .. "|location=" .. p_4 .. "|work=" .. p_5 .. "|page=" .. p_6 .. "|date=" .. p_7 .. "|publisher=" .. p_8 .. "|accessdate=" .. p_9 .. "}}}} "
else
    p_418 = " {{#tag:ref|[http://www.officialcharts.com/archive-chart/_/19/" .. (t_date or "{{{date}}}") .. ' "' .. (t_date or "{{{date}}}") .. ' Top 40 Dance Albums Archive <nowiki>|</nowiki> Official Charts"]. ' ..
"[[UK Albums Chart]]. The Official Charts Company. " .. p_11 .. " " .. p_12 .. "|name=" .. p_13 .. "|group=" .. p_14 .. "}}"
end

if mw.text.trim(" " .. (t_3 or "") .. " ") ~= "" then
    p_431 = " {{#tag:ref|{{cite news|url=" .. (t_url or "{{{url}}}") .. "|title=" .. (t_title or "{{{title}}}") .. "|location=" .. p_4 .. "|work=" .. p_5 .. "|page=" .. p_6 .. "|date=" .. p_7 .. "|publisher=" .. p_8 .. "|accessdate=" .. p_9 .. "}}}} "
else
    p_431 = " {{#tag:ref|[http://www.officialcharts.com/archive-chart/_/4/" .. (t_date or "{{{date}}}") .. ' "' .. (t_date or "{{{date}}}") .. ' Top 40 Compilation Albums Archive <nowiki>|</nowiki> Official Charts"]. ' ..
"[[UK Albums Chart]]. The Official Charts Company. " .. p_11 .. " " .. p_12 .. "|name=" .. p_13 .. "|group=" .. p_14 .. "}}"
end

if mw.text.trim(" " .. (t_3 or "") .. " ") ~= "" then
    p_444 = " {{#tag:ref|{{cite news|url=" .. (t_url or "{{{url}}}") .. "|title=" .. (t_title or "{{{title}}}") .. "|location=" .. p_4 .. "|work=" .. p_5 .. "|page=" .. p_6 .. "|date=" .. p_7 .. "|publisher=" .. p_8 .. "|accessdate=" .. p_9 .. "}}}} "
else
    p_444 = " {{#tag:ref|[http://www.officialcharts.com/archive-chart/_/13/" .. (t_date or "{{{date}}}") .. ' "' .. (t_date or "{{{date}}}") .. ' Top 40 Independent Albums Archive <nowiki>|</nowiki> Official Charts"]. ' ..
"[[UK Albums Chart]]. The Official Charts Company. " .. p_11 .. " " .. p_12 .. "|name=" .. p_13 .. "|group=" .. p_14 .. "}}"
end

if mw.text.trim(" " .. (t_3 or "") .. " ") ~= "" then
    p_457 = " {{#tag:ref|{{cite news|url=" .. (t_url or "{{{url}}}") .. "|title=" .. (t_title or "{{{title}}}") .. "|location=" .. p_4 .. "|work=" .. p_5 .. "|page=" .. p_6 .. "|date=" .. p_7 .. "|publisher=" .. p_8 .. "|accessdate=" .. p_9 .. "}}}} "
else
    p_457 = " {{#tag:ref|[http://www.officialcharts.com/archive-chart/_/17/" .. (t_date or "{{{date}}}") .. ' "' .. (t_date or "{{{date}}}") .. ' Top 40 R&B Albums Archive <nowiki>|</nowiki> Official Charts"]. ' ..
"[[UK Albums Chart]]. The Official Charts Company. " .. p_11 .. " " .. p_12 .. "|name=" .. p_13 .. "|group=" .. p_14 .. "}}"
end

if mw.text.trim(" " .. (t_3 or "") .. " ") ~= "" then
    p_470 = " {{#tag:ref|{{cite news|url=" .. (t_url or "{{{url}}}") .. "|title=" .. (t_title or "{{{title}}}") .. "|location=" .. p_4 .. "|work=" .. p_5 .. "|page=" .. p_6 .. "|date=" .. p_7 .. "|publisher=" .. p_8 .. "|accessdate=" .. p_9 .. "}}}} "
else
    p_470 = " {{#tag:ref|[http://www.officialcharts.com/archive-chart/_/20/" .. (t_date or "{{{date}}}") .. ' "' .. (t_date or "{{{date}}}") .. ' Top 40 Country Albums Archive <nowiki>|</nowiki> Official Charts"]. ' ..
"[[UK Albums Chart]]. The Official Charts Company. " .. p_11 .. " " .. p_12 .. "|name=" .. p_13 .. "|group=" .. p_14 .. "}}"
end

if mw.text.trim(" " .. (t_3 or "") .. " ") ~= "" then
    p_483 = " {{#tag:ref|{{cite news|url=" .. (t_url or "{{{url}}}") .. "|title=" .. (t_title or "{{{title}}}") .. "|location=" .. p_4 .. "|work=" .. p_5 .. "|page=" .. p_6 .. "|date=" .. p_7 .. "|publisher=" .. p_8 .. "|accessdate=" .. p_9 .. "}}}} "
else
    p_483 = " {{#tag:ref|[http://www.officialcharts.com/archive-chart/_/23/" .. (t_date or "{{{date}}}") .. ' "' .. (t_date or "{{{date}}}") .. ' Top 40 Scottish Albums Archive <nowiki>|</nowiki> Official Charts"]. ' ..
"[[UK Albums Chart]]. The Official Charts Company. " .. p_11 .. " " .. p_12 .. "|name=" .. p_13 .. "|group=" .. p_14 .. "}}"
end

if mw.text.trim(" " .. (t_3 or "") .. " ") ~= "" then
    p_496 = " {{#tag:ref|{{cite news|url=" .. (t_url or "{{{url}}}") .. "|title=" .. (t_title or "{{{title}}}") .. "|location=" .. p_4 .. "|work=" .. p_5 .. "|page=" .. p_6 .. "|date=" .. p_7 .. "|publisher=" .. p_8 .. "|accessdate=" .. p_9 .. "}}}} "
else
    p_496 = " {{#tag:ref|[http://chartarchive.org/r/" .. (t_albumid or "{{{albumid}}}") .. ' "Chart Stats – ' .. (t_artist or "{{{artist}}}") .. " – " .. (t_album or "{{{album}}}") .. '"]. ' ..
"[[UK Albums Chart]]. Chart Stats. " .. p_11 .. " " .. p_12 .. "|name=" .. p_13 .. "|group=" .. p_14 .. "}}"
end

if mw.text.trim(" " .. (t_3 or "") .. " ") ~= "" then
    p_509 = " {{#tag:ref|{{cite news|url=" .. (t_url or "{{{url}}}") .. "|title=" .. (t_title or "{{{title}}}") .. "|location=" .. p_4 .. "|work=" .. p_5 .. "|page=" .. p_6 .. "|date=" .. p_7 .. "|publisher=" .. p_8 .. "|accessdate=" .. p_9 .. "}}}} "
else
    p_509 = " {{#tag:ref|[http://www.zobbel.de/cluk/CLUK_" .. (t_id or "{{{id}}}") .. '.HTM Chart Log UK: "' ..
"{{title}}" .. '"]. ' ..
"[[UK Albums Chart]]. Zobble.de. " .. p_11 .. " " .. p_12 .. "|name=" .. p_13 .. "|group=" .. p_14 .. "}}"
end

if mw.text.trim(" " .. (t_3 or "") .. " ") ~= "" then
    p_522 = " {{#tag:ref|{{cite news|url=" .. (t_url or "{{{url}}}") .. "|title=" .. (t_title or "{{{title}}}") .. "|location=" .. p_4 .. "|work=" .. p_5 .. "|page=" .. p_6 .. "|date=" .. p_7 .. "|publisher=" .. p_8 .. "|accessdate=" .. p_9 .. "}}}} "
else
    p_522 = " {{#tag:ref|" .. '"[http://adminlic.capif.org.ar/sis_resultados_rankings_web.aspx ' .. (t_artist or "{{{artist}}}") .. " – " .. (t_album or "{{{album}}}") .. [=["]. Argentinian Albums. CAPIF. On '''Fecha''', select '']=] .. (t_date or "{{{date}}}") .. "'' to see the correspondent chart. " .. p_11 .. " " .. p_12 .. "|name=" .. p_13 .. "|group=" .. p_14 .. "}}"
end

if mw.text.trim(" " .. (t_3 or "") .. " ") ~= "" then
    p_535 = " {{#tag:ref|{{cite news|url=" .. (t_url or "{{{url}}}") .. "|title=" .. (t_title or "{{{title}}}") .. "|location=" .. p_4 .. "|work=" .. p_5 .. "|page=" .. p_6 .. "|date=" .. p_7 .. "|publisher=" .. p_8 .. "|accessdate=" .. p_9 .. "}}}} "
else
    p_535 = " {{#tag:ref|" .. '"[http://www.australian-charts.com/showitem.asp?interpret=' ..
"{{urlencode:" .. (t_artist or "{{{artist}}}") .. "}}&titel={{urlencode:" .. (t_album or "{{{album}}}") .. "}}&cat=a " .. (t_artist or "{{{artist}}}") .. " – " .. (t_album or "{{{album}}}") .. '"]. Australiancharts.com. Hung Medien. ' .. p_11 .. " " .. p_12 .. "|name=" .. p_13 .. "|group=" .. p_14 .. "}}"
end

if mw.text.trim(" " .. (t_3 or "") .. " ") ~= "" then
    p_548 = " {{#tag:ref|{{cite news|url=" .. (t_url or "{{{url}}}") .. "|title=" .. (t_title or "{{{title}}}") .. "|location=" .. p_4 .. "|work=" .. p_5 .. "|page=" .. p_6 .. "|date=" .. p_7 .. "|publisher=" .. p_8 .. "|accessdate=" .. p_9 .. "}}}} "
else
    p_548 = " {{#tag:ref|" .. '"[http://austriancharts.at/showitem.asp?interpret=' ..
"{{urlencode:" .. (t_artist or "{{{artist}}}") .. "}}&titel={{urlencode:" .. (t_album or "{{{album}}}") .. "}}&cat=a " .. (t_artist or "{{{artist}}}") .. " - " .. (t_album or "{{{album}}}") .. '"] (In German). Austriancharts.at. Hung Medien. ' .. p_11 .. " " .. p_12 .. "|name=" .. p_13 .. "|group=" .. p_14 .. "}}"
end

if mw.text.trim(" " .. (t_3 or "") .. " ") ~= "" then
    p_561 = " {{#tag:ref|{{cite news|url=" .. (t_url or "{{{url}}}") .. "|title=" .. (t_title or "{{{title}}}") .. "|location=" .. p_4 .. "|work=" .. p_5 .. "|page=" .. p_6 .. "|date=" .. p_7 .. "|publisher=" .. p_8 .. "|accessdate=" .. p_9 .. "}}}} "
else
    p_561 = " {{#tag:ref|" .. '"[http://www.ultratop.be/nl/showitem.asp?interpret=' ..
"{{urlencode:" .. (t_artist or "{{{artist}}}") .. "}}&titel={{urlencode:" .. (t_album or "{{{album}}}") .. "}}&cat=a " .. (t_artist or "{{{artist}}}") .. " – " .. (t_album or "{{{album}}}") .. '"] (In Dutch). Ultratop.be. Hung Medien. ' .. p_11 .. " " .. p_12 .. "|name=" .. p_13 .. "|group=" .. p_14 .. "}}"
end

if mw.text.trim(" " .. (t_3 or "") .. " ") ~= "" then
    p_574 = " {{#tag:ref|{{cite news|url=" .. (t_url or "{{{url}}}") .. "|title=" .. (t_title or "{{{title}}}") .. "|location=" .. p_4 .. "|work=" .. p_5 .. "|page=" .. p_6 .. "|date=" .. p_7 .. "|publisher=" .. p_8 .. "|accessdate=" .. p_9 .. "}}}} "
else
    p_574 = " {{#tag:ref|" .. '"[http://www.ultratop.be/fr/showitem.asp?interpret=' ..
"{{urlencode:" .. (t_artist or "{{{artist}}}") .. "}}&titel={{urlencode:" .. (t_album or "{{{album}}}") .. "}}&cat=a " .. (t_artist or "{{{artist}}}") .. " – " .. (t_album or "{{{album}}}") .. '"] (In French). Ultratop.be. Hung Medien. ' .. p_11 .. " " .. p_12 .. "|name=" .. p_13 .. "|group=" .. p_14 .. "}}"
end

if mw.text.trim(" " .. (t_3 or "") .. " ") ~= "" then
    p_587 = " {{#tag:ref|{{cite news|url=" .. (t_url or "{{{url}}}") .. "|title=" .. (t_title or "{{{title}}}") .. "|location=" .. p_4 .. "|work=" .. p_5 .. "|page=" .. p_6 .. "|date=" .. p_7 .. "|publisher=" .. p_8 .. "|accessdate=" .. p_9 .. "}}}} "
else
    p_587 = " {{#tag:ref|" .. '"[http://www.abpd.org.br/noticias_internas.asp?noticia=' .. (t_id or "{{{id}}}") .. ' CD - TOP 10 Semanal"]. (In Portuguese). ' ..
"[[Associação Brasileira dos Produtores de Discos]]. " .. p_11 .. " " .. p_12 .. "|name=" .. p_13 .. "|group=" .. p_14 .. "}}"
end

if mw.text.trim(" " .. (t_3 or "") .. " ") ~= "" then
    p_600 = " {{#tag:ref|{{cite news|url=" .. (t_url or "{{{url}}}") .. "|title=" .. (t_title or "{{{title}}}") .. "|location=" .. p_4 .. "|work=" .. p_5 .. "|page=" .. p_6 .. "|date=" .. p_7 .. "|publisher=" .. p_8 .. "|accessdate=" .. p_9 .. "}}}} "
else
    p_600 = " {{#tag:ref|" .. '"[http://www.hdu-toplista.com/index.php?what=arhiva&w=details&id=' .. (t_id or "{{{id}}}") .. ' Top Stranih [Top Foreign]"] (In Croatian). Top Foreign Albums. Hrvatska Diskografska Udruga. ' .. p_11 .. " " .. p_12 .. "|name=" .. p_13 .. "|group=" .. p_14 .. "}}"
end

if mw.text.trim(" " .. (t_3 or "") .. " ") ~= "" then
    p_613 = " {{#tag:ref|{{cite news|url=" .. (t_url or "{{{url}}}") .. "|title=" .. (t_title or "{{{title}}}") .. "|location=" .. p_4 .. "|work=" .. p_5 .. "|page=" .. p_6 .. "|date=" .. p_7 .. "|publisher=" .. p_8 .. "|accessdate=" .. p_9 .. "}}}} "
else
    p_613 = " {{#tag:ref|" .. '"[http://www.ifpicr.cz/hitparada/index.php?a=hitparada&hitparada=14 Top 50 Prodejní"]. Czech Albums. ' ..
"[[IFPI|ČNS IFPI]]. '''Note''': On the chart page, select '''" .. (t_date or "{{{date}}}") .. [=[''' on the field besides the word "Zobrazit", and then click over the word to retrieve the correct chart data. ]=] .. p_11 .. " " .. p_12 .. "|name=" .. p_13 .. "|group=" .. p_14 .. "}}"
end

if mw.text.trim(" " .. (t_3 or "") .. " ") ~= "" then
    p_626 = " {{#tag:ref|{{cite news|url=" .. (t_url or "{{{url}}}") .. "|title=" .. (t_title or "{{{title}}}") .. "|location=" .. p_4 .. "|work=" .. p_5 .. "|page=" .. p_6 .. "|date=" .. p_7 .. "|publisher=" .. p_8 .. "|accessdate=" .. p_9 .. "}}}} "
else
    p_626 = " {{#tag:ref|" .. '"[http://www.danishcharts.com/showitem.asp?interpret=' ..
"{{urlencode:" .. (t_artist or "{{{artist}}}") .. "}}&titel={{urlencode:" .. (t_album or "{{{album}}}") .. "}}&cat=a " .. (t_artist or "{{{artist}}}") .. " – " .. (t_album or "{{{album}}}") .. '"]. Danishcharts.com. Hung Medien. ' .. p_11 .. " " .. p_12 .. "|name=" .. p_13 .. "|group=" .. p_14 .. "}}"
end

if mw.text.trim(" " .. (t_3 or "") .. " ") ~= "" then
    p_639 = " {{#tag:ref|{{cite news|url=" .. (t_url or "{{{url}}}") .. "|title=" .. (t_title or "{{{title}}}") .. "|location=" .. p_4 .. "|work=" .. p_5 .. "|page=" .. p_6 .. "|date=" .. p_7 .. "|publisher=" .. p_8 .. "|accessdate=" .. p_9 .. "}}}} "
else
    p_639 = " {{#tag:ref|[http://www.hitlisterne.dk/default.asp?w={{urlencode:" .. (t_week or "{{{week}}}") .. "}}&y={{urlencode:" .. (t_year or "{{{year}}}") .. "}}" .. '&list=a40 "Top 40 Albums - ' .. (t_week or "{{{week}}}") .. " / " .. (t_year or "{{{year}}}") .. ' - Hitlisten"]. Hitlisten.nu. Hung Medien. ' .. p_11 .. " " .. p_12 .. "|name=" .. p_13 .. "|group=" .. p_14 .. "}}"
end

if mw.text.trim(" " .. (t_3 or "") .. " ") ~= "" then
    p_652 = " {{#tag:ref|{{cite news|url=" .. (t_url or "{{{url}}}") .. "|title=" .. (t_title or "{{{title}}}") .. "|location=" .. p_4 .. "|work=" .. p_5 .. "|page=" .. p_6 .. "|date=" .. p_7 .. "|publisher=" .. p_8 .. "|accessdate=" .. p_9 .. "}}}} "
else
    p_652 = " {{#tag:ref|" .. '"[http://www.ifpi.fi/tilastot/virallinen-lista/artistit/' ..
"{{urlencode:" .. (t_artist or "{{{artist}}}") .. "}}/{{urlencode:" .. (t_album or "{{{album}}}") .. "}} " .. (t_artist or "{{{artist}}}") .. ": " .. (t_album or "{{{album}}}") .. '"] (in Finnish). Musiikkituottajat – IFPI Finland. ' .. p_11 .. " " .. p_12 .. "|name=" .. p_13 .. "|group=" .. p_14 .. "}}"
end

if mw.text.trim(" " .. (t_3 or "") .. " ") ~= "" then
    p_665 = " {{#tag:ref|{{cite news|url=" .. (t_url or "{{{url}}}") .. "|title=" .. (t_title or "{{{title}}}") .. "|location=" .. p_4 .. "|work=" .. p_5 .. "|page=" .. p_6 .. "|date=" .. p_7 .. "|publisher=" .. p_8 .. "|accessdate=" .. p_9 .. "}}}} "
else
    p_665 = " {{#tag:ref|" .. '"[http://www.lescharts.com/showitem.asp?interpret=' ..
"{{urlencode:" .. (t_artist or "{{{artist}}}") .. "}}&titel={{urlencode:" .. (t_album or "{{{album}}}") .. "}}&cat=a " .. (t_artist or "{{{artist}}}") .. " – " .. (t_album or "{{{album}}}") .. '"]. Lescharts.com. Hung Medien. ' .. p_11 .. " " .. p_12 .. "|name=" .. p_13 .. "|group=" .. p_14 .. "}}"
end

if mw.text.trim(" " .. (t_3 or "") .. " ") ~= "" then
    p_678 = " {{#tag:ref|{{cite news|url=" .. (t_url or "{{{url}}}") .. "|title=" .. (t_title or "{{{title}}}") .. "|location=" .. p_4 .. "|work=" .. p_5 .. "|page=" .. p_6 .. "|date=" .. p_7 .. "|publisher=" .. p_8 .. "|accessdate=" .. p_9 .. "}}}} "
else
    p_678 = " {{#tag:ref|" .. '"[http://musicline.de/de/chartverfolgung_summary/artist/' ..
"{{urlencode:" .. (t_artist or "{{{artist}}}") .. "}}" .. '/?type=longplay Longplay-Chartverfolgung at Musicline"]. Musicline.de. ' ..
"[[Media Control Charts|Media Control]]. " .. p_11 .. " " .. p_12 .. "|name=" .. p_13 .. "|group=" .. p_14 .. "}}"
end

if mw.text.trim(" " .. (t_3 or "") .. " ") ~= "" then
    p_691 = " {{#tag:ref|{{cite news|url=" .. (t_url or "{{{url}}}") .. "|title=" .. (t_title or "{{{title}}}") .. "|location=" .. p_4 .. "|work=" .. p_5 .. "|page=" .. p_6 .. "|date=" .. p_7 .. "|publisher=" .. p_8 .. "|accessdate=" .. p_9 .. "}}}} "
else
    p_691 = " {{#tag:ref|" .. '"[http://www.charts.de/charts.asp?cat=a&country=de&year=' .. (t_year or "{{{year}}}") .. "&date=" .. (t_date or "{{{date}}}") .. '&x=27&y=5 Top 100 Longplay"]. Charts.de. ' ..
"[[Media Control Charts|Media Control]]. " .. p_11 .. " " .. p_12 .. "|name=" .. p_13 .. "|group=" .. p_14 .. "}}"
end

if mw.text.trim(" " .. (t_3 or "") .. " ") ~= "" then
    p_704 = " {{#tag:ref|{{cite news|url=" .. (t_url or "{{{url}}}") .. "|title=" .. (t_title or "{{{title}}}") .. "|location=" .. p_4 .. "|work=" .. p_5 .. "|page=" .. p_6 .. "|date=" .. p_7 .. "|publisher=" .. p_8 .. "|accessdate=" .. p_9 .. "}}}} "
else
    p_704 = " {{#tag:ref|" .. '"[http://www.charts.de/album.asp?artist=' ..
"{{urlencode:" .. (t_artist or "{{{artist}}}") .. "}}&title={{urlencode:" .. (t_album or "{{{album}}}") .. "}}&cat=a&country=de " .. (t_artist or "{{{artist}}}") .. " - " .. (t_album or "{{{album}}}") .. '"]. Charts.de. ' ..
"[[Media Control Charts|Media Control]]. " .. p_11 .. " " .. p_12 .. "|name=" .. p_13 .. "|group=" .. p_14 .. "}}"
end

if mw.text.trim(" " .. (t_3 or "") .. " ") ~= "" then
    p_717 = " {{#tag:ref|{{cite news|url=" .. (t_url or "{{{url}}}") .. "|title=" .. (t_title or "{{{title}}}") .. "|location=" .. p_4 .. "|work=" .. p_5 .. "|page=" .. p_6 .. "|date=" .. p_7 .. "|publisher=" .. p_8 .. "|accessdate=" .. p_9 .. "}}}} "
else
    p_717 = " {{#tag:ref|" .. '"[http://www.charts.de/charts.asp?cat=c&country=de&year=' .. (t_year or "{{{year}}}") .. "&date=" .. (t_date or "{{{date}}}") .. '&x=27&y=5 Top Compilation"]. Charts.de. ' ..
"[[Media Control Charts|Media Control]]. " .. p_11 .. " " .. p_12 .. "|name=" .. p_13 .. "|group=" .. p_14 .. "}}"
end

if mw.text.trim(" " .. (t_3 or "") .. " ") ~= "" then
    p_730 = " {{#tag:ref|{{cite news|url=" .. (t_url or "{{{url}}}") .. "|title=" .. (t_title or "{{{title}}}") .. "|location=" .. p_4 .. "|work=" .. p_5 .. "|page=" .. p_6 .. "|date=" .. p_7 .. "|publisher=" .. p_8 .. "|accessdate=" .. p_9 .. "}}}} "
else
    p_730 = " {{#tag:ref|" .. '"[http://greekcharts.com/showitem.asp?interpret=' ..
"{{urlencode:" .. (t_artist or "{{{artist}}}") .. "}}&titel={{urlencode:" .. (t_album or "{{{album}}}") .. "}}&cat=a " .. (t_artist or "{{{artist}}}") .. " – " .. (t_album or "{{{album}}}") .. '"]. Greekcharts.com. Hung Medien. ' .. p_11 .. " " .. p_12 .. "|name=" .. p_13 .. "|group=" .. p_14 .. "}}"
end

if mw.text.trim(" " .. (t_3 or "") .. " ") ~= "" then
    p_743 = " {{#tag:ref|{{cite news|url=" .. (t_url or "{{{url}}}") .. "|title=" .. (t_title or "{{{title}}}") .. "|location=" .. p_4 .. "|work=" .. p_5 .. "|page=" .. p_6 .. "|date=" .. p_7 .. "|publisher=" .. p_8 .. "|accessdate=" .. p_9 .. "}}}} "
else
    p_743 = " {{#tag:ref|" .. '"[http://www.mahasz.hu/?menu=slagerlistak&menu2=archivum&lista=top40&ev=' .. (t_year or "{{{year}}}") .. "&het=" .. (t_week or "{{{week}}}") .. '&submit_=Keres%E9s Archívum – Slágerlisták – MAHASZ – Magyar Hangfelvétel-kiadók Szövetsége"]. Mahasz.hu. LightMedia. ' .. p_11 .. " " .. p_12 .. "|name=" .. p_13 .. "|group=" .. p_14 .. "}}"
end

if mw.text.trim(" " .. (t_3 or "") .. " ") ~= "" then
    p_756 = " {{#tag:ref|{{cite news|url=" .. (t_url or "{{{url}}}") .. "|title=" .. (t_title or "{{{title}}}") .. "|location=" .. p_4 .. "|work=" .. p_5 .. "|page=" .. p_6 .. "|date=" .. p_7 .. "|publisher=" .. p_8 .. "|accessdate=" .. p_9 .. "}}}} "
else
    p_756 = " {{#tag:ref|" .. '"[http://www.italiancharts.com/showitem.asp?interpret=' ..
"{{urlencode:" .. (t_artist or "{{{artist}}}") .. "}}&titel={{urlencode:" .. (t_album or "{{{album}}}") .. "}}&cat=a " .. (t_artist or "{{{artist}}}") .. " – " .. (t_album or "{{{album}}}") .. '"]. Italiancharts.com. Hung Medien. ' .. p_11 .. " " .. p_12 .. "|name=" .. p_13 .. "|group=" .. p_14 .. "}}"
end

if mw.text.trim(" " .. (t_3 or "") .. " ") ~= "" then
    p_769 = " {{#tag:ref|{{cite news|url=" .. (t_url or "{{{url}}}") .. "|title=" .. (t_title or "{{{title}}}") .. "|location=" .. p_4 .. "|work=" .. p_5 .. "|page=" .. p_6 .. "|date=" .. p_7 .. "|publisher=" .. p_8 .. "|accessdate=" .. p_9 .. "}}}} "
else
    p_769 = " {{#tag:ref|" .. '"[http://www.chart-track.co.uk/index.jsp?c=p%2Fmusicvideo%2Fmusic%2Farchive%2Findex_test.jsp&ct=240002&arch=t&lyr=' .. (t_year or "{{{year}}}") .. "&year=" .. (t_year or "{{{year}}}") .. "&week=" .. (t_week or "{{{week}}}") .. ' GFK Chart-Track"]. Chart-Track.co.uk. GFK Chart-Track. ' ..
"[[Irish Recorded Music Association|IRMA]]. " .. p_11 .. " " .. p_12 .. "|name=" .. p_13 .. "|group=" .. p_14 .. "}}"
end

if mw.text.trim(" " .. (t_3 or "") .. " ") ~= "" then
    p_782 = " {{#tag:ref|{{cite news|url=" .. (t_url or "{{{url}}}") .. "|title=" .. (t_title or "{{{title}}}") .. "|location=" .. p_4 .. "|work=" .. p_5 .. "|page=" .. p_6 .. "|date=" .. p_7 .. "|publisher=" .. p_8 .. "|accessdate=" .. p_9 .. "}}}} "
else
    p_782 = " {{#tag:ref|" .. '"[http://www.irishcharts.com/showitem.asp?interpret=' ..
"{{urlencode:" .. (t_artist or "{{{artist}}}") .. "}}&titel={{urlencode:" .. (t_album or "{{{album}}}") .. "}}&cat=a " .. (t_artist or "{{{artist}}}") .. " – " .. (t_album or "{{{album}}}") .. '"]. Irishcharts.com. Hung Medien. ' .. p_11 .. " " .. p_12 .. "|name=" .. p_13 .. "|group=" .. p_14 .. "}}"
end

if mw.text.trim(" " .. (t_3 or "") .. " ") ~= "" then
    p_795 = " {{#tag:ref|{{cite news|url=" .. (t_url or "{{{url}}}") .. "|title=" .. (t_title or "{{{title}}}") .. "|location=" .. p_4 .. "|work=" .. p_5 .. "|page=" .. p_6 .. "|date=" .. p_7 .. "|publisher=" .. p_8 .. "|accessdate=" .. p_9 .. "}}}} "
else
    p_795 = " {{#tag:ref|" .. '"[http://www.chart-track.co.uk/index.jsp?c=p%2Fmusicvideo%2Fmusic%2Farchive%2Findex_test.jsp&ct=240005&arch=t&lyr=' .. (t_year or "{{{year}}}") .. "&year=" .. (t_year or "{{{year}}}") .. "&week=" .. (t_week or "{{{week}}}") .. ' GFK Chart-Track - Classical albums"]. Chart-Track.co.uk. GFK Chart-Track. ' ..
"[[Irish Recorded Music Association|IRMA]]. " .. p_11 .. " " .. p_12 .. "|name=" .. p_13 .. "|group=" .. p_14 .. "}}"
end

if mw.text.trim(" " .. (t_3 or "") .. " ") ~= "" then
    p_808 = " {{#tag:ref|{{cite news|url=" .. (t_url or "{{{url}}}") .. "|title=" .. (t_title or "{{{title}}}") .. "|location=" .. p_4 .. "|work=" .. p_5 .. "|page=" .. p_6 .. "|date=" .. p_7 .. "|publisher=" .. p_8 .. "|accessdate=" .. p_9 .. "}}}} "
else
    p_808 = " {{#tag:ref|" .. '[http://www.gaonchart.co.kr/main/section/album/list.gaon?nationGbn=T "South Korea GAON Albums Chart"]. On the page, select "' .. (t_year or "{{{year}}}") .. '" and then "' .. (t_date or "{{{date}}}") .. '" to obtain the corresponding chart. Korean Charts. ' ..
"[[GAON]]. " .. p_11 .. " " .. p_12 .. "|name=" .. p_13 .. "|group=" .. p_14 .. "}}"
end

if mw.text.trim(" " .. (t_3 or "") .. " ") ~= "" then
    p_821 = " {{#tag:ref|{{cite news|url=" .. (t_url or "{{{url}}}") .. "|title=" .. (t_title or "{{{title}}}") .. "|location=" .. p_4 .. "|work=" .. p_5 .. "|page=" .. p_6 .. "|date=" .. p_7 .. "|publisher=" .. p_8 .. "|accessdate=" .. p_9 .. "}}}} "
else
    p_821 = " {{#tag:ref|" .. '[http://www.gaonchart.co.kr/main/section/album/list.gaon?nationGbn=K "South Korea GAON National Albums Chart"]. On the page, select "' .. (t_year or "{{{year}}}") .. '" and then "' .. (t_date or "{{{date}}}") .. '" to obtain the corresponding chart. Korean Charts. ' ..
"[[GAON]]. " .. p_11 .. " " .. p_12 .. "|name=" .. p_13 .. "|group=" .. p_14 .. "}}"
end

if mw.text.trim(" " .. (t_3 or "") .. " ") ~= "" then
    p_834 = " {{#tag:ref|{{cite news|url=" .. (t_url or "{{{url}}}") .. "|title=" .. (t_title or "{{{title}}}") .. "|location=" .. p_4 .. "|work=" .. p_5 .. "|page=" .. p_6 .. "|date=" .. p_7 .. "|publisher=" .. p_8 .. "|accessdate=" .. p_9 .. "}}}} "
else
    p_834 = " {{#tag:ref|" .. '[http://www.gaonchart.co.kr/main/section/album/list.gaon?nationGbn=E "South Korea GAON International Albums Chart"]. On the page, select "' .. (t_year or "{{{year}}}") .. '" and then "' .. (t_date or "{{{date}}}") .. '" to obtain the corresponding chart. Korean Charts. ' ..
"[[GAON]]. " .. p_11 .. " " .. p_12 .. "|name=" .. p_13 .. "|group=" .. p_14 .. "}}"
end

if mw.text.trim(" " .. (t_3 or "") .. " ") ~= "" then
    p_847 = " {{#tag:ref|{{cite news|url=" .. (t_url or "{{{url}}}") .. "|title=" .. (t_title or "{{{title}}}") .. "|location=" .. p_4 .. "|work=" .. p_5 .. "|page=" .. p_6 .. "|date=" .. p_7 .. "|publisher=" .. p_8 .. "|accessdate=" .. p_9 .. "}}}} "
else
    p_847 = " {{#tag:ref|" .. '"[http://www.mexicancharts.com/showitem.asp?interpret=' ..
"{{urlencode:" .. (t_artist or "{{{artist}}}") .. "}}&titel={{urlencode:" .. (t_album or "{{{album}}}") .. "}}&cat=a " .. (t_artist or "{{{artist}}}") .. " – " .. (t_album or "{{{album}}}") .. '"]. Mexicancharts.com. Hung Medien. ' .. p_11 .. " " .. p_12 .. "|name=" .. p_13 .. "|group=" .. p_14 .. "}}"
end

if mw.text.trim(" " .. (t_3 or "") .. " ") ~= "" then
    p_860 = " {{#tag:ref|{{cite news|url=" .. (t_url or "{{{url}}}") .. "|title=" .. (t_title or "{{{title}}}") .. "|location=" .. p_4 .. "|work=" .. p_5 .. "|page=" .. p_6 .. "|date=" .. p_7 .. "|publisher=" .. p_8 .. "|accessdate=" .. p_9 .. "}}}} "
else
    p_860 = " {{#tag:ref|[" .. (t_archiveurl or "{{{archiveurl}}}") .. ' "' .. (t_artist or "{{{artist}}}") .. " – " .. (t_album or "{{{album}}}") .. '"]. ' ..
"[[Asociación Mexicana de Productores de Fonogramas y Videogramas]]. Archived from [http://www.centrodedesarrollodigital.com/amprofon3/Top100.pdf the original] on " .. (t_archivedate or "{{{archivedate}}}") .. ". " .. p_11 .. " " .. p_12 .. "|name=" .. p_13 .. "|group=" .. p_14 .. "}}"
end

if mw.text.trim(" " .. (t_3 or "") .. " ") ~= "" then
    p_873 = " {{#tag:ref|{{cite news|url=" .. (t_url or "{{{url}}}") .. "|title=" .. (t_title or "{{{title}}}") .. "|location=" .. p_4 .. "|work=" .. p_5 .. "|page=" .. p_6 .. "|date=" .. p_7 .. "|publisher=" .. p_8 .. "|accessdate=" .. p_9 .. "}}}} "
else
    p_873 = " {{#tag:ref|" .. '"[http://www.dutchcharts.nl/showitem.asp?interpret=' ..
"{{urlencode:" .. (t_artist or "{{{artist}}}") .. "}}&titel={{urlencode:" .. (t_album or "{{{album}}}") .. "}}&cat=a " .. (t_artist or "{{{artist}}}") .. " – " .. (t_album or "{{{album}}}") .. '"]. Dutchcharts.nl. Hung Medien. ' .. p_11 .. " " .. p_12 .. "|name=" .. p_13 .. "|group=" .. p_14 .. "}}"
end

if mw.text.trim(" " .. (t_3 or "") .. " ") ~= "" then
    p_886 = " {{#tag:ref|{{cite news|url=" .. (t_url or "{{{url}}}") .. "|title=" .. (t_title or "{{{title}}}") .. "|location=" .. p_4 .. "|work=" .. p_5 .. "|page=" .. p_6 .. "|date=" .. p_7 .. "|publisher=" .. p_8 .. "|accessdate=" .. p_9 .. "}}}} "
else
    p_886 = " {{#tag:ref|[http://www.dutchcharts.nl/weekchart.asp?cat=c&year={{urlencode:" .. (t_year or "{{{year}}}") .. "}}&date={{urlencode:" .. (t_date or "{{{date}}}") .. "}}" .. ' "' .. (t_artist or "{{{artist}}}") .. " – " .. (t_album or "{{{album}}}") .. '"]. Dutchcharts.nl. Hung Medien. ' .. p_11 .. " " .. p_12 .. "|name=" .. p_13 .. "|group=" .. p_14 .. "}}"
end

if mw.text.trim(" " .. (t_3 or "") .. " ") ~= "" then
    p_899 = " {{#tag:ref|{{cite news|url=" .. (t_url or "{{{url}}}") .. "|title=" .. (t_title or "{{{title}}}") .. "|location=" .. p_4 .. "|work=" .. p_5 .. "|page=" .. p_6 .. "|date=" .. p_7 .. "|publisher=" .. p_8 .. "|accessdate=" .. p_9 .. "}}}} "
else
    p_899 = " {{#tag:ref|" .. '"[http://www.charts.org.nz/showitem.asp?interpret=' ..
"{{urlencode:" .. (t_artist or "{{{artist}}}") .. "}}&titel={{urlencode:" .. (t_album or "{{{album}}}") .. "}}&cat=a " .. (t_artist or "{{{artist}}}") .. " – " .. (t_album or "{{{album}}}") .. '"]. Charts.org.nz. Hung Medien. ' .. p_11 .. " " .. p_12 .. "|name=" .. p_13 .. "|group=" .. p_14 .. "}}"
end

if mw.text.trim(" " .. (t_3 or "") .. " ") ~= "" then
    p_912 = " {{#tag:ref|{{cite news|url=" .. (t_url or "{{{url}}}") .. "|title=" .. (t_title or "{{{title}}}") .. "|location=" .. p_4 .. "|work=" .. p_5 .. "|page=" .. p_6 .. "|date=" .. p_7 .. "|publisher=" .. p_8 .. "|accessdate=" .. p_9 .. "}}}} "
else
    p_912 = " {{#tag:ref|" .. '"[http://www.norwegiancharts.com/showitem.asp?interpret=' ..
"{{urlencode:" .. (t_artist or "{{{artist}}}") .. "}}&titel={{urlencode:" .. (t_album or "{{{album}}}") .. "}}&cat=a " .. (t_artist or "{{{artist}}}") .. " – " .. (t_album or "{{{album}}}") .. '"]. Norwegiancharts.com. Hung Medien. ' .. p_11 .. " " .. p_12 .. "|name=" .. p_13 .. "|group=" .. p_14 .. "}}"
end

if mw.text.trim(" " .. (t_3 or "") .. " ") ~= "" then
    p_925 = " {{#tag:ref|{{cite news|url=" .. (t_url or "{{{url}}}") .. "|title=" .. (t_title or "{{{title}}}") .. "|location=" .. p_4 .. "|work=" .. p_5 .. "|page=" .. p_6 .. "|date=" .. p_7 .. "|publisher=" .. p_8 .. "|accessdate=" .. p_9 .. "}}}} "
else
    p_925 = " {{#tag:ref|[http://www.oricon.co.jp/rank/ja/w/" .. (t_date or "{{{date}}}") .. '/ "Oricon Top 50 Albums"] (In Japanese). ' ..
"[[Oricon]]. " .. p_11 .. " " .. p_12 .. "|name=" .. p_13 .. "|group=" .. p_14 .. "}}"
end

if mw.text.trim(" " .. (t_3 or "") .. " ") ~= "" then
    p_938 = " {{#tag:ref|{{cite news|url=" .. (t_url or "{{{url}}}") .. "|title=" .. (t_title or "{{{title}}}") .. "|location=" .. p_4 .. "|work=" .. p_5 .. "|page=" .. p_6 .. "|date=" .. p_7 .. "|publisher=" .. p_8 .. "|accessdate=" .. p_9 .. "}}}} "
else
    p_938 = " {{#tag:ref|" .. '"[http://olis.onyx.pl/listy/index.asp?idlisty=' .. (t_id or "{{{id}}}") .. ' Oficjalna lista sprzedaży :: OLIS - Official Retail Sales Chart"] (In Polish). ' ..
"[[Polish Music Charts|OLiS]]. [[Polish Society of the Phonographic Industry]]. " .. p_11 .. " " .. p_12 .. "|name=" .. p_13 .. "|group=" .. p_14 .. "}}"
end

if mw.text.trim(" " .. (t_3 or "") .. " ") ~= "" then
    p_951 = " {{#tag:ref|{{cite news|url=" .. (t_url or "{{{url}}}") .. "|title=" .. (t_title or "{{{title}}}") .. "|location=" .. p_4 .. "|work=" .. p_5 .. "|page=" .. p_6 .. "|date=" .. p_7 .. "|publisher=" .. p_8 .. "|accessdate=" .. p_9 .. "}}}} "
else
    p_951 = " {{#tag:ref|" .. '"[http://www.portuguesecharts.com/showitem.asp?interpret=' ..
"{{urlencode:" .. (t_artist or "{{{artist}}}") .. "}}&titel={{urlencode:" .. (t_album or "{{{album}}}") .. "}}&cat=a " .. (t_artist or "{{{artist}}}") .. " – " .. (t_album or "{{{album}}}") .. '"]. Portuguesecharts.com. Hung Medien. ' .. p_11 .. " " .. p_12 .. "|name=" .. p_13 .. "|group=" .. p_14 .. "}}"
end

if mw.text.trim(" " .. (t_3 or "") .. " ") ~= "" then
    p_964 = " {{#tag:ref|{{cite news|url=" .. (t_url or "{{{url}}}") .. "|title=" .. (t_title or "{{{title}}}") .. "|location=" .. p_4 .. "|work=" .. p_5 .. "|page=" .. p_6 .. "|date=" .. p_7 .. "|publisher=" .. p_8 .. "|accessdate=" .. p_9 .. "}}}} "
else
    p_964 = " {{#tag:ref|" .. '"[http://www.swedishcharts.com/showitem.asp?interpret=' ..
"{{urlencode:" .. (t_artist or "{{{artist}}}") .. "}}&titel={{urlencode:" .. (t_album or "{{{album}}}") .. "}}&cat=a " .. (t_artist or "{{{artist}}}") .. " – " .. (t_album or "{{{album}}}") .. '"]. Swedishcharts.com. Hung Medien. ' .. p_11 .. " " .. p_12 .. "|name=" .. p_13 .. "|group=" .. p_14 .. "}}"
end

if mw.text.trim(" " .. (t_3 or "") .. " ") ~= "" then
    p_977 = " {{#tag:ref|{{cite news|url=" .. (t_url or "{{{url}}}") .. "|title=" .. (t_title or "{{{title}}}") .. "|location=" .. p_4 .. "|work=" .. p_5 .. "|page=" .. p_6 .. "|date=" .. p_7 .. "|publisher=" .. p_8 .. "|accessdate=" .. p_9 .. "}}}} "
else
    p_977 = " {{#tag:ref|" .. '"[http://www.swisscharts.com/showitem.asp?interpret=' ..
"{{urlencode:" .. (t_artist or "{{{artist}}}") .. "}}&titel={{urlencode:" .. (t_album or "{{{album}}}") .. "}}&cat=a " .. (t_artist or "{{{artist}}}") .. " – " .. (t_album or "{{{album}}}") .. '"]. Swisscharts.com. Hung Medien. ' .. p_11 .. " " .. p_12 .. "|name=" .. p_13 .. "|group=" .. p_14 .. "}}"
end

if mw.text.trim(" " .. (t_3 or "") .. " ") ~= "" then
    p_990 = " {{#tag:ref|{{cite news|url=" .. (t_url or "{{{url}}}") .. "|title=" .. (t_title or "{{{title}}}") .. "|location=" .. p_4 .. "|work=" .. p_5 .. "|page=" .. p_6 .. "|date=" .. p_7 .. "|publisher=" .. p_8 .. "|accessdate=" .. p_9 .. "}}}} "
else
    p_990 = " {{#tag:ref|" .. '"[http://www.spanishcharts.com/showitem.asp?interpret=' ..
"{{urlencode:" .. (t_artist or "{{{artist}}}") .. "}}&titel={{urlencode:" .. (t_album or "{{{album}}}") .. "}}&cat=a " .. (t_artist or "{{{artist}}}") .. " – " .. (t_album or "{{{album}}}") .. '"]. Spanishcharts.com. Hung Medien. ' .. p_11 .. " " .. p_12 .. "|name=" .. p_13 .. "|group=" .. p_14 .. "}}"
end

if mw.text.trim((t_dvd or "")) ~= "" then
    p_1012 =
"{{urlencode:" .. (t_dvd or "{{{dvd}}}") .. "+[DVD]}}"
else
    p_1012 = ""
end

if mw.text.trim((t_album or "")) ~= "" then
    p_1013 =
"{{urlencode:" .. (t_album or "{{{album}}}") .. "}}"
else
    p_1013 = ""
end

if mw.text.trim((t_dvd or "")) ~= "" then
    p_1014 = (t_dvd or "{{{dvd}}}") .. " [DVD<nowiki>]</nowiki>"
else
    p_1014 = ""
end

if mw.text.trim((t_album or "")) ~= "" then
    p_1015 = (t_album or "{{{album}}}")
else
    p_1015 = ""
end

p_1_in = mw.text.trim((t_1 or "{{{1}}}") .. "\n")
if p_1_in == mw.text.trim(" Billboard200 ") then
p_1 = mw.text.trim(" {{!}} US [[Billboard 200|''Billboard'' 200]]" .. p_2 .. " {{Albumchart/chartnote|" .. (t_note or "") .. "}}\n{{!}}" .. 'align="center"' ..
"{{!}}" .. (t_2 or "{{{2}}}") .. "\n")
elseif p_1_in == mw.text.trim(" BillboardDigital ") then
p_1 = mw.text.trim(" {{!}} US [[Digital Albums]] ([[Billboard (magazine)|''Billboard'']])" .. p_15 .. " {{Albumchart/chartnote|" .. (t_note or "") .. "}}\n{{!}}" .. 'align="center"' ..
"{{!}}" .. (t_2 or "{{{2}}}") .. "\n")
elseif p_1_in == mw.text.trim(" BillboardHeatseekers ") then
p_1 = mw.text.trim(" {{!}} US [[Top Heatseekers|Top Heatseekers Albums]] ([[Billboard (magazine)|''Billboard'']])" .. p_28 .. " {{Albumchart/chartnote|" .. (t_note or "") .. "}}\n{{!}}" .. 'align="center"' ..
"{{!}}" .. (t_2 or "{{{2}}}") .. "\n")
elseif p_1_in == mw.text.trim(" BillboardDanceElectronic ") then
p_1 = mw.text.trim(" {{!}} US [[Dance/Electronic Albums]] ([[Billboard (magazine)|''Billboard'']])" .. p_41 .. " {{Albumchart/chartnote|" .. (t_note or "") .. "}}\n{{!}}" .. 'align="center"' ..
"{{!}}" .. (t_2 or "{{{2}}}") .. "\n")
elseif p_1_in == mw.text.trim(" BillboardRandBHipHop ") then
p_1 = mw.text.trim(" {{!}} US [[Top R&B/Hip Hop Albums]] ([[Billboard (magazine)|''Billboard'']])" .. p_54 .. " {{Albumchart/chartnote|" .. (t_note or "") .. "}}\n{{!}}" .. 'align="center"' ..
"{{!}}" .. (t_2 or "{{{2}}}") .. "\n")
elseif p_1_in == mw.text.trim(" BillboardRap ") then
p_1 = mw.text.trim(" {{!}} US [[Top Rap Albums]] ([[Billboard (magazine)|''Billboard'']])" .. p_67 .. " {{Albumchart/chartnote|" .. (t_note or "") .. "}}\n{{!}}" .. 'align="center"' ..
"{{!}}" .. (t_2 or "{{{2}}}") .. "\n")
elseif p_1_in == mw.text.trim(" BillboardRock ") then
p_1 = mw.text.trim(" {{!}} US [[Top Rock Albums]] ([[Billboard (magazine)|''Billboard'']])" .. p_80 .. " {{Albumchart/chartnote|" .. (t_note or "") .. "}}\n{{!}}" .. 'align="center"' ..
"{{!}}" .. (t_2 or "{{{2}}}") .. "\n")
elseif p_1_in == mw.text.trim(" BillboardAlternative ") then
p_1 = mw.text.trim(" {{!}} US [[Top Alternative Albums]] ([[Billboard (magazine)|''Billboard'']])" .. p_93 .. " {{Albumchart/chartnote|" .. (t_note or "") .. "}}\n{{!}}" .. 'align="center"' ..
"{{!}}" .. (t_2 or "{{{2}}}") .. "\n")
elseif p_1_in == mw.text.trim(" BillboardHardRock ") then
p_1 = mw.text.trim(" {{!}} US [[Top Hard Rock Albums]] ([[Billboard (magazine)|''Billboard'']])" .. p_106 .. " {{Albumchart/chartnote|" .. (t_note or "") .. "}}\n{{!}}" .. 'align="center"' ..
"{{!}}" .. (t_2 or "{{{2}}}") .. "\n")
elseif p_1_in == mw.text.trim(" BillboardFolk ") then
p_1 = mw.text.trim(" {{!}} US Folk Albums ([[Billboard (magazine)|''Billboard'']])" .. p_119 .. " {{Albumchart/chartnote|" .. (t_note or "") .. "}}\n{{!}}" .. 'align="center"' ..
"{{!}}" .. (t_2 or "{{{2}}}") .. "\n")
elseif p_1_in == mw.text.trim(" BillboardCountry ") then
p_1 = mw.text.trim(" {{!}} US [[Top Country Albums]] ([[Billboard (magazine)|''Billboard'']])" .. p_132 .. " {{Albumchart/chartnote|" .. (t_note or "") .. "}}\n{{!}}" .. 'align="center"' ..
"{{!}}" .. (t_2 or "{{{2}}}") .. "\n")
elseif p_1_in == mw.text.trim(" BillboardBluegrass ") then
p_1 = mw.text.trim(" {{!}} US [[Top Bluegrass Albums]] ([[Billboard (magazine)|''Billboard'']])" .. p_145 .. " {{Albumchart/chartnote|" .. (t_note or "") .. "}}\n{{!}}" .. 'align="center"' ..
"{{!}}" .. (t_2 or "{{{2}}}") .. "\n")
elseif p_1_in == mw.text.trim(" BillboardJazz ") then
p_1 = mw.text.trim(" {{!}} US [[Top Jazz Albums]] ([[Billboard (magazine)|''Billboard'']])" .. p_158 .. " {{Albumchart/chartnote|" .. (t_note or "") .. "}}\n{{!}}" .. 'align="center"' ..
"{{!}}" .. (t_2 or "{{{2}}}") .. "\n")
elseif p_1_in == mw.text.trim(" BillboardBlues ") then
p_1 = mw.text.trim(" {{!}} US [[Top Blues Albums]] ([[Billboard (magazine)|''Billboard'']])" .. p_171 .. " {{Albumchart/chartnote|" .. (t_note or "") .. "}}\n{{!}}" .. 'align="center"' ..
"{{!}}" .. (t_2 or "{{{2}}}") .. "\n")
elseif p_1_in == mw.text.trim(" BillboardClassical ") then
p_1 = mw.text.trim(" {{!}} US [[Top Classical Albums]] ([[Billboard (magazine)|''Billboard'']])" .. p_184 .. " {{Albumchart/chartnote|" .. (t_note or "") .. "}}\n{{!}}" .. 'align="center"' ..
"{{!}}" .. (t_2 or "{{{2}}}") .. "\n")
elseif p_1_in == mw.text.trim(" BillboardLatin ") then
p_1 = mw.text.trim(" {{!}} US [[Top Latin Albums]] ([[Billboard (magazine)|''Billboard'']])" .. p_197 .. " {{Albumchart/chartnote|" .. (t_note or "") .. "}}\n{{!}}" .. 'align="center"' ..
"{{!}}" .. (t_2 or "{{{2}}}") .. "\n")
elseif p_1_in == mw.text.trim(" BillboardRegionalMexican ") then
p_1 = mw.text.trim(" {{!}} US [[Regional Mexican Albums]] ([[Billboard (magazine)|''Billboard'']])" .. p_210 .. " {{Albumchart/chartnote|" .. (t_note or "") .. "}}\n{{!}}" .. 'align="center"' ..
"{{!}}" .. (t_2 or "{{{2}}}") .. "\n")
elseif p_1_in == mw.text.trim(" BillboardLatinPop ") then
p_1 = mw.text.trim(" {{!}} US [[Latin Pop Albums]] ([[Billboard (magazine)|''Billboard'']])" .. p_223 .. " {{Albumchart/chartnote|" .. (t_note or "") .. "}}\n{{!}}" .. 'align="center"' ..
"{{!}}" .. (t_2 or "{{{2}}}") .. "\n")
elseif p_1_in == mw.text.trim(" BillboardTropical ") then
p_1 = mw.text.trim(" {{!}} US [[Tropical Albums]] ([[Billboard (magazine)|''Billboard'']])" .. p_236 .. " {{Albumchart/chartnote|" .. (t_note or "") .. "}}\n{{!}}" .. 'align="center"' ..
"{{!}}" .. (t_2 or "{{{2}}}") .. "\n")
elseif p_1_in == mw.text.trim(" BillboardChristian ") then
p_1 = mw.text.trim(" {{!}} US [[Christian Albums]] ([[Billboard (magazine)|''Billboard'']])" .. p_249 .. " {{Albumchart/chartnote|" .. (t_note or "") .. "}}\n{{!}}" .. 'align="center"' ..
"{{!}}" .. (t_2 or "{{{2}}}") .. "\n")
elseif p_1_in == mw.text.trim(" BillboardGospel ") then
p_1 = mw.text.trim(" {{!}} US [[Top Gospel Albums]] ([[Billboard (magazine)|''Billboard'']])" .. p_262 .. " {{Albumchart/chartnote|" .. (t_note or "") .. "}}\n{{!}}" .. 'align="center"' ..
"{{!}}" .. (t_2 or "{{{2}}}") .. "\n")
elseif p_1_in == mw.text.trim(" BillboardIndependent ") then
p_1 = mw.text.trim(" {{!}} US [[Independent Albums]] ([[Billboard (magazine)|''Billboard'']])" .. p_275 .. " {{Albumchart/chartnote|" .. (t_note or "") .. "}}\n{{!}}" .. 'align="center"' ..
"{{!}}" .. (t_2 or "{{{2}}}") .. "\n")
elseif p_1_in == mw.text.trim(" BillboardCatalog ") then
p_1 = mw.text.trim(" {{!}} US [[Top Catalog Albums]] ([[Billboard (magazine)|''Billboard'']])" .. p_288 .. " {{Albumchart/chartnote|" .. (t_note or "") .. "}}\n{{!}}" .. 'align="center"' ..
"{{!}}" .. (t_2 or "{{{2}}}") .. "\n")
elseif p_1_in == mw.text.trim(" BillboardReggae ") then
p_1 = mw.text.trim(" {{!}} US Reggae Albums ([[Billboard (magazine)|''Billboard'']])" .. p_301 .. " {{Albumchart/chartnote|" .. (t_note or "") .. "}}\n{{!}}" .. 'align="center"' ..
"{{!}}" .. (t_2 or "{{{2}}}") .. "\n")
elseif p_1_in == mw.text.trim(" BillboardWorld ") then
p_1 = mw.text.trim(" {{!}} US World Albums ([[Billboard (magazine)|''Billboard'']])" .. p_314 .. " {{Albumchart/chartnote|" .. (t_note or "") .. "}}\n{{!}}" .. 'align="center"' ..
"{{!}}" .. (t_2 or "{{{2}}}") .. "\n")
elseif p_1_in == mw.text.trim(" BillboardComedy ") then
p_1 = mw.text.trim(" {{!}} US [[Top Comedy Albums]] ([[Billboard (magazine)|''Billboard'']])" .. p_327 .. " {{Albumchart/chartnote|" .. (t_note or "") .. "}}\n{{!}}" .. 'align="center"' ..
"{{!}}" .. (t_2 or "{{{2}}}") .. "\n")
elseif p_1_in == mw.text.trim(" BillboardSoundtrack ") then
p_1 = mw.text.trim(" {{!}} US Soundtrack Albums ([[Billboard (magazine)|''Billboard'']])" .. p_340 .. " {{Albumchart/chartnote|" .. (t_note or "") .. "}}\n{{!}}" .. 'align="center"' ..
"{{!}}" .. (t_2 or "{{{2}}}") .. "\n")
elseif p_1_in == mw.text.trim(" BillboardTastemaker ") then
p_1 = mw.text.trim(" {{!}} US [[Top Tastemaker Albums]] ([[Billboard (magazine)|''Billboard'']])" .. p_353 .. " {{Albumchart/chartnote|" .. (t_note or "") .. "}}\n{{!}}" .. 'align="center"' ..
"{{!}}" .. (t_2 or "{{{2}}}") .. "\n")
elseif p_1_in == mw.text.trim(" BillboardCanada ") then
p_1 = mw.text.trim(" {{!}} [[Canadian Albums Chart|Canadian Albums]] ([[Billboard (magazine)|''Billboard'']])" .. p_366 .. " {{Albumchart/chartnote|" .. (t_note or "") .. "}}\n{{!}}" .. 'align="center"' ..
"{{!}}" .. (t_2 or "{{{2}}}") .. "\n")
elseif p_1_in == mw.text.trim(" UK ") then
p_1 = mw.text.trim(" {{!}} UK Albums ([[Official Charts Company|OCC]])" .. p_379 .. " {{Albumchart/chartnote|" .. (t_note or "") .. "}}\n{{!}}" .. 'align="center"' ..
"{{!}}" .. (t_2 or "{{{2}}}") .. "\n")
elseif p_1_in == mw.text.trim(" UK2 ") then
p_1 = mw.text.trim(" {{!}} UK Albums ([[Official Charts Company|OCC]])" .. p_392 .. " {{Albumchart/chartnote|" .. (t_note or "") .. "}}\n{{!}}" .. 'align="center"' ..
"{{!}}" .. (t_2 or "{{{2}}}") .. "\n")
elseif p_1_in == mw.text.trim(" UKDigital ") then
p_1 = mw.text.trim(" {{!}} UK Digital Albums ([[Official Charts Company|OCC]])" .. p_405 .. " {{Albumchart/chartnote|" .. (t_note or "") .. "}}\n{{!}}" .. 'align="center"' ..
"{{!}}" .. (t_2 or "{{{2}}}") .. "\n")
elseif p_1_in == mw.text.trim(" UKDance ") then
p_1 = mw.text.trim(" {{!}} UK Dance Albums ([[Official Charts Company|OCC]])" .. p_418 .. " {{Albumchart/chartnote|" .. (t_note or "") .. "}}\n{{!}}" .. 'align="center"' ..
"{{!}}" .. (t_2 or "{{{2}}}") .. "\n")
elseif p_1_in == mw.text.trim(" UKComp ") then
p_1 = mw.text.trim(" {{!}} UK Compilation Albums ([[Official Charts Company|OCC]])" .. p_431 .. " {{Albumchart/chartnote|" .. (t_note or "") .. "}}\n{{!}}" .. 'align="center"' ..
"{{!}}" .. (t_2 or "{{{2}}}") .. "\n")
elseif p_1_in == mw.text.trim(" UKIndependent ") then
p_1 = mw.text.trim(" {{!}} UK Independent Albums ([[Official Charts Company|OCC]])" .. p_444 .. " {{Albumchart/chartnote|" .. (t_note or "") .. "}}\n{{!}}" .. 'align="center"' ..
"{{!}}" .. (t_2 or "{{{2}}}") .. "\n")
elseif p_1_in == mw.text.trim(" UKR&B ") then
p_1 = mw.text.trim(" {{!}} UK R&B Albums ([[Official Charts Company|OCC]])" .. p_457 .. " {{Albumchart/chartnote|" .. (t_note or "") .. "}}\n{{!}}" .. 'align="center"' ..
"{{!}}" .. (t_2 or "{{{2}}}") .. "\n")
elseif p_1_in == mw.text.trim(" UKCountry ") then
p_1 = mw.text.trim(" {{!}} UK Country Albums ([[Official Charts Company|OCC]])" .. p_470 .. " {{Albumchart/chartnote|" .. (t_note or "") .. "}}\n{{!}}" .. 'align="center"' ..
"{{!}}" .. (t_2 or "{{{2}}}") .. "\n")
elseif p_1_in == mw.text.trim(" Scotland ") then
p_1 = mw.text.trim(" {{!}} Scottish Albums ([[Official Charts Company|OCC]])" .. p_483 .. " {{Albumchart/chartnote|" .. (t_note or "") .. "}}\n{{!}}" .. 'align="center"' ..
"{{!}}" .. (t_2 or "{{{2}}}") .. "\n")
elseif p_1_in == mw.text.trim(" UKChartStats ") then
p_1 = mw.text.trim(" {{!}} UK Albums ([[Official Charts Company|OCC]])" .. p_496 .. " {{Albumchart/chartnote|" .. (t_note or "") .. "}}\n{{!}}" .. 'align="center"' ..
"{{!}}" .. (t_2 or "{{{2}}}") .. "\n")
elseif p_1_in == mw.text.trim(" UKZobble ") then
p_1 = mw.text.trim(" {{!}} UK Albums ([[Official Charts Company|OCC]])" .. p_509 .. " {{Albumchart/chartnote|" .. (t_note or "") .. "}}\n{{!}}" .. 'align="center"' ..
"{{!}}" .. (t_2 or "{{{2}}}") .. "\n")
elseif p_1_in == mw.text.trim(" Argentina ") then
p_1 = mw.text.trim(" {{!}} Argentinian Albums ([[CAPIF]])" .. p_522 .. " {{Albumchart/chartnote|" .. (t_note or "") .. "}}\n{{!}}" .. 'align="center"' ..
"{{!}}" .. (t_2 or "{{{2}}}") .. "\n")
elseif p_1_in == mw.text.trim(" Australia ") then
p_1 = mw.text.trim(" {{!}} Australian Albums ([[ARIA Charts|ARIA]])" .. p_535 .. " {{Albumchart/chartnote|" .. (t_note or "") .. "}}\n{{!}}" .. 'align="center"' ..
"{{!}}" .. (t_2 or "{{{2}}}") .. "\n")
elseif p_1_in == mw.text.trim(" Austria ") then
p_1 = mw.text.trim(" {{!}} Austrian Albums ([[Ö3 Austria Top 40|Ö3 Austria]])" .. p_548 .. " {{Albumchart/chartnote|" .. (t_note or "") .. "}}\n{{!}}" .. 'align="center"' ..
"{{!}}" .. (t_2 or "{{{2}}}") .. "\n")
elseif p_1_in == mw.text.trim(" Flanders ") then
p_1 = mw.text.trim(" {{!}} Belgian Albums ([[Ultratop]] Flanders)" .. p_561 .. " {{Albumchart/chartnote|" .. (t_note or "") .. "}}\n{{!}}" .. 'align="center"' ..
"{{!}}" .. (t_2 or "{{{2}}}") .. "\n")
elseif p_1_in == mw.text.trim(" Wallonia ") then
p_1 = mw.text.trim(" {{!}} Belgian Albums ([[Ultratop]] Wallonia)" .. p_574 .. " {{Albumchart/chartnote|" .. (t_note or "") .. "}}\n{{!}}" .. 'align="center"' ..
"{{!}}" .. (t_2 or "{{{2}}}") .. "\n")
elseif p_1_in == mw.text.trim(" Brazil ") then
p_1 = mw.text.trim(" {{!}} Brazilian Albums ([[Associação Brasileira dos Produtores de Discos|ABPD]])" .. p_587 .. " {{Albumchart/chartnote|" .. (t_note or "") .. "}}\n{{!}}" .. 'align="center"' ..
"{{!}}" .. (t_2 or "{{{2}}}") .. "\n")
elseif p_1_in == mw.text.trim(" Croatia ") then
p_1 = mw.text.trim(" {{!}} Croatian Foreign Albums ([[Croatian Albums Chart|IFPI]])" .. p_600 .. " {{Albumchart/chartnote|" .. (t_note or "") .. "}}\n{{!}}" .. 'align="center"' ..
"{{!}}" .. (t_2 or "{{{2}}}") .. "\n")
elseif p_1_in == mw.text.trim(" Czech ") then
p_1 = mw.text.trim(" {{!}} Czech Albums ([[IFPI|ČNS IFPI]])" .. p_613 .. " {{Albumchart/chartnote|" .. (t_note or "") .. "}}\n{{!}}" .. 'align="center"' ..
"{{!}}" .. (t_2 or "{{{2}}}") .. "\n")
elseif p_1_in == mw.text.trim(" Denmark ") then
p_1 = mw.text.trim(" {{!}} Danish Albums ([[Hitlisten]])" .. p_626 .. " {{Albumchart/chartnote|" .. (t_note or "") .. "}}\n{{!}}" .. 'align="center"' ..
"{{!}}" .. (t_2 or "{{{2}}}") .. "\n")
elseif p_1_in == mw.text.trim(" Denmark2 ") then
p_1 = mw.text.trim(" {{!}} Danish Albums ([[Hitlisten]])" .. p_639 .. " {{Albumchart/chartnote|" .. (t_note or "") .. "}}\n{{!}}" .. 'align="center"' ..
"{{!}}" .. (t_2 or "{{{2}}}") .. "\n")
elseif p_1_in == mw.text.trim(" Finland ") then
p_1 = mw.text.trim(" {{!}} Finnish Albums ([[The Official Finnish Charts|Suomen virallinen lista]])" .. p_652 .. " {{Albumchart/chartnote|" .. (t_note or "") .. "}}\n{{!}}" .. 'align="center"' ..
"{{!}}" .. (t_2 or "{{{2}}}") .. "\n")
elseif p_1_in == mw.text.trim(" France ") then
p_1 = mw.text.trim(" {{!}} French Albums ([[Syndicat National de l'Édition Phonographique|SNEP]])" .. p_665 .. " {{Albumchart/chartnote|" .. (t_note or "") .. "}}\n{{!}}" .. 'align="center"' ..
"{{!}}" .. (t_2 or "{{{2}}}") .. "\n")
elseif p_1_in == mw.text.trim(" Germany ") then
p_1 = mw.text.trim(" {{!}} German Albums ([[Media Control Charts|Media Control]])" .. p_678 .. " {{Albumchart/chartnote|" .. (t_note or "") .. "}}\n{{!}}" .. 'align="center"' ..
"{{!}}" .. (t_2 or "{{{2}}}") .. "\n")
elseif p_1_in == mw.text.trim(" Germany2 ") then
p_1 = mw.text.trim(" {{!}} German Albums ([[Media Control Charts|Media Control]])" .. p_691 .. " {{Albumchart/chartnote|" .. (t_note or "") .. "}}\n{{!}}" .. 'align="center"' ..
"{{!}}" .. (t_2 or "{{{2}}}") .. "\n")
elseif p_1_in == mw.text.trim(" Germany3 ") then
p_1 = mw.text.trim(" {{!}} German Albums ([[Media Control Charts|Media Control]])" .. p_704 .. " {{Albumchart/chartnote|" .. (t_note or "") .. "}}\n{{!}}" .. 'align="center"' ..
"{{!}}" .. (t_2 or "{{{2}}}") .. "\n")
elseif p_1_in == mw.text.trim(" GermanyComp ") then
p_1 = mw.text.trim(" {{!}} German Compilation Albums ([[Media Control Charts|Media Control]])" .. p_717 .. " {{Albumchart/chartnote|" .. (t_note or "") .. "}}\n{{!}}" .. 'align="center"' ..
"{{!}}" .. (t_2 or "{{{2}}}") .. "\n")
elseif p_1_in == mw.text.trim(" Greece ") then
p_1 = mw.text.trim(" {{!}} Greek Albums ([[IFPI Greece|IFPI]])" .. p_730 .. " {{Albumchart/chartnote|" .. (t_note or "") .. "}}\n{{!}}" .. 'align="center"' ..
"{{!}}" .. (t_2 or "{{{2}}}") .. "\n")
elseif p_1_in == mw.text.trim(" Hungary ") then
p_1 = mw.text.trim(" {{!}} Hungarian Albums ([[Association of Hungarian Record Companies|MAHASZ]])" .. p_743 .. " {{Albumchart/chartnote|" .. (t_note or "") .. "}}\n{{!}}" .. 'align="center"' ..
"{{!}}" .. (t_2 or "{{{2}}}") .. "\n")
elseif p_1_in == mw.text.trim(" Italy ") then
p_1 = mw.text.trim(" {{!}} Italian Albums ([[Federazione Industria Musicale Italiana|FIMI]])" .. p_756 .. " {{Albumchart/chartnote|" .. (t_note or "") .. "}}\n{{!}}" .. 'align="center"' ..
"{{!}}" .. (t_2 or "{{{2}}}") .. "\n")
elseif p_1_in == mw.text.trim(" Ireland ") then
p_1 = mw.text.trim(" {{!}} Irish Albums ([[Irish Recorded Music Association|IRMA]])" .. p_769 .. " {{Albumchart/chartnote|" .. (t_note or "") .. "}}\n{{!}}" .. 'align="center"' ..
"{{!}}" .. (t_2 or "{{{2}}}") .. "\n")
elseif p_1_in == mw.text.trim(" Ireland2 ") then
p_1 = mw.text.trim(" {{!}} Irish Albums ([[Irish Recorded Music Association|IRMA]])" .. p_782 .. " {{Albumchart/chartnote|" .. (t_note or "") .. "}}\n{{!}}" .. 'align="center"' ..
"{{!}}" .. (t_2 or "{{{2}}}") .. "\n")
elseif p_1_in == mw.text.trim(" IrelandClassical ") then
p_1 = mw.text.trim(" {{!}} Irish Classical Albums ([[Irish Recorded Music Association|IRMA]])" .. p_795 .. " {{Albumchart/chartnote|" .. (t_note or "") .. "}}\n{{!}}" .. 'align="center"' ..
"{{!}}" .. (t_2 or "{{{2}}}") .. "\n")
elseif p_1_in == mw.text.trim(" Korea ") then
p_1 = mw.text.trim(" {{!}} Korean Albums ([[GAON]])" .. p_808 .. " {{Albumchart/chartnote|" .. (t_note or "") .. "}}\n{{!}}" .. 'align="center"' ..
"{{!}}" .. (t_2 or "{{{2}}}") .. "\n")
elseif p_1_in == mw.text.trim(" KoreaNat ") then
p_1 = mw.text.trim(" {{!}} Korean National Albums ([[GAON]])" .. p_821 .. " {{Albumchart/chartnote|" .. (t_note or "") .. "}}\n{{!}}" .. 'align="center"' ..
"{{!}}" .. (t_2 or "{{{2}}}") .. "\n")
elseif p_1_in == mw.text.trim(" KoreaInt ") then
p_1 = mw.text.trim(" {{!}} Korean International Albums ([[GAON]])" .. p_834 .. " {{Albumchart/chartnote|" .. (t_note or "") .. "}}\n{{!}}" .. 'align="center"' ..
"{{!}}" .. (t_2 or "{{{2}}}") .. "\n")
elseif p_1_in == mw.text.trim(" Mexico ") then
p_1 = mw.text.trim(" {{!}} Mexican Albums ([[Top 100 Mexico]])" .. p_847 .. " {{Albumchart/chartnote|" .. (t_note or "") .. "}}\n{{!}}" .. 'align="center"' ..
"{{!}}" .. (t_2 or "{{{2}}}") .. "\n")
elseif p_1_in == mw.text.trim(" Mexico2 ") then
p_1 = mw.text.trim(" {{!}} Mexican Albums ([[Top 100 Mexico]])" .. p_860 .. " {{Albumchart/chartnote|" .. (t_note or "") .. "}}\n{{!}}" .. 'align="center"' ..
"{{!}}" .. (t_2 or "{{{2}}}") .. "\n")
elseif p_1_in == mw.text.trim(" Netherlands ") then
p_1 = mw.text.trim(" {{!}} Dutch Albums ([[MegaCharts]])" .. p_873 .. " {{Albumchart/chartnote|" .. (t_note or "") .. "}}\n{{!}}" .. 'align="center"' ..
"{{!}}" .. (t_2 or "{{{2}}}") .. "\n")
elseif p_1_in == mw.text.trim(" NetherlandsComp ") then
p_1 = mw.text.trim(" {{!}} Dutch Compilation Albums ([[MegaCharts]])" .. p_886 .. " {{Albumchart/chartnote|" .. (t_note or "") .. "}}\n{{!}}" .. 'align="center"' ..
"{{!}}" .. (t_2 or "{{{2}}}") .. "\n")
elseif p_1_in == mw.text.trim(" New Zealand ") then
p_1 = mw.text.trim(" {{!}} New Zealand Albums ([[Recorded Music NZ]])" .. p_899 .. " {{Albumchart/chartnote|" .. (t_note or "") .. "}}\n{{!}}" .. 'align="center"' ..
"{{!}}" .. (t_2 or "{{{2}}}") .. "\n")
elseif p_1_in == mw.text.trim(" Norway ") then
p_1 = mw.text.trim(" {{!}} Norwegian Albums ([[VG-lista]])" .. p_912 .. " {{Albumchart/chartnote|" .. (t_note or "") .. "}}\n{{!}}" .. 'align="center"' ..
"{{!}}" .. (t_2 or "{{{2}}}") .. "\n")
elseif p_1_in == mw.text.trim(" Oricon ") then
p_1 = mw.text.trim(" {{!}} Japanese Albums ([[Oricon]])" .. p_925 .. " {{Albumchart/chartnote|" .. (t_note or "") .. "}}\n{{!}}" .. 'align="center"' ..
"{{!}}" .. (t_2 or "{{{2}}}") .. "\n")
elseif p_1_in == mw.text.trim(" Poland ") then
p_1 = mw.text.trim(" {{!}} Polish Albums ([[Polish Society of the Phonographic Industry|ZPAV]])" .. p_938 .. " {{Albumchart/chartnote|" .. (t_note or "") .. "}}\n{{!}}" .. 'align="center"' ..
"{{!}}" .. (t_2 or "{{{2}}}") .. "\n")
elseif p_1_in == mw.text.trim(" Portugal ") then
p_1 = mw.text.trim(" {{!}} Portuguese Albums ([[Associação Fonográfica Portuguesa|AFP]])" .. p_951 .. " {{Albumchart/chartnote|" .. (t_note or "") .. "}}\n{{!}}" .. 'align="center"' ..
"{{!}}" .. (t_2 or "{{{2}}}") .. "\n")
elseif p_1_in == mw.text.trim(" Sweden ") then
p_1 = mw.text.trim(" {{!}} Swedish Albums ([[Sverigetopplistan]])" .. p_964 .. " {{Albumchart/chartnote|" .. (t_note or "") .. "}}\n{{!}}" .. 'align="center"' ..
"{{!}}" .. (t_2 or "{{{2}}}") .. "\n")
elseif p_1_in == mw.text.trim(" Switzerland ") then
p_1 = mw.text.trim(" {{!}} Swiss Albums ([[Swiss Music Charts|Schweizer Hitparade]])" .. p_977 .. " {{Albumchart/chartnote|" .. (t_note or "") .. "}}\n{{!}}" .. 'align="center"' ..
"{{!}}" .. (t_2 or "{{{2}}}") .. "\n")
elseif p_1_in == mw.text.trim(" Spain ") then
p_1 = mw.text.trim(" {{!}} Spanish Albums ([[Productores de Música de España|PROMUSICAE]])" .. p_990 .. " {{Albumchart/chartnote|" .. (t_note or "") .. "}}\n{{!}}" .. 'align="center"' ..
"{{!}}" .. (t_2 or "{{{2}}}") .. "\n")
elseif p_1_in == mw.text.trim(" AustraliaMV ") then
p_1 = mw.text.trim(" {{!}} Australian Music DVD ([[Australian Recording Industry Association|ARIA]]){{#tag:ref|[" .. (t_archiveurl or "{{{archiveurl}}}") .. ' "' .. (t_artist or "{{{artist}}}") .. " – " .. (t_dvd or "{{{dvd}}}") .. '"]. Top 40 DVD Chart. ' ..
"[[Australian Recording Industry Association]]. Archived from [http://www.ariacharts.com.au/pages/charts_display_music.asp?chart=1V40DVD the original] on " .. (t_archivedate or "{{{archivedate}}}") .. ". " .. p_11 .. " " .. p_12 .. "|name=" .. p_13 .. "}}\n{{!}}" .. 'align="center"' ..
"{{!}}" .. (t_2 or "{{{2}}}") .. "\n")
elseif p_1_in == mw.text.trim(" AustriaMV ") then
p_1 = mw.text.trim(" {{!}} Austrian Music DVD ([[Ö3 Austria Top 40|Ö3 Austria]]){{#tag:ref|[http://www.austriancharts.at/weekchart.asp?cat=d&year={{urlencode:" .. (t_year or "{{{year}}}") .. "}}&date={{urlencode:" .. (t_date or "{{{date}}}") .. "}}" .. ' "Austria Top 40 - Musik-DVDs Top 10"] (in Austriac). Austria Top 40. ' ..
"[[Ö3 Austria Top 40]]. " .. p_11 .. " " .. p_12 .. "|name=" .. p_13 .. "}}\n{{!}}" .. 'align="center"' ..
"{{!}}" .. (t_2 or "{{{2}}}") .. "\n")
elseif p_1_in == mw.text.trim(" FlandersMV ") then
p_1 = mw.text.trim(" {{!}} Belgian Music DVD ([[Ultratop]] Flanders){{#tag:ref|[http://www.ultratop.be/nl/showitem.asp?interpret={{urlencode:" .. (t_artist or "{{{artist}}}") .. "}}&titel=" .. p_1012 .. p_1013 .. '&cat=a "' .. (t_artist or "{{{artist}}}") .. " – " .. p_1014 .. p_1015 .. '"] (In Dutch). Ultratop.be. Hung Medien. ' .. p_11 .. " " .. p_12 .. "|name=" .. p_13 .. "}}\n{{!}}" .. 'align="center"' ..
"{{!}}" .. (t_2 or "{{{2}}}") .. "\n")
elseif p_1_in == mw.text.trim(" WalloniaMV ") then
p_1 = mw.text.trim(" {{!}} Belgian Music DVD ([[Ultratop]] Wallonia){{#tag:ref|[http://www.ultratop.be/fr/showitem.asp?interpret={{urlencode:" .. (t_artist or "{{{artist}}}") .. "}}&titel=" .. p_1012 .. p_1013 .. '&cat=a "' .. (t_artist or "{{{artist}}}") .. " – " .. p_1014 .. p_1015 .. '"] (In French). Ultratop.be. Hung Medien. ' .. p_11 .. " " .. p_12 .. "|name=" .. p_13 .. "}}\n{{!}}" .. 'align="center"' ..
"{{!}}" .. (t_2 or "{{{2}}}") .. "\n")
elseif p_1_in == mw.text.trim(" ItalyMV ") then
p_1 = mw.text.trim(" {{!}} Italian Music DVD ([[FIMI]]){{#tag:ref|" .. '"[http://www.fimi.it/classifiche_result_dvd.php?anno=' ..
"{{urlencode:" .. (t_year or "{{{year}}}") .. "}}&mese={{urlencode:" .. (t_month or "{{{month}}}") .. "}}&id={{urlencode:" .. (t_id or "{{{id}}}") .. "}} " .. (t_artist or "{{{artist}}}") .. " – " .. (t_album or "{{{album}}}") .. '"] (In Italian). Top 20 DVD Musicali. ' ..
"[[Federazione Industria Musicale Italiana]]. " .. p_11 .. " " .. p_12 .. "|name=" .. p_13 .. "}}\n{{!}}" .. 'align="center"' ..
"{{!}}" .. (t_2 or "{{{2}}}") .. "\n")
elseif p_1_in == mw.text.trim(" NetherlandsMV ") then
p_1 = mw.text.trim(" {{!}} Dutch Music DVD ([[MegaCharts]]){{#tag:ref|[http://www.ultratop.be/fr/showitem.asp?interpret={{urlencode:" .. (t_artist or "{{{artist}}}") .. "}}&titel=" .. p_1012 .. p_1013 .. '&cat=a "' .. (t_artist or "{{{artist}}}") .. " – " .. p_1014 .. p_1015 .. '"] (In Dutch). Ultratop.be. Hung Medien. ' .. p_11 .. " " .. p_12 .. "|name=" .. p_13 .. "}}\n{{!}}" .. 'align="center"' ..
"{{!}}" .. (t_2 or "{{{2}}}") .. "\n")
elseif p_1_in == mw.text.trim(" SpainMV ") then
p_1 = mw.text.trim(" {{!}} Spanish Music DVD ([[PROMUSICAE]]){{#tag:ref|[http://promusicae.es/files/listassemanales/dvds/historial/TOP%2020%20DVD%20{{urlencode:" .. (t_year or "{{{year}}}") .. "}}_{{urlencode:" .. (t_week or "{{{week}}}") .. "}}" .. '.pdf "Top 20 DVD Musical"] (In Spanish). Top 20 DVD Musical. ' ..
"[[PROMUSICAE]]. " .. p_11 .. " " .. p_12 .. "|name=" .. p_13 .. "}}\n{{!}}" .. 'align="center"' ..
"{{!}}" .. (t_2 or "{{{2}}}") .. "\n")
elseif p_1_in == mw.text.trim(" UKMV ") then
p_1 = mw.text.trim(" {{!}} UK Music Video DVD ([[Official Charts Company]]){{#tag:ref|[http://www.officialcharts.com/video-archive-chart/_/29/" .. (t_date or "{{{date}}}") .. '/ "' .. (t_date or "{{{date}}}") .. ' Top 40 Music Video Albums Archive<nowiki>]</nowiki> Official Charts"]. ' ..
"[[UK Albums Chart]]. The Official Charts Company. " .. p_11 .. " " .. p_12 .. "|name=" .. p_13 .. "}}\n{{!}}" .. 'align="center"' ..
"{{!}}" .. (t_2 or "{{{2}}}") .. "\n")
elseif p_1_in == mw.text.trim('[TOKEN: DELETE LINE]') then
else p_1 = "'''Illegal chart entered ''" .. (t_1 or "{{{1}}}") .. "'''''{{!}}" .. (t_2 or "{{{2}}}")
end

if mw.text.trim(
"{{NAMESPACE}}:{{BASEPAGENAME}}") == mw.text.trim("Template:Albumchart") then
p_1047 = ""
else p_1047 = ""
end
 -- end parser function translations

return frame:preprocess("<includeonly>" .. p_0 .. p_1 .. p_1047 .. "</includeonly>\n<noinclude>\n{{documentation}}\n[[Category:WikiProject Albums templates]]\n</noinclude>")
end
return p
 ---- end of module ----
-- 14 nowiki segments treated as plain text