Module:FormatTemplate/sandbox/trialruns2

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 "") else p_4 = "" end

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

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

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

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

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

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

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

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

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

if mw.text.trim(" " .. (t_3 or "") .. " ") ~= "" then p_2 = " " else p_2 = " " end

if mw.text.trim(" " .. (t_3 or "") .. " ") ~= "" then p_15 = " " else p_15 = " " end

if mw.text.trim(" " .. (t_3 or "") .. " ") ~= "" then p_28 = " " else p_28 = " " end

if mw.text.trim(" " .. (t_3 or "") .. " ") ~= "" then p_41 = " " else p_41 = " " end

if mw.text.trim(" " .. (t_3 or "") .. " ") ~= "" then p_54 = " " else p_54 = " " end

if mw.text.trim(" " .. (t_3 or "") .. " ") ~= "" then p_67 = " " else p_67 = " " end

if mw.text.trim(" " .. (t_3 or "") .. " ") ~= "" then p_80 = " " else p_80 = " " end

if mw.text.trim(" " .. (t_3 or "") .. " ") ~= "" then p_93 = " " else p_93 = " " end

if mw.text.trim(" " .. (t_3 or "") .. " ") ~= "" then p_106 = " " else p_106 = " " end

if mw.text.trim(" " .. (t_3 or "") .. " ") ~= "" then p_119 = " " else p_119 = " " end

if mw.text.trim(" " .. (t_3 or "") .. " ") ~= "" then p_132 = " " else p_132 = " " end

if mw.text.trim(" " .. (t_3 or "") .. " ") ~= "" then p_145 = " " else p_145 = " " end

if mw.text.trim(" " .. (t_3 or "") .. " ") ~= "" then p_158 = " " else p_158 = " " end

if mw.text.trim(" " .. (t_3 or "") .. " ") ~= "" then p_171 = " " else p_171 = " " end

if mw.text.trim(" " .. (t_3 or "") .. " ") ~= "" then p_184 = " " else p_184 = " " end

if mw.text.trim(" " .. (t_3 or "") .. " ") ~= "" then p_197 = " " else p_197 = " " end

if mw.text.trim(" " .. (t_3 or "") .. " ") ~= "" then p_210 = " " else p_210 = " " end

if mw.text.trim(" " .. (t_3 or "") .. " ") ~= "" then p_223 = " " else p_223 = " " end

if mw.text.trim(" " .. (t_3 or "") .. " ") ~= "" then p_236 = " " else p_236 = " " end

if mw.text.trim(" " .. (t_3 or "") .. " ") ~= "" then p_249 = " " else p_249 = " " end

if mw.text.trim(" " .. (t_3 or "") .. " ") ~= "" then p_262 = " " else p_262 = " " end

if mw.text.trim(" " .. (t_3 or "") .. " ") ~= "" then p_275 = " " else p_275 = " " end

if mw.text.trim(" " .. (t_3 or "") .. " ") ~= "" then p_288 = " " else p_288 = " " end

if mw.text.trim(" " .. (t_3 or "") .. " ") ~= "" then p_301 = " " else p_301 = " " end

if mw.text.trim(" " .. (t_3 or "") .. " ") ~= "" then p_314 = " " else p_314 = " " end

if mw.text.trim(" " .. (t_3 or "") .. " ") ~= "" then p_327 = " " else p_327 = " " end

if mw.text.trim(" " .. (t_3 or "") .. " ") ~= "" then p_340 = " " else p_340 = " " end

if mw.text.trim(" " .. (t_3 or "") .. " ") ~= "" then p_353 = " " else p_353 = " " end

if mw.text.trim(" " .. (t_3 or "") .. " ") ~= "" then p_366 = " " else p_366 = " " end

if mw.text.trim(" " .. (t_3 or "") .. " ") ~= "" then p_379 = " " else p_379 = " " end

if mw.text.trim(" " .. (t_3 or "") .. " ") ~= "" then p_392 = " " else p_392 = " " end

if mw.text.trim(" " .. (t_3 or "") .. " ") ~= "" then p_405 = " " else p_405 = " " end

if mw.text.trim(" " .. (t_3 or "") .. " ") ~= "" then p_418 = " " else p_418 = " " end

if mw.text.trim(" " .. (t_3 or "") .. " ") ~= "" then p_431 = " " else p_431 = " " end

if mw.text.trim(" " .. (t_3 or "") .. " ") ~= "" then p_444 = " " else p_444 = " " end

if mw.text.trim(" " .. (t_3 or "") .. " ") ~= "" then p_457 = " " else p_457 = " " end

if mw.text.trim(" " .. (t_3 or "") .. " ") ~= "" then p_470 = " " else p_470 = " " end

if mw.text.trim(" " .. (t_3 or "") .. " ") ~= "" then p_483 = " " else p_483 = " " end

if mw.text.trim(" " .. (t_3 or "") .. " ") ~= "" then p_496 = " " else p_496 = " " end

if mw.text.trim(" " .. (t_3 or "") .. " ") ~= "" then p_509 = " " else p_509 = " " end

if mw.text.trim(" " .. (t_3 or "") .. " ") ~= "" then p_522 = " " else p_522 = " " end

if mw.text.trim(" " .. (t_3 or "") .. " ") ~= "" then p_535 = " " else p_535 = " " end

if mw.text.trim(" " .. (t_3 or "") .. " ") ~= "" then p_548 = " " else p_548 = " " end

if mw.text.trim(" " .. (t_3 or "") .. " ") ~= "" then p_561 = " " else p_561 = " " end

if mw.text.trim(" " .. (t_3 or "") .. " ") ~= "" then p_574 = " " else p_574 = " " end

if mw.text.trim(" " .. (t_3 or "") .. " ") ~= "" then p_587 = " " else p_587 = " " end

if mw.text.trim(" " .. (t_3 or "") .. " ") ~= "" then p_600 = " " else p_600 = " " end

if mw.text.trim(" " .. (t_3 or "") .. " ") ~= "" then p_613 = " " else p_613 = " " end

if mw.text.trim(" " .. (t_3 or "") .. " ") ~= "" then p_626 = " " else p_626 = " " end

if mw.text.trim(" " .. (t_3 or "") .. " ") ~= "" then p_639 = " " else p_639 = " " end

if mw.text.trim(" " .. (t_3 or "") .. " ") ~= "" then p_652 = " " else p_652 = " " end

if mw.text.trim(" " .. (t_3 or "") .. " ") ~= "" then p_665 = " " else p_665 = " " end

if mw.text.trim(" " .. (t_3 or "") .. " ") ~= "" then p_678 = " " else p_678 = " " end

if mw.text.trim(" " .. (t_3 or "") .. " ") ~= "" then p_691 = " " else p_691 = " " end

if mw.text.trim(" " .. (t_3 or "") .. " ") ~= "" then p_704 = " " else p_704 = " " end

if mw.text.trim(" " .. (t_3 or "") .. " ") ~= "" then p_717 = " " else p_717 = " " end

if mw.text.trim(" " .. (t_3 or "") .. " ") ~= "" then p_730 = " " else p_730 = " " end

if mw.text.trim(" " .. (t_3 or "") .. " ") ~= "" then p_743 = " " else p_743 = " " end

if mw.text.trim(" " .. (t_3 or "") .. " ") ~= "" then p_756 = " " else p_756 = " " end

if mw.text.trim(" " .. (t_3 or "") .. " ") ~= "" then p_769 = " " else p_769 = " " end

if mw.text.trim(" " .. (t_3 or "") .. " ") ~= "" then p_782 = " " else p_782 = " " end

if mw.text.trim(" " .. (t_3 or "") .. " ") ~= "" then p_795 = " " else p_795 = " " end

if mw.text.trim(" " .. (t_3 or "") .. " ") ~= "" then p_808 = " " else p_808 = " " end

if mw.text.trim(" " .. (t_3 or "") .. " ") ~= "" then p_821 = " " else p_821 = " " end

if mw.text.trim(" " .. (t_3 or "") .. " ") ~= "" then p_834 = " " else p_834 = " " end

if mw.text.trim(" " .. (t_3 or "") .. " ") ~= "" then p_847 = " " else p_847 = " " end

if mw.text.trim(" " .. (t_3 or "") .. " ") ~= "" then p_860 = " " else p_860 = " " end

if mw.text.trim(" " .. (t_3 or "") .. " ") ~= "" then p_873 = " " else p_873 = " " end

if mw.text.trim(" " .. (t_3 or "") .. " ") ~= "" then p_886 = " " else p_886 = " " end

if mw.text.trim(" " .. (t_3 or "") .. " ") ~= "" then p_899 = " " else p_899 = " " end

if mw.text.trim(" " .. (t_3 or "") .. " ") ~= "" then p_912 = " " else p_912 = " " end

if mw.text.trim(" " .. (t_3 or "") .. " ") ~= "" then p_925 = " " else p_925 = " " end

if mw.text.trim(" " .. (t_3 or "") .. " ") ~= "" then p_938 = " " else p_938 = " " end

if mw.text.trim(" " .. (t_3 or "") .. " ") ~= "" then p_951 = " " else p_951 = " " end

if mw.text.trim(" " .. (t_3 or "") .. " ") ~= "" then p_964 = " " else p_964 = " " end

if mw.text.trim(" " .. (t_3 or "") .. " ") ~= "" then p_977 = " " else p_977 = " " end

if mw.text.trim(" " .. (t_3 or "") .. " ") ~= "" then p_990 = " " else p_990 = " " end

if mw.text.trim((t_dvd or "")) ~= "" then p_1012 = "" else p_1012 = "" end

if mw.text.trim((t_album or "")) ~= "" then p_1013 = "" else p_1013 = "" end

if mw.text.trim((t_dvd or "")) ~= "" then p_1014 = (t_dvd or "") .. " [DVD&#x3c;nowiki&#x3e;]&#x3c;/nowiki&#x3e;" else p_1014 = "" end

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

p_1_in = mw.text.trim((t_1 or "") .. "\n") if p_1_in == mw.text.trim(" Billboard200 ") then p_1 = mw.text.trim(" | US Billboard 200" .. p_2 .. " \n|" .. 'align="center"' .. "|" .. (t_2 or "") .. "\n") elseif p_1_in == mw.text.trim(" BillboardDigital ") then p_1 = mw.text.trim(" | US Digital Albums (Billboard)" .. p_15 .. " \n|" .. 'align="center"' .. "|" .. (t_2 or "") .. "\n") elseif p_1_in == mw.text.trim(" BillboardHeatseekers ") then p_1 = mw.text.trim(" | US Top Heatseekers Albums (Billboard)" .. p_28 .. " \n|" .. 'align="center"' .. "|" .. (t_2 or "") .. "\n") elseif p_1_in == mw.text.trim(" BillboardDanceElectronic ") then p_1 = mw.text.trim(" | US Dance/Electronic Albums (Billboard)" .. p_41 .. " \n|" .. 'align="center"' .. "|" .. (t_2 or "") .. "\n") elseif p_1_in == mw.text.trim(" BillboardRandBHipHop ") then p_1 = mw.text.trim(" | US Top R& (Billboard)" .. p_54 .. " \n|" .. 'align="center"' .. "|" .. (t_2 or "") .. "\n") elseif p_1_in == mw.text.trim(" BillboardRap ") then p_1 = mw.text.trim(" | US Top Rap Albums (Billboard)" .. p_67 .. " \n|" .. 'align="center"' .. "|" .. (t_2 or "") .. "\n") elseif p_1_in == mw.text.trim(" BillboardRock ") then p_1 = mw.text.trim(" | US Top Rock Albums (Billboard)" .. p_80 .. " \n|" .. 'align="center"' .. "|" .. (t_2 or "") .. "\n") elseif p_1_in == mw.text.trim(" BillboardAlternative ") then p_1 = mw.text.trim(" | US Top Alternative Albums (Billboard)" .. p_93 .. " \n|" .. 'align="center"' .. "|" .. (t_2 or "") .. "\n") elseif p_1_in == mw.text.trim(" BillboardHardRock ") then p_1 = mw.text.trim(" | US Top Hard Rock Albums (Billboard)" .. p_106 .. " \n|" .. 'align="center"' .. "|" .. (t_2 or "") .. "\n") elseif p_1_in == mw.text.trim(" BillboardFolk ") then p_1 = mw.text.trim(" | US Folk Albums (Billboard)" .. p_119 .. " \n|" .. 'align="center"' .. "|" .. (t_2 or "") .. "\n") elseif p_1_in == mw.text.trim(" BillboardCountry ") then p_1 = mw.text.trim(" | US Top Country Albums (Billboard)" .. p_132 .. " \n|" .. 'align="center"' .. "|" .. (t_2 or "") .. "\n") elseif p_1_in == mw.text.trim(" BillboardBluegrass ") then p_1 = mw.text.trim(" | US Top Bluegrass Albums (Billboard)" .. p_145 .. " \n|" .. 'align="center"' .. "|" .. (t_2 or "") .. "\n") elseif p_1_in == mw.text.trim(" BillboardJazz ") then p_1 = mw.text.trim(" | US Top Jazz Albums (Billboard)" .. p_158 .. " \n|" .. 'align="center"' .. "|" .. (t_2 or "") .. "\n") elseif p_1_in == mw.text.trim(" BillboardBlues ") then p_1 = mw.text.trim(" | US Top Blues Albums (Billboard)" .. p_171 .. " \n|" .. 'align="center"' .. "|" .. (t_2 or "") .. "\n") elseif p_1_in == mw.text.trim(" BillboardClassical ") then p_1 = mw.text.trim(" | US Top Classical Albums (Billboard)" .. p_184 .. " \n|" .. 'align="center"' .. "|" .. (t_2 or "") .. "\n") elseif p_1_in == mw.text.trim(" BillboardLatin ") then p_1 = mw.text.trim(" | US Top Latin Albums (Billboard)" .. p_197 .. " \n|" .. 'align="center"' .. "|" .. (t_2 or "") .. "\n") elseif p_1_in == mw.text.trim(" BillboardRegionalMexican ") then p_1 = mw.text.trim(" | US Regional Mexican Albums (Billboard)" .. p_210 .. " \n|" .. 'align="center"' .. "|" .. (t_2 or "") .. "\n") elseif p_1_in == mw.text.trim(" BillboardLatinPop ") then p_1 = mw.text.trim(" | US Latin Pop Albums (Billboard)" .. p_223 .. " \n|" .. 'align="center"' .. "|" .. (t_2 or "") .. "\n") elseif p_1_in == mw.text.trim(" BillboardTropical ") then p_1 = mw.text.trim(" | US Tropical Albums (Billboard)" .. p_236 .. " \n|" .. 'align="center"' .. "|" .. (t_2 or "") .. "\n") elseif p_1_in == mw.text.trim(" BillboardChristian ") then p_1 = mw.text.trim(" | US Christian Albums (Billboard)" .. p_249 .. " \n|" .. 'align="center"' .. "|" .. (t_2 or "") .. "\n") elseif p_1_in == mw.text.trim(" BillboardGospel ") then p_1 = mw.text.trim(" | US Top Gospel Albums (Billboard)" .. p_262 .. " \n|" .. 'align="center"' .. "|" .. (t_2 or "") .. "\n") elseif p_1_in == mw.text.trim(" BillboardIndependent ") then p_1 = mw.text.trim(" | US Independent Albums (Billboard)" .. p_275 .. " \n|" .. 'align="center"' .. "|" .. (t_2 or "") .. "\n") elseif p_1_in == mw.text.trim(" BillboardCatalog ") then p_1 = mw.text.trim(" | US Top Catalog Albums (Billboard)" .. p_288 .. " \n|" .. 'align="center"' .. "|" .. (t_2 or "") .. "\n") elseif p_1_in == mw.text.trim(" BillboardReggae ") then p_1 = mw.text.trim(" | US Reggae Albums (Billboard)" .. p_301 .. " \n|" .. 'align="center"' .. "|" .. (t_2 or "") .. "\n") elseif p_1_in == mw.text.trim(" BillboardWorld ") then p_1 = mw.text.trim(" | US World Albums (Billboard)" .. p_314 .. " \n|" .. 'align="center"' .. "|" .. (t_2 or "") .. "\n") elseif p_1_in == mw.text.trim(" BillboardComedy ") then p_1 = mw.text.trim(" | US Top Comedy Albums (Billboard)" .. p_327 .. " \n|" .. 'align="center"' .. "|" .. (t_2 or "") .. "\n") elseif p_1_in == mw.text.trim(" BillboardSoundtrack ") then p_1 = mw.text.trim(" | US Soundtrack Albums (Billboard)" .. p_340 .. " \n|" .. 'align="center"' .. "|" .. (t_2 or "") .. "\n") elseif p_1_in == mw.text.trim(" BillboardTastemaker ") then p_1 = mw.text.trim(" | US Top Tastemaker Albums (Billboard)" .. p_353 .. " \n|" .. 'align="center"' .. "|" .. (t_2 or "") .. "\n") elseif p_1_in == mw.text.trim(" BillboardCanada ") then p_1 = mw.text.trim(" | Canadian Albums (Billboard)" .. p_366 .. " \n|" .. 'align="center"' .. "|" .. (t_2 or "") .. "\n") elseif p_1_in == mw.text.trim(" UK ") then p_1 = mw.text.trim(" | UK Albums (OCC)" .. p_379 .. " \n|" .. 'align="center"' .. "|" .. (t_2 or "") .. "\n") elseif p_1_in == mw.text.trim(" UK2 ") then p_1 = mw.text.trim(" | UK Albums (OCC)" .. p_392 .. " \n|" .. 'align="center"' .. "|" .. (t_2 or "") .. "\n") elseif p_1_in == mw.text.trim(" UKDigital ") then p_1 = mw.text.trim(" | UK Digital Albums (OCC)" .. p_405 .. " \n|" .. 'align="center"' .. "|" .. (t_2 or "") .. "\n") elseif p_1_in == mw.text.trim(" UKDance ") then p_1 = mw.text.trim(" | UK Dance Albums (OCC)" .. p_418 .. " \n|" .. 'align="center"' .. "|" .. (t_2 or "") .. "\n") elseif p_1_in == mw.text.trim(" UKComp ") then p_1 = mw.text.trim(" | UK Compilation Albums (OCC)" .. p_431 .. " \n|" .. 'align="center"' .. "|" .. (t_2 or "") .. "\n") elseif p_1_in == mw.text.trim(" UKIndependent ") then p_1 = mw.text.trim(" | UK Independent Albums (OCC)" .. p_444 .. " \n|" .. 'align="center"' .. "|" .. (t_2 or "") .. "\n") elseif p_1_in == mw.text.trim(" UKR&#x26;B ") then p_1 = mw.text.trim(" | UK R&#x26;B Albums (OCC)" .. p_457 .. " \n|" .. 'align="center"' .. "|" .. (t_2 or "") .. "\n") elseif p_1_in == mw.text.trim(" UKCountry ") then p_1 = mw.text.trim(" | UK Country Albums (OCC)" .. p_470 .. " \n|" .. 'align="center"' .. "|" .. (t_2 or "") .. "\n") elseif p_1_in == mw.text.trim(" Scotland ") then p_1 = mw.text.trim(" | Scottish Albums (OCC)" .. p_483 .. " \n|" .. 'align="center"' .. "|" .. (t_2 or "") .. "\n") elseif p_1_in == mw.text.trim(" UKChartStats ") then p_1 = mw.text.trim(" | UK Albums (OCC)" .. p_496 .. " \n|" .. 'align="center"' .. "|" .. (t_2 or "") .. "\n") elseif p_1_in == mw.text.trim(" UKZobble ") then p_1 = mw.text.trim(" | UK Albums (OCC)" .. p_509 .. " \n|" .. 'align="center"' .. "|" .. (t_2 or "") .. "\n") elseif p_1_in == mw.text.trim(" Argentina ") then p_1 = mw.text.trim(" | Argentinian Albums (CAPIF)" .. p_522 .. " \n|" .. 'align="center"' .. "|" .. (t_2 or "") .. "\n") elseif p_1_in == mw.text.trim(" Australia ") then p_1 = mw.text.trim(" | Australian Albums (ARIA)" .. p_535 .. " \n|" .. 'align="center"' .. "|" .. (t_2 or "") .. "\n") elseif p_1_in == mw.text.trim(" Austria ") then p_1 = mw.text.trim(" | Austrian Albums (Ö3 Austria)" .. p_548 .. " \n|" .. 'align="center"' .. "|" .. (t_2 or "") .. "\n") elseif p_1_in == mw.text.trim(" Flanders ") then p_1 = mw.text.trim(" | Belgian Albums (Ultratop Flanders)" .. p_561 .. " \n|" .. 'align="center"' .. "|" .. (t_2 or "") .. "\n") elseif p_1_in == mw.text.trim(" Wallonia ") then p_1 = mw.text.trim(" | Belgian Albums (Ultratop Wallonia)" .. p_574 .. " \n|" .. 'align="center"' .. "|" .. (t_2 or "") .. "\n") elseif p_1_in == mw.text.trim(" Brazil ") then p_1 = mw.text.trim(" | Brazilian Albums (ABPD)" .. p_587 .. " \n|" .. 'align="center"' .. "|" .. (t_2 or "") .. "\n") elseif p_1_in == mw.text.trim(" Croatia ") then p_1 = mw.text.trim(" | Croatian Foreign Albums (IFPI)" .. p_600 .. " \n|" .. 'align="center"' .. "|" .. (t_2 or "") .. "\n") elseif p_1_in == mw.text.trim(" Czech ") then p_1 = mw.text.trim(" | Czech Albums (ČNS IFPI)" .. p_613 .. " \n|" .. 'align="center"' .. "|" .. (t_2 or "") .. "\n") elseif p_1_in == mw.text.trim(" Denmark ") then p_1 = mw.text.trim(" | Danish Albums (Hitlisten)" .. p_626 .. " \n|" .. 'align="center"' .. "|" .. (t_2 or "") .. "\n") elseif p_1_in == mw.text.trim(" Denmark2 ") then p_1 = mw.text.trim(" | Danish Albums (Hitlisten)" .. p_639 .. " \n|" .. 'align="center"' .. "|" .. (t_2 or "") .. "\n") elseif p_1_in == mw.text.trim(" Finland ") then p_1 = mw.text.trim(" | Finnish Albums (Suomen virallinen lista)" .. p_652 .. " \n|" .. 'align="center"' .. "|" .. (t_2 or "") .. "\n") elseif p_1_in == mw.text.trim(" France ") then p_1 = mw.text.trim(" | French Albums (SNEP)" .. p_665 .. " \n|" .. 'align="center"' .. "|" .. (t_2 or "") .. "\n") elseif p_1_in == mw.text.trim(" Germany ") then p_1 = mw.text.trim(" | German Albums (Media Control)" .. p_678 .. " \n|" .. 'align="center"' .. "|" .. (t_2 or "") .. "\n") elseif p_1_in == mw.text.trim(" Germany2 ") then p_1 = mw.text.trim(" | German Albums (Media Control)" .. p_691 .. " \n|" .. 'align="center"' .. "|" .. (t_2 or "") .. "\n") elseif p_1_in == mw.text.trim(" Germany3 ") then p_1 = mw.text.trim(" | German Albums (Media Control)" .. p_704 .. " \n|" .. 'align="center"' .. "|" .. (t_2 or "") .. "\n") elseif p_1_in == mw.text.trim(" GermanyComp ") then p_1 = mw.text.trim(" | German Compilation Albums (Media Control)" .. p_717 .. " \n|" .. 'align="center"' .. "|" .. (t_2 or "") .. "\n") elseif p_1_in == mw.text.trim(" Greece ") then p_1 = mw.text.trim(" | Greek Albums (IFPI)" .. p_730 .. " \n|" .. 'align="center"' .. "|" .. (t_2 or "") .. "\n") elseif p_1_in == mw.text.trim(" Hungary ") then p_1 = mw.text.trim(" | Hungarian Albums (MAHASZ)" .. p_743 .. " \n|" .. 'align="center"' .. "|" .. (t_2 or "") .. "\n") elseif p_1_in == mw.text.trim(" Italy ") then p_1 = mw.text.trim(" | Italian Albums (FIMI)" .. p_756 .. " \n|" .. 'align="center"' .. "|" .. (t_2 or "") .. "\n") elseif p_1_in == mw.text.trim(" Ireland ") then p_1 = mw.text.trim(" | Irish Albums (IRMA)" .. p_769 .. " \n|" .. 'align="center"' .. "|" .. (t_2 or "") .. "\n") elseif p_1_in == mw.text.trim(" Ireland2 ") then p_1 = mw.text.trim(" | Irish Albums (IRMA)" .. p_782 .. " \n|" .. 'align="center"' .. "|" .. (t_2 or "") .. "\n") elseif p_1_in == mw.text.trim(" IrelandClassical ") then p_1 = mw.text.trim(" | Irish Classical Albums (IRMA)" .. p_795 .. " \n|" .. 'align="center"' .. "|" .. (t_2 or "") .. "\n") elseif p_1_in == mw.text.trim(" Korea ") then p_1 = mw.text.trim(" | Korean Albums (GAON)" .. p_808 .. " \n|" .. 'align="center"' .. "|" .. (t_2 or "") .. "\n") elseif p_1_in == mw.text.trim(" KoreaNat ") then p_1 = mw.text.trim(" | Korean National Albums (GAON)" .. p_821 .. " \n|" .. 'align="center"' .. "|" .. (t_2 or "") .. "\n") elseif p_1_in == mw.text.trim(" KoreaInt ") then p_1 = mw.text.trim(" | Korean International Albums (GAON)" .. p_834 .. " \n|" .. 'align="center"' .. "|" .. (t_2 or "") .. "\n") elseif p_1_in == mw.text.trim(" Mexico ") then p_1 = mw.text.trim(" | Mexican Albums (Top 100 Mexico)" .. p_847 .. " \n|" .. 'align="center"' .. "|" .. (t_2 or "") .. "\n") elseif p_1_in == mw.text.trim(" Mexico2 ") then p_1 = mw.text.trim(" | Mexican Albums (Top 100 Mexico)" .. p_860 .. " \n|" .. 'align="center"' .. "|" .. (t_2 or "") .. "\n") elseif p_1_in == mw.text.trim(" Netherlands ") then p_1 = mw.text.trim(" | Dutch Albums (MegaCharts)" .. p_873 .. " \n|" .. 'align="center"' .. "|" .. (t_2 or "") .. "\n") elseif p_1_in == mw.text.trim(" NetherlandsComp ") then p_1 = mw.text.trim(" | Dutch Compilation Albums (MegaCharts)" .. p_886 .. " \n|" .. 'align="center"' .. "|" .. (t_2 or "") .. "\n") elseif p_1_in == mw.text.trim(" New Zealand ") then p_1 = mw.text.trim(" | New Zealand Albums (Recorded Music NZ)" .. p_899 .. " \n|" .. 'align="center"' .. "|" .. (t_2 or "") .. "\n") elseif p_1_in == mw.text.trim(" Norway ") then p_1 = mw.text.trim(" | Norwegian Albums (VG-lista)" .. p_912 .. " \n|" .. 'align="center"' .. "|" .. (t_2 or "") .. "\n") elseif p_1_in == mw.text.trim(" Oricon ") then p_1 = mw.text.trim(" | Japanese Albums (Oricon)" .. p_925 .. " \n|" .. 'align="center"' .. "|" .. (t_2 or "") .. "\n") elseif p_1_in == mw.text.trim(" Poland ") then p_1 = mw.text.trim(" | Polish Albums (ZPAV)" .. p_938 .. " \n|" .. 'align="center"' .. "|" .. (t_2 or "") .. "\n") elseif p_1_in == mw.text.trim(" Portugal ") then p_1 = mw.text.trim(" | Portuguese Albums (AFP)" .. p_951 .. " \n|" .. 'align="center"' .. "|" .. (t_2 or "") .. "\n") elseif p_1_in == mw.text.trim(" Sweden ") then p_1 = mw.text.trim(" | Swedish Albums (Sverigetopplistan)" .. p_964 .. " \n|" .. 'align="center"' .. "|" .. (t_2 or "") .. "\n") elseif p_1_in == mw.text.trim(" Switzerland ") then p_1 = mw.text.trim(" | Swiss Albums (Schweizer Hitparade)" .. p_977 .. " \n|" .. 'align="center"' .. "|" .. (t_2 or "") .. "\n") elseif p_1_in == mw.text.trim(" Spain ") then p_1 = mw.text.trim(" | Spanish Albums (PROMUSICAE)" .. p_990 .. " \n|" .. 'align="center"' .. "|" .. (t_2 or "") .. "\n") elseif p_1_in == mw.text.trim(" AustraliaMV ") then p_1 = mw.text.trim(" | Australian Music DVD (ARIA)\n|" .. 'align="center"' .. "|" .. (t_2 or "") .. "\n") elseif p_1_in == mw.text.trim(" AustriaMV ") then p_1 = mw.text.trim(" | Austrian Music DVD (Ö3 Austria)\n|" .. 'align="center"' .. "|" .. (t_2 or "") .. "\n") elseif p_1_in == mw.text.trim(" FlandersMV ") then p_1 = mw.text.trim(" | Belgian Music DVD (Ultratop Flanders)\n|" .. 'align="center"' .. "|" .. (t_2 or "") .. "\n") elseif p_1_in == mw.text.trim(" WalloniaMV ") then p_1 = mw.text.trim(" | Belgian Music DVD (Ultratop Wallonia)\n|" .. 'align="center"' .. "|" .. (t_2 or "") .. "\n") elseif p_1_in == mw.text.trim(" ItalyMV ") then p_1 = mw.text.trim(" | Italian Music DVD (FIMI)\n|" .. 'align="center"' .. "|" .. (t_2 or "") .. "\n") elseif p_1_in == mw.text.trim(" NetherlandsMV ") then p_1 = mw.text.trim(" | Dutch Music DVD (MegaCharts)\n|" .. 'align="center"' .. "|" .. (t_2 or "") .. "\n") elseif p_1_in == mw.text.trim(" SpainMV ") then p_1 = mw.text.trim(" | Spanish Music DVD (PROMUSICAE)\n|" .. 'align="center"' .. "|" .. (t_2 or "") .. "\n") elseif p_1_in == mw.text.trim(" UKMV ") then p_1 = mw.text.trim(" | UK Music Video DVD (Official Charts Company)\n|" .. 'align="center"' .. "|" .. (t_2 or "") .. "\n") elseif p_1_in == mw.text.trim('[TOKEN: DELETE LINE]') then else p_1 = "'Illegal chart entered " .. (t_1 or "") .. "'|" .. (t_2 or "") end

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

return frame:preprocess("&#x3c;includeonly&#x3e;" .. p_0 .. p_1 .. p_1047 .. "&#x3c;/includeonly&#x3e;\n&#x3c;noinclude&#x3e;\n\n\n&#x3c;/noinclude&#x3e;") end return p end of module -- 14 nowiki segments treated as plain text