Module: Card

From trvlpedia
Jump to: navigation, search

Documentation for this module may be created at Module:Card/doc

local p = {}

local n = {
	undefined = "Card Not in Database",
	aarp = "AARP Credit Card",
	amazon = "Amazon Visa Card",
	ba = "British Airways Credit Card",
	freedom = "Freedom Card",
	freedomunlimited = "Freedom Unlimited Card",
	hyatt = "Hyatt Credit Card",
	ihg = "IHG Credit Card",
	inkcash = "Ink Cash Card",
	inkpreferred = "Ink Preferred Card",
	marriott = "Marriott Credit Card",
	marriottbiz = "Marriott Business Credit Card",
	ritz = "Ritz Carlton Credit Card",
	sapphirepreferred = "Sapphire Preferred Card",
	sapphirereserve = "Sapphire Reserve Card",
	swaplus = "Southwest Plus Card",
	swaplusbiz = "Southwest Plus Business Card", 
	swapremier = "Southwest Premier Card",
	swapremierbiz = "Southwest Premier Business Card",
	united = "United Explorer Credit Card",
	unitedbiz = "United Explorer Business Card",
	unitedclub = "United Club Credit Card",
	unitedclubbiz = "United Club Business Card",
	bluebiz = "Business Blue Plus Card",
	bluecard = "Amex Blue Card",
	bluecash = "Blue Cash Preferred Card",
	bluecashnaf = "Blue Cash Card",
	deltablue = "Delta Blue Credit Card",
	deltagold = "Delta Gold Credit Card",
	deltagoldbiz = "Delta Business Gold Card",
	deltaplatinum = "Delta Platinum Credit Card",
	deltaplatinumbiz = "Delta Business Platinum Card",
	deltareserve = "Delta Reserve Card",
	delttareservebiz = "Delta Business Reserve Card",
	everydaypreferred = "Everyday Preferred Card",
	everyday = "Amex Everyday Card",
	goldbiz = "Amex Business Gold Rewards Card",
	greenbiz = "Amex Business Green Card",
	greencard = "Amex Green Card",
	hiltoncard = "Hilton Credit Card",
	hiltonsurpass = "Hilton Ascend Credit Card",
	hiltonascend = "Hilton Ascend Credit Card",
	hiltonbiz = "Hilton Business Credit Card",
	hiltonaspire = "Hilton Aspire Credit Card",
	lowesbiz = "Lowes Business Card",
	mercedescard = "Mercedes-Benz Credit Card",
	morganstanley = "Morgan Stanley Credit Card",
	platinumbiz = "Amex Platinum Business Card",
	platinumcard = "Amex Platinum Card",
	platinummercedes = "Mercedes-Benz Amex Platinum Card",
	platinumameriprise = "Ameriprise Amex Platinum Card",
	platinumschwab = "Charles Schwab Amex Platinum CArd",
	platinummorgan = "Morgan Stanley Amex Platinum Card",
	platinumsachs = "Goldman Sachs Amex Platinum Card",
	premierrewards = "Amex Premier Rewards Card",
	simplycashbiz = "Amex SimplyCash Business Card",
	spgbiz = "SPG Business Credit Card",
	spgcard = "SPG Credit Card",
	aa = "American Airlines Platinum Card",
	aabiz = "American Airlines Business Card",
	aaexecutive = "American Airlines Executive Card",
	aagold = "American Airlines Gold Card",
	att = "AT&T Access Card",
	costco = "Costco Credit Card",
	costcobiz = "Costco Business Credit Card",
	doublecash = "Citi Double Cash Card",
	citipreferred = "Citi Preferred Card",
	citipremier = "Citi Premier Card",
	citiprestige = "Citi Prestige Card",
	arrival = "Arrival Card",
	aviator = "Aviator Red Card",
	aviatorbiz = "Aviator Business Card",
	aviatorsilver = "Aviator Silver Card",
	choice = "Choice Credit Card",
	frontier = "Frontier Credit Card", 
	hawaiian = "Hawaiian Airlines Credit Card",
	hawaiianbiz = "Hawaiian Airlines Business Card",
	jetbluebiz = "Jet Blue Business Credit Card", 
	jetblue = "Jet Blue Credit Card",
	lufthansa = "Miles & More Credit Card",
	wyndham = "Wyndham Credit Card",
	alaska = "Alaska Airlines Credit Card",
	alaskabiz = "Alaska Airlines Business Card",
	allegiant = "Allegiant Credit Card",
	amtrak = "Amtrak Credit Card",
	asiana = "Asiana Credit Card",
	asianabiz = "Asiana Business Card",
	boapremium = "BOA Premium Rewards Card",
	boatravel = "BOA Travel Rewards Card",
	boatravelbiz = "BOA Travel Rewards Busines Card",
	boacash = "BOA Cash Rewards Card",
	spirit = "Spirit Airlines Credit Card",
	spiritbiz = "Spirit Airliness Business Card",
	virgin = "Virgin Atlantic Credit Card",
	aeromexico = "Aeromexico Credit Card",
	altitude = "Altitude Reserve Card",
	businessedge = "Business Edge Card",
	businessedgeselect = "Business Edge Select Card",
	businessedgetravel = "Business Edge Travel Card",
	carlsonbiz = "Club Carlson Business Credit Card",
	carlson = "Club Carlson Premier Card",
	carlsonreg = "Club Carlson Card",
	carlsonnaf = "Club Carlson No Annual Fee Card",
	cashplus = "U.S. Bank Cash+ Card",
	flexperksgold = "Flexperks Gold Card",
	flexperksselect = "Flexperks Select Card",
	flexperkstravel = "Flexperks Travel Card",
	latam = "LATAM Credit Card",
	usbankplat = "U.S. Bank Platinum Card",
	skypass = "Korean Skypass Credit Card",
	skypassbiz = "Korean Skypass Business Card", 
	aaa = "AAA Credit Card",
	alliant = "Alliant Cashback Card",
	avianca = "Avianca Vuela Card",
	aviancavida ="Avianca Vida Card",
	bestwestern = "Best Western Credit Card",
	cathay = "Cathay Pacific Credit Card",
	ccucash = "Consumers Credit Union Cash Rebate Credit Card",
	crystalinfinite = "CNB Crystal Infinite Card",
	dinersclub = "Diner's Club Premier Card",
	discover = "Discover it Card",
	discovermiles = "Discover it Miles Card",
	ducks = "Ducks Unlimited Credit Card",
	fidelity = "Fidelity Rewards Credit Card",
	fnbobiz = "First National Bank Business Edition Card",
	fortknox = "Fort Knox Platinum Card",
	huntingtonvoice = "Huntington Voice Credit Card",
	jcbcard = "Marukai Premium JCB Card",
	nra = "NRA Cromplete Rewards Card",
	nusenda = "Nusenda Platinum Cash Rewards Card",
	paypal = "PayPal Cashback Credit Card",
	penfedplat = "Penfed Platinum Rewards Card",
	penfedtravel = "Penfed Travel Rewards Card",
	propel = "Wells Fargo Propel Card",
	samsclub = "Sam's Club Credit Card",
	savor = "Capital One Savor Card",
	sony = "Sony Credit Card",
	synovus = "Synovus Travel Rewards Card",
	totalrewards = "Total Rewards Credit Card",
	uber = "Uber Credit Card",
	ubsinfinite = "UBS Infinite Card",
	usaa = "USAA Limitless Cashback Card",
	vantage = "VantageWest Connect Credit Card",
	venture = "Capital One Venture Card",
	ventureone = "Capital One VentureOne Card",
}

local s = {
	undefined = "Card Not in Database",
	aarp = "AARP",
	amazon = "Amazon",
	ba = "British Airways",
	freedom = "Chase Freedom",
	freedomunlimited = "Chase Freedom Unlimited",
	hyatt = "Hyatt Card",
	ihg = "IHG Card",
	inkcash = "Ink Cash",
	inkpreferred = "Ink Preferred",
	marriott = "Marriott",
	marriottbiz = "Marriott Business",
	ritz = "Ritz Carlton",
	sapphirepreferred = "Chase Sapphire Preferred",
	sapphirereserve = "Chase Sapphire Reserve",
	swaplus = "Southwest Plus",
	swaplusbiz = "Southwest Plus Business", 
	swapremier = "Southwest Premier",
	swapremierbiz = "Southwest Premier Business",
	united = "United Explorer",
	unitedbiz = "United Explorer Business",
	unitedclub = "United Club",
	unitedclubbiz = "United Club Business",
	bluebiz = "Amex Business Blue Plus",
	bluecard = "Amex Blue Card",
	bluecash = "Amex Blue Cash Preferred",
	bluecashnaf = "Amex Blue Cash",
	deltablue = "Delta Blue",
	deltagold = "Delta Gold",
	deltagoldbiz = "Delta Business Gold",
	deltaplatinum = "Delta Platinum",
	deltaplatinumbiz = "Delta Business Platinum",
	deltareserve = "Delta Reserve",
	delttareservebiz = "Delta Business Reserve",
	everydaypreferred = "Amex Everyday Preferred",
	everyday = "Amex Everyday",
	goldbiz = "Amex Business Gold Card",
	greenbiz = "Amex Business Green Card",
	greencard = "Amex Green Card",
	hiltoncard = "Hilton",
	hiltonsurpass = "Hilton Ascend",
	hiltonascend = "Hilton Ascend",
	hiltonbiz = "Hilton Business",
	hiltonaspire = "Hilton Aspire",
	lowesbiz = "Lowes Business",
	mercedescard = "Mercedes-Benz",
	morganstanley = "Morgan Stanley",
	platinumbiz = "Amex Platinum Business Card",
	platinumcard = "Amex Platinum Card",
	platinummercedes = "Mercedes-Benz Platinum",
	platinumameriprise = "Ameriprise Platinum",
	platinumschwab = "Charles Schwab Platinum",
	platinummorgan = "Morgan Stanley Platinum",
	platinumsachs = "Goldman Sachs Platinum",
	premierrewards = "Amex Premier Rewards",
	simplycashbiz = "Amex SimplyCash Business",
	spgbiz = "SPG Business",
	spgcard = "SPG Card",
	aa = "American Airlines Platinum",
	aabiz = "American Airlines Business",
	aaexecutive = "American Airlines Executive",
	aagold = "American Airlines Gold",
	att = "AT&T Access",
	costco = "Costco",
	costcobiz = "Costco Business",
	doublecash = "Citi Double Cash",
	citipreferred = "Citi Preferred",
	citipremier = "Citi Premier",
	citiprestige = "Citi Prestige",
	arrival = "Barclay Arrival",
	aviator = "Aviator Red",
	aviatorbiz = "Aviator Business",
	aviatorsilver = "Aviator Silver",
	choice = "Choice",
	frontier = "Frontier", 
	hawaiian = "Hawaiian Airlines",
	hawaiianbiz = "Hawaiian Business",
	jetbluebiz = "Jet Blue Business", 
	jetblue = "Jet Blue",
	lufthansa = "Miles & More",
	wyndham = "Wyndham",
	alaska = "Alaska Airlines",
	alaskabiz = "Alaska Business",
	allegiant = "Allegiant",
	amtrak = "Amtrak",
	asiana = "Asiana",
	asianabiz = "Asiana Business",
	boapremium = "BOA Premium Rewards",
	boatravel = "BOA Travel Rewards",
	boatravelbiz = "BOA Travel Rewards Busines",
	boacash = "BOA Cash Rewards",
	spirit = "Spirit Airlines",
	spiritbiz = "Spirit Business",
	virgin = "Virgin Atlantic",
	aeromexico = "Aeromexico",
	altitude = "US Bank Altitude Reserve",
	businessedge = "US Bank Business Edge",
	businessedgeselect = "US Bank Business Edge Select",
	businessedgetravel = "US Bank Business Edge Travel",
	carlsonbiz = "Club Carlson Business",
	carlson = "Club Carlson Premier",
	carlsonreg = "Club Carlson Regular",
	carlsonnaf = "Club Carlson No Annual Fee",
	cashplus = "US Bank Cash+ Card",
	flexperksgold = "US Bank Flexperks Gold",
	flexperksselect = "US Bank Flexperks Select",
	flexperkstravel = "US Bank Flexperks Travel",
	latam = "LATAM",
	usbankplat = "US Bank Platinum",
	skypass = "Korean Skypass",
	skypassbiz = "Korean Skypass Business", 
	aaa = "AAA",
	alliant = "Alliant Cashback",
	avianca = "Avianca Vuela",
	aviancavida = "Avianca Vida",
	bestwestern = "Best Western",
	cathay = "Cathay Pacific",
	ccucash = "Consumers Credit Union Cash Rebate",
	crystalinfinite = "CNB Crystal Infinite",
	dinersclub = "Diner's Club Premier",
	discover = "Discover it",
	discovermiles = "Discover it Miles",
	ducks = "Ducks Unlimited",
	fidelity = "Fidelity Rewards",
	fnbobiz = "FNB Business Edition",
	fortknox = "Fort Knox Platinum",
	huntingtonvoice = "Huntington Voice",
	jcbcard = "Marukai JCB Card",
	nra = "NRA Cromplete Rewards",
	nusenda = "Nusenda Platinum",
	paypal = "PayPal Cashback",
	penfedplat = "Penfed Platinum",
	penfedtravel = "Penfed Travel",
	propel = "Wells Fargo Propel",
	samsclub = "Sam's Club",
	savor = "Capital One Savor Card",
	sony = "Sony",
	synovus = "Synovus Travel",
	totalrewards = "Total Rewards",
	uber = "Uber",
	ubsinfinite = "UBS Infinite",
	usaa = "USAA Limitless",
	vantage = "VantageWest Connect",
	venture = "Capital One Venture",
	ventureone = "Capital One VentureOne",
}

local i = {
	undefined = "SapphireReserve.png",
	aarp = "AARPCard.png",
	amazon = "AmazonCard.png",
	ba = "BACard.png",
	freedom = "Freedom.png",
	freedomunlimited = "FreedomUnlimited.png",
	hyatt = "HyattCard.png",
	ihg = "IHGCard.png",
	inkcash = "InkCash.png",
	inkpreferred = "InkPreferred.png",
	marriott = "MarriottCard.png",
	marriottbiz = "MarriottBiz.png",
	ritz = "RitzCard.png",
	sapphirepreferred = "SapphirePreferred.png",
	sapphirereserve = "SapphireReserve.png",
	swaplus = "SWAPlus.png",
	swaplusbiz = "SWAPlusBiz.png", 
	swapremier = "SWAPremier.png",
	swapremierbiz = "SWAPremierBiz.png",
	united = "UnitedCard.png",
	unitedbiz = "UnitedBiz.png",
	unitedclub = "UnitedClubCard.png",
	unitedclubbiz = "UnitedClubBiz.png",
	bluebiz = "BlueBiz.png",
	bluecard = "BlueCard.png",
	bluecash = "BlueCash.png",
	bluecashnaf = "BlueCashNAF.png",
	deltablue = "DeltaBlue.png",
	deltagold = "DeltaGold.png",
	deltagoldbiz = "DeltaGoldBiz.png",
	deltaplatinum = "DeltaPlatinum.png",
	deltaplatinumbiz = "DeltaPlatinumBiz.png",
	deltareserve = "DeltaReserve.png",
	delttareservebiz = "DeltaReserveBiz.png",
	everydaypreferred = "EverydayPreferred.png",
	everyday = "EverydayCard.png",
	goldbiz = "GoldBiz.png",
	greenbiz = "GreenBiz.png",
	greencard = "GreenCard.png",
	hiltoncard = "HiltonCard.png",
	hiltonsurpass = "HiltonAscend.png",
	hiltonascend = "HiltonAscend.png",
	hiltonbiz = "HiltonBiz.png",
	hiltonaspire = "HiltonAspire.png",
	lowesbiz = "LowesBiz.png",
	mercedescard = "MercedesCard.png",
	morganstanley = "MorganStanleyCard.png",
	platinumbiz = "PlatinumBiz.png",
	platinumcard = "PlatinumCard.png",
	platinummercedes = "PlatinumCard.png",
	platinumameriprise = "PlatinumCard.png",
	platinumschwab = "PlatinumCard.png",
	platinummorgan = "PlatinumCard.png",
	platinumsachs = "PlatinumCard.png",
	premierrewards = "PremierRewards.png",
	simplycashbiz = "SimplyCashBiz.png",
	spgbiz = "SPGBix.png",
	spgcard = "SPGCard.png",
	aa = "AACard.jpg",
	aabiz = "AABizCard.jpg",
	aaexecutive = "AAExecutive.jpg",
	aagold = "AAGold.jpg",
	att = "ATTCard.jpg",
	costco = "CostcoCard.jpg",
	costcobiz = "CostcoBizCard.jpg",
	doublecash = "DoubleCash.jpg",
	citipreferred = "ThankyouPreferred.jpg",
	citipremier = "ThankyouPremier.jpg",
	citiprestige = "ThankyouPrestige.jpg",
	arrival = "ArrivalCard.png",
	aviator = "AviatorRed.png",
	aviatorbiz = "AviatorBiz.png",
	aviatorsilver = "AviatorSilver.jpg",
	choice = "ChoiceCard.png",
	frontier = "FrontierCard.png", 
	hawaiian = "HawaiianCard.png",
	hawaiianbiz = "HawaiianBizCard.png",
	jetbluebiz = "JetBlueBusiness.png", 
	jetblue = "JetBluePlus.png",
	lufthansa = "LufthansaCard.png",
	wyndham = "WyndhamSigCard.jpg",
	alaska = "AlaskaCard.png",
	alaskabiz = "AlaskaBizCard.png",
	allegiant = "AllegiantCard.png",
	amtrak = "AmtrakCard.png",
	asiana = "AsianaCard.png",
	asianabiz = "AsianaBizCard.png",
	boapremium = "BOAPremium.png",
	boatravel = "BOATravel.png",
	boatravelbiz = "BOATravelBiz.png",
	spirit = "SpiritCard.png",
	spiritbiz = "SpiritBizCard.png",
	virgin = "VirginCard.png",
	aeromexico = "AeromexicoCard.png",
	altitude = "AltitudeReserve.png",
	businessedge = "BusinessEdge.png",
	businessedgeselect = "BusinessEdgeSelect.png",
	businessedgetravel = "BusinessEdgeTravel.png",
	carlsonbiz = "CarlsonBiz.png",
	carlson = "CarlsonCard.png",
	carlsonreg = "CarlsonRegCard.png",
	carlsonnaf = "CarlsonNAFCard.png",
	cashplus = "Cash+.png",
	flexperksgold = "FlexperksGold.png",
	flexperksselect = "FlexperksSelect.png",
	flexperkstravel = "FlexperksTravel.png",
	latam = "LatamCard.png",
	skypass = "SkypassCard.png",
	skypassbiz = "SkypassBizCard.png", 
	usbankplat = "USBPlatinum.png",
	aaa = "AAACreditCard.png",
	alliant = "AlliantCard.jpg",
	avianca = "AviancaCard.png",
	aviancavida = "AviancaVidaCard.png",
	bestwestern = "BestWesternCard.jpg",
	cathay = "CathayCard.jpg",
	ccucash = "CCUCash.png",
	crystalinfinite = "CrystalInfinite.png",
	dinersclub = "DinersClub.png",
	discover = "DiscoverCard.png",
	discovermiles = "DiscoverMiles.png",
	ducks = "DuckCard.png",
	fidelity = "FidelityCard.jpg",
	fnbobiz = "FNBOBiz.png",
	fortknox = "FtKnox.png",
	huntingtonvoice = "HuntingtonVoice.jpg",
	jcbcard = "MurukaiCard.jpg",
	nra = "NRACard.png",
	nusenda = "NusendaCard.png",
	paypal = "PayPalCash.jpg",
	penfedplat = "PenfedPlat.png",
	penfedtravel = "PenfedTravel.png",
	propel = "PropelCard.png",
	samsclub = "SamsClubCreditCard.jpg",
	savor = "SavorCard.png",
	sony = "SonyCard.jpg",
	synovus = "Synovus.png",
	totalrewards = "TotalRewardCard.jpg",
	uber = "UberCard.png",
	ubsinfinite = "UBSInfinite.jpeg",
	usaa = "USAACard.png",
	vantage = "VantageWest.png",
	venture = "Venture.png",
	ventureone = "VentureOneCard.png",
}

local g = {
	undefined = "Card Not in Database",
	aarp = "AARP Credit Card Guide",
	amazon = "Amazon Visa Guide",
	ba = "British Airways Credit Card Guide",
	freedom = "Freedom Card Guide",
	freedomunlimited = "Freedom Unlimited Guide",
	hyatt = "Hyatt Credit Card Guide",
	ihg = "IHG Credit Card Guide",
	inkcash = "Ink Cash Guide",
	inkpreferred = "Ink Preferred Guide",
	marriott = "Marriott Credit Card Guide",
	marriottbiz = "Marriott Credit Card Guide",
	ritz = "Ritz Carlton Credit Card Guide",
	sapphirepreferred = "Sapphire Preferred Guide",
	sapphirereserve = "Sapphire Reserve Guide",
	swaplus = "Southwest Credit Card Guide",
	swaplusbiz = "Southwest Credit Card Guide", 
	swapremier = "Southwest Credit Card Guide",
	swapremierbiz = "Southwest Credit Card Guide",
	united = "United Credit Card Guide",
	unitedbiz = "United Credit Card Guide",
	unitedclub = "United Credit Card Guide",
	unitedclubbiz = "United Credit Card Guide",
	bluebiz = "Business Blue Plus Guide",
	bluecard = "Amex Blue Webpage",
	bluecash = "Blue Cash Credit Card Guide",
	bluecashnaf = "Blue Cash Credit Card Guide",
	deltablue = "Delta Credit Card Guide",
	deltagold = "Delta Credit Card Guide",
	deltagoldbiz = "Delta Credit Card Guide",
	deltaplatinum = "Delta Credit Card Guide",
	deltaplatinumbiz = "Delta Credit Card Guide",
	deltareserve = "Delta Credit Card Guide",
	delttareservebiz = "Delta Reserve Card Guide",
	everydaypreferred = "Amex Everyday Credit Card Guide",
	everyday = "Amex Everyday Credit Card Guide",
	goldbiz = "Business Gold Rewards Card Guide",
	greenbiz = "Business Green Card Webpage",
	greencard = "Amex Green Card Webpage",
	hiltoncard = "Hilton Credit Card Guide",
	hiltonsurpass = "Hilton Credit Card Guide",
	hiltonascend = "Hilton Credit Card Guide",
	hiltonbiz = "Hilton Credit Card Guide",
	hiltonaspire = "Hilton Credit Card Guide",
	lowesbiz = "Lowes Business Card Webpage",
	mercedescard = "Mercedes-Benz Credit Card Webpage",
	morganstanley = "Morgan Stanley Credit Card Webpage",
	platinumbiz = "Amex Platinum Card Guide",
	platinumcard = "Amex Platinum Card Guide",
	platinummercedes = "Amex Platinum Card Guide",
	platinumameriprise = "Amex Platinum Card Guide",
	platinumschwab = "Amex Platinum Card Guide",
	platinummorgan = "Amex Platinum Card Guide",
	platinumsachs = "Amex Platinum Card Guide",
	premierrewards = "Amex Premier Rewards Card Guide",
	simplycashbiz = "Amex SimplyCash Business Card Guide",
	spgbiz = "SPG Credit Card Guide",
	spgcard = "SPG Credit Card Guide",
	aa = "American Airlines Credit Card Guide",
	aabiz = "American Airlines Credit Card Guide",
	aaexecutive = "American Airlines Executive Card Guide",
	aagold = "American Airlines Credit Card Guide",
	att = "AT&T Access Card Guide",
	costco = "Costco Credit Card Guide",
	costcobiz = "Costco Credit Card Guide",
	doublecash = "Citi Double Cash Guide",
	citipreferred = "Citi Preferred Guide",
	citipremier = "Citi Premier Guide",
	citiprestige = "Citi Prestige Guide",
	arrival = "Arrival Card",
	aviator = "Aviator Card Guide",
	aviatorbiz = "Aviator Card Guide",
	aviatorsilver = "Aviator Card Guide",
	choice = "Choice Credit Card Guide",
	frontier = "Frontier Credit Card Guide", 
	hawaiian = "Hawaiian Airlines Credit Card Guide",
	hawaiianbiz = "Hawaiian Airlines Credit Card Guide",
	jetbluebiz = "Jet Blue Credit Card Guide", 
	jetblue = "Jet Blue Credit Card Guide",
	lufthansa = "Miles & More Credit Card Guide",
	wyndham = "Wyndham Credit Card Guide",
	alaska = "Alaska Airlines Credit Card Guide",
	alaskabiz = "Alaska Airlines Credit Card Guide",
	allegiant = "Allegiant Credit Card Guide",
	amtrak = "Amtrak Credit Card Guide",
	asiana = "Asiana Credit Card Guide",
	asianabiz = "Asiana Credit Card Guide",
	boapremium = "BOA Premium Rewards Guide",
	boatravel = "BOA Travel Rewards Guide",
	boatravelbiz = "BOA Travel Rewards Guide",
	spirit = "Spirit Airlines Credit Card Guide",
	spiritbiz = "Spirit Airliness Credit Card Guide",
	virgin = "Virgin Atlantic Credit Card Guide",
	aeromexico = "Aeromexico Credit Card Guide",
	altitude = "Altitude Reserve Guide",
	businessedge = "Business Edge Guide",
	businessedgeselect = "Business Edge Select Guide",
	businessedgetravel = "Business Edge Travel Card Guide",
	carlsonbiz = "Club Carlson Credit Card Guide",
	carlson = "Club Carlson Credit Card Guide",
	carlsonreg = "Club Carlson Credit Card Guide",
	carlsonnaf = "Club Carlson Credit Card Guide",
	cashplus = "U.S. Bank Cash+ Guide",
	flexperksgold = "Flexperks Gold Card Guide",
	flexperksselect = "Flexperks Select Card Guide",
	flexperkstravel = "Flexperks Travel Card Guide",
	latam = "LATAM Credit Card Guide",
	skypass = "Korean Skypass Credit Card Guide",
	skypassbiz = "Korean Skypass Credit Card Guide", 
	usbankplat = "U.S. Bank Platinum Card Webpage",
	aaa = "AAA Credit Card Webpage",
	alliant = "Alliant Cashback Card Guide",
	avianca = "Avianca Credit Card Guide",
	aviancavida = "Avianca Credit Card Guide",
	bestwestern = "Best Western Credit Card Guide",
	ccucash = "Consumer Credit Union Credit Cards Webpage",
	cathay = "Cathay Pacific Credit Card Guide",
	crystalinfinite = "CNB Crystal Infinite Card Guide",
	dinersclub = "Diner's Club Card Guide",
	discover = "Discover it Card Guide",
	discovermiles = "Discover it Miles Card Guide",
	ducks = "Ducks Unlimited Credit Card Webpage",
	fidelity = "Fidelity Rewards Credit Card Webbpage",
	fnbobiz = "First National Bank Business Edition Guide",
	fortknox = "Fort Knox Platinum Card Webpage",
	huntingtonvoice = "Huntington Voice Credit Card Guide",
	jcbcard = "Marukai Premium JCB Card Guide",
	nra = "NRA Cromplete Rewards Card Webpage",
	nusenda = "Nusenda Reward Card Guide",
	paypal = "PayPal Cashback Card Guide",
	penfedplat = "Penfed Rewards Card Webpage",
	penfedtravel = "Penfed Rewards Card Webpage",
	propel = "Wells Fargo Credit Cards Webpage",
	samsclub = "Sam's Club Credit Card Webpage",
	savor = "Capital One Savor Card Webpage",
	sony = "Sony Credit Card Guide",
	synovus = "Synovus Travel Rewards Card Webpage",
	totalrewards = "Total Rewards Credit Card Webpage",
	uber = "Uber Credit Card Guide",
	ubsinfinite = "UBS Infinite Card Guide",
	usaa = "USAA Limitless Cashback Card Guide",
	vantage = "VantageWest Connect Credit Card Guide",
	venture = "Capital One Venture Card Webpage",
	ventureone = "VentureOne Card Webpage",
}

local l = {
	undefined = "Module:Card",
	aarp = "AARP Credit Card",
	amazon = "Amazon Visa Card",
	ba = "British Airways Credit Card",
	freedom = "Freedom Card",
	freedomunlimited = "Freedom Unlimited Card",
	hyatt = "Hyatt Credit Card",
	ihg = "IHG Credit Card",
	inkcash = "Ink Cash Card",
	inkpreferred = "Ink Preferred Card",
	marriott = "Marriott Credit Cards",
	marriottbiz = "Marriott Credit Cards",
	ritz = "Ritz Carlton Credit Card",
	sapphirepreferred = "Sapphire Credit Cards",
	sapphirereserve = "Sapphire Credit Cards",
	swaplus = "Southwest Credit Cards",
	swaplusbiz = "Southwest Credit Cards", 
	swapremier = "Southwest Credit Cards",
	swapremierbiz = "Southwest Credit Cards",
	united = "United Credit Cards",
	unitedbiz = "United Credit Cards",
	unitedclub = "United Credit Cards",
	unitedclubbiz = "United Credit Cards",
	bluebiz = "Business Blue Plus Card",
	bluecard = "//www.americanexpress.com/us/credit-cards/card/blue/",
	bluecash = "Blue Cash Credit Cards",
	bluecashnaf = "Blue Cash Credit Cards",
	deltablue = "Delta Credit Cards",
	deltagold = "Delta Credit Cards",
	deltagoldbiz = "Delta Credit Cards",
	deltaplatinum = "Delta Credit Cards",
	deltaplatinumbiz = "Delta Credit Cards",
	deltareserve = "Delta Credit Cards",
	delttareservebiz = "Delta Credit Cards",
	everydaypreferred = "Amex Everyday Credit Cards",
	everyday = "Amex Everyday Credit Cards",
	goldbiz = "Business Gold Rewards Card",
	greenbiz = "//www.americanexpress.com/us/small-business/credit-cards/business-green-rewards",
	greencard = "//www.americanexpress.com/us/credit-cards/card/green/",
	hiltoncard = "Hilton Credit Cards",
	hiltonsurpass = "Hilton Credit Cards",
	hiltonbiz = "Hilton Credit Cards",
	hiltonascend = "Hilton Credit Cards",
	hiltonaspire = "Hilton Credit Cards",
	lowesbiz = "//creditcard.americanexpress.com/lowes",
	mercedescard = "//www.americanexpress.com/us/credit-cards/card/mercedes-benz/",
	morganstanley = "//www.americanexpress.com/us/content/cardmember-agreements/morgan-stanley-credit-card.html",
	platinumbiz = "Amex Platinum Cards",
	platinumcard = "Amex Platinum Cards",
	platinummercedes = "Amex Platinum Cards",
	platinumameriprise = "Amex Platinum Cards",
	platinumschwab = "Amex Platinum Cards",
	platinummorgan = "Amex Platinum Cards",
	platinumsachs = "Amex Platinum Cards",
	premierrewards = "Amex Premier Rewards Card",
	simplycashbiz = "Amex SimplyCash Business Card",
	spgbiz = "SPG Credit Cards",
	spgcard = "SPG Credit Cards",
	aa = "American Airlines Credit Cards",
	aabiz = "American Airlines Credit Cards",
	aaexecutive = "American Airlines Executive Card",
	aagold = "American Airlines Credit Cards",
	att = "AT&T Access Cards",
	costco = "Costco Credit Cards",
	costcobiz = "Costco Credit Cards",
	doublecash = "Citi Double Cash Card",
	citipreferred = "Citi Prestige and Premier Cards",
	citipremier = "Citi Prestige and Premier Cards",
	citiprestige = "Citi Prestige and Premier Cards",
	arrival = "Arrival Card",
	aviator = "American Airlines Credit Cards",
	aviatorbiz = "American Airlines Credit Cards",
	aviatorsilver = "American Airlines Credit Cards",
	choice = "Choice Credit Card",
	frontier = "Frontier Credit Card", 
	hawaiian = "Hawaiian Airlines Credit Cards",
	hawaiianbiz = "Hawaiian Airlines Credit Cards",
	jetbluebiz = "Jet Blue Credit Cards", 
	jetblue = "Jet Blue Credit Cards",
	lufthansa = "Miles & More Credit Card",
	wyndham = "Wyndham Credit Cards",
	alaska = "Alaska Airlines Credit Cards",
	alaskabiz = "Alaska Airlines Credit Cards",
	allegiant = "Allegiant Credit Card",
	amtrak = "Amtrak Credit Cards",
	asiana = "Asiana Credit Cards",
	asianabiz = "Asiana Credit Cards",
	boapremium = "Bank of America Travel and Premium Rewards Cards",
	boatravel = "Bank of America Travel and Premium Rewards Cards",
	boatravelbiz = "Bank of America Travel Rewards Cards",
	boacash = "//www.bankofamerica.com/credit-cards/products/cash-back-credit-card/",
	spirit = "Spirit Airlines Credit Cards",
	spiritbiz = "Spirit Airlines Credit Cards",
	virgin = "Virgin Atlantic Credit Cards",
	aeromexico = "Aeromexico Credit Cards",
	altitude = "Altitude Reserve Card",
	businessedge = "Business Edge Card",
	businessedgeselect = "Business Edge Select Card",
	businessedgetravel = "Business Edge Travel Card",
	carlsonbiz = "Club Carlson Credit Cards",
	carlson = "Club Carlson Credit Cards",
	carlsonreg = "Club Carlson Credit Cards",
	carlsonnaf = "Club Carlson Credit Cards",
	cashplus = "U.S. Bank Cash+ Card",
	flexperksgold = "Flexperks Gold Card",
	flexperksselect = "Flexperks Select Card",
	flexperkstravel = "Flexperks Travel Card",
	latam = "LATAM Credit Cards",
	skypass = "Skypass Credit Cards",
	skypassbiz = "Skypass Credit Cards", 
	usbankplat = "//mycard.usbank.com/credit/mycardusb/html/usbank_platinum_visa.html",
	aaa = "//wa.aaa.com/finance/credit-card",
	alliant = "Alliant Cashback Card",
	avianca = "Avianca Credit Cards",
	aviancavida = "Avianca Credit Cards",
	bestwestern = "Best Western Credit Cards",
	ccucash = "//www.myconsumers.org/credit-cards/visa-cards/visa-signature-cash-rebate-card",
	cathay = "Cathay Pacific Credit Card",
	crystalinfinite = "CNB Crystal Infinite Card",
	dinersclub = "Diner's Club Cards",
	discover = "Discover it Card",
	discovermiles = "Discover it Miles Card",
	ducks = "//www.firstbankcard.com/ducksunlimited/landingpage/visaplat/?sub=000",
	fidelity = "//www.fidelity.com/cash-management/visa-signature-card",
	fnbobiz = "First National Bank Business Edition Cards",
	fortknox = "//www.fortknoxfcu.org/visa.html",
	huntingtonvoice = "//www.huntington.com/Personal/voice-credit-card/credit-card-rewards",
	jcbcard = "Marukai Premium JCB Card",
	nra = "//www.firstbankcard.com/nra/site/customer_manage/personal.fhtml",
	nusenda = "Nusenda Reward Cards",
	paypal = "PayPal Cashback Card",
	penfedplat = "//www.penfed.org/credit-cards/platinum-rewards-visa-signature",
	penfedtravel = "//www.penfed.org/credit-cards/travel-rewards-american-express",
	propel = "//creditcards.wf.com/propel-card",
	samsclub = "//www.samsclub.com/sams/pagedetails/content.jsp?pageName=credit",
	savor = "//www.capitalone.com/credit-cards/savor-dining-rewards/",
	sony = "Sony Credit Card",
	synovus = "//www.synovus.com/personal/charge/credit-cards/",
	totalrewards = "//d.comenity.net/totalrewardsvisa/pub/Home.xhtml",
	uber = "Uber Credit Card",
	ubsinfinite = "UBS Infinite Card",
	usaa = "//www.usaa.com/inet/wc/bank_cc_limitless_cashback_visa_signature?akredirect=true",
	vantage = "VantageWest Connect Credit Card",
	venture = "//www.capitalone.com/credit-cards/venture/",
	ventureone = "//www.capitalone.com/credit-cards/ventureone/"
}

local textpos = "none"
local card = "undefined"
local width = "3in"
local text = ""

function p.output(frame)
	if frame.args[1] ~= nil then
		card = string.lower(frame.args[1])
	end
	if frame.args[2] ~= nil then
		textpos = string.lower(frame.args[2])
	end
	if frame.args[3] ~= nil then
		width = string.lower(frame.args[3])
	end
	local link = l[card]
	if link ~= nil then
		if textpos ~= "only" and textpos ~= "short" then
			text = text .. "<div style='max-width:" .. width.."; margin: auto;'>\n"
		end 
		if textpos == "above" then
			if string.sub(link,1,2) == "//" then
				text = text .. "'''[" .. link .. " " .. n[card] .. "]'''"
			else 
				text = text .. "'''[[" .. link .. "|" .. n[card] .. "]]'''"
			end 
		end
		if textpos == "only" then
			if string.sub(link,1,2) == "//" then
				text = text .. "[" .. link .. " " .. n[card] .. "]"
			else 
				text = text .. "[[" .. link .. "|" .. n[card] .. "]]"
			end 
		end
		if textpos == "short" then
			if string.sub(link,1,2) == "//" then
				text = text .. "[" .. link .. " " .. s[card] .. "]"
			else 
				text = text .. "[[" .. link .. "|" .. s[card] .. "]]"
			end 
		end
		if textpos == "above" then
			text = text .. "\n\n"
		end
		if textpos ~= "only" and textpos ~= "short" then 
			text = text .. "[[image:" .. i[card]  
			text = text .. "|class=img-responsive gridimg|link=" .. link .. "]]\n"
		end
		if textpos == "below" then
			text = text .. "<div class = \"namebelow\">"
			if string.sub(link,1,2) == "//" then
				text = text .. "[" .. link .. " " .. n[card] .. "]</div>\n"
			else
				text = text .. "[[" .. link .. "|" .. n[card] .. "]]</div>\n"
			end
		end 
		if textpos == "guide" then
			text = text .. "<div class = \"guidename\">"
			if string.sub(link,1,2) == "//" then
				text = text .. "[" .. link .. " " .. g[card] .. "]</div>\n"
			else
				text = text .. "[[" .. link .. "|" .. g[card] .. "]]</div>\n"
			end
		end
	end 
	if textpos ~= "only" and textpos ~= "short" then
		text = text .. "</div>"
	end
	return text
end

return p