Module: Logo

From Travel Strategies
Jump to: navigation, search

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

local p = {}

local logo = {}
logo["staralliance"] = {
	"StarAllianceLogo.png", 
	"Understanding Airline Alliances"}
logo["skyteam"] = {
	"SkyTeamLogo.png", 
	"Understanding Airline Alliances"}
logo["oneworld"] = {
	"OneworldLogo.png", 
	"Understanding Airliine Alliances"}
logo["alaska"] = {
	"AlaskaLogo.png", 
	"Understanding Airline Alliances"}
logo["amex"] = {
	"AmexLogo.jpg", 
	"Amex Credit Cards"}
logo["mr"] = {
	"MRLogo2.jpg", 
	"Membership Rewards Guide"}
logo["chase"] = {
	"ChaseLogo.png", 
	"Chase Credit Cards"}
logo["ur"] = {
	"URLogo2.jpg", 
	"Ultimate Rewards Guide"}
logo["citi"] = {
	"CitiLogo.png", 
	"Citibank Credit Cards"}
logo["ty"] = {
	"TYLogo2.jpg", 
	"ThankYou Rewards Guide"}
logo["spg"] = {
	"BonvoyLogo.png", 
	"Using Marriott Points for Airline Tickets"}
logo["barclay"] = {
	"BarclayLogo.png", 
	"Barclay Credit Cards"}
logo["boa"] = {
	"BOALogo.png", 
	"Bank of America Credit Cards"}
logo["discover"] = {
	"DiscoverLogo.jpg", 
	"Discover Cards"}
logo["capitalone"] = {
	"CapitalOneLogo.png", 
	"Credit Cards by Bank"}
logo["dinersclub"] = {
	"DinersClubLogo.png", 
	"Diners Club Rewards Guide"}
logo["usbank"] = {
	"USBankLogo.png", 
	"U.S. Bank Credit Cards"}
logo["flexperks"] = {
	"FlexPerksLogo.png", 
	"U.S. Bank Credit Cards"}
logo["wellsfargo"] = {
	"WellsFargoLogo.gif", 
	"Credit Cards by Bank"}
logo["gofar"] = {
	"GoFarLogo.png",
	"Credit Cards by Bank"}
logo["alamo"] = {
	"AlamoLogo.jpg", 
	"Car Rental Loyalty Programs#Alamo Insiders"}
logo["avis"] = {
	"AvisLogo.png", 
	"Car Rental Loyalty Programs#Avis Preferred"}
logo["budget"] = {
	"BudgetLogo.png", 
	"Car Rental Loyalty Programs#Budget Fastbreak"}
logo["dollar"] = {
	"DollarLogo.jpg", 
	"Car Rental Loyalty Programs#Dollar Express"}
logo["enterprise"] = {
	"EnterpriseLogo.jpg", 
	"Car Rental Loyalty Programs#Enterprise Plus"}
logo["hertz"] = {
	"HertzLogo.jpg", 
	"Car Rental Loyalty Programs#Hertz Gold Circle"}
logo["national"] = {
	"NationalLogo.jpg", 
	"Car Rental Loyalty Programs#National Emerald Club"}
logo["sixt"] = {
	"SixtLogo.jpg", 
	"Car Rental Loyalty Programs#Sixt Elite Card"}
logo["thrifty"] = {
	"ThriftyLogo.jpg", 
	"Car Rental Loyalty Programs#Thrifty Blue Chip Rewards"}
logo["accor"] = {
	"AccorLogo.png", 
	"Guide to Le Club Accor"}
logo["bestwestern"] = {
	"BestWesternLogo.jpg", 
	"Guide to Best Western Rewards"}
logo["carlson"] = {
	"CarlsonLogo.png", 
	"Guide to the Radisson Rewards Program"}
logo["choice"] = {
	"ChoiceLogo.png", 
	"Guide to the Choice Privileges Program"}
logo["fairmont"] = {
	"FairmontLogo.png", 
	"Guide to Farimont Rewards"}
logo["hilton"] = {
	"HiltonLogo.jpg", 
	"Guide to the Hilton Honors Program"}
logo["hyatt"] = {
	"HyattLogo.jpg", 
	"Guide to the World of Hyatt"}
logo["ihg"] = {
	"IHGLogo.jpg", 
	"Guide to the IHG Rewards Club"}
logo["kimpton"] = {
	"KimptonLogo.png", 
	"Guide to the Kimpton Karma Program"}
logo["laquinta"] = {
	"LaQuinta.jpg", 
	"Guide to the La Quinta Returns Program"}
logo["marriott"] = {
	"BonvoyLogo.png", 
	"Guide to the Marriott Bonvoy Reward Program"}
logo["spg"] = {
	"SPGLogo.jpg", 
	"Guide to the Starwood Preferred Guest Program"}
logo["wyndham"] = {
	"WyndhamLogo.jpg", 
	"Guide to Wyndham Rewards"}

function p.output(frame)
	local brand = string.lower(frame.args[1])
	local width = string.lower(frame.args[2])
	local text = "<center>"
	text = text .. "[[image:" .. logo[brand][1]  
	text = text .. "|" .. width .. "|link=" .. logo[brand][2] .. "]]"
	text = text .. "</center>"
	return text
end

return p