Module:TppIconSet

local p={}

p.icon={ name={ wood={'Icon_Wormwood_TPP.png', 'Wormwood'}, carrot={'Icon_BlackCarrot_TPP.png', 'Black Carrot'}, crest={'Icon_GoldenCrescent_TPP.png', 'Golden Crescent'}, tar={'Icon_Tarragon_TPP.png', 'Tarragon'}, peach={'Icon_AfricanPeach_TPP.png', 'African Peach'}, digiP={'Icon_DigitalisPurpurea_TPP.png', 'Digitalis Purpurea'}, digiL={'Icon_DigitalisLutea_TPP.png', 'Digitalis Lutea'}, haoma={'Icon_Haoma_TPP.png', 'Haoma'}, pFR={'Icon_ProFuel_TPP.png', 'Fuel Resources'}, pBM={'Icon_ProBioMat_TPP.png', 'Biological Material'}, pCM={'Icon_ProCommonMetal_TPP.png', 'Common Metal'}, pMM={'Icon_ProMinorMetal_TPP.png', 'Minor Metal'}, pPM={'Icon_ProPeciousMetal_TPP.png', 'Precious Metal'}, uFR={'Icon_UnFuelResources_TPP.png', 'Unprocessed Fuel Resources'}, uBM={'Icon_UnBiologicalMaterial_TPP.png', 'Unprocessed Biological Material'}, uCM={'Icon_UnCommonMetal_TPP.png', 'Unprocessed Common Metal'}, uMM={'Icon_UnMinorMetal_TPP.png', 'Unprocessed Minor Metal'}, uPM={'Icon_UnPreciousMetal.png', 'Unprocessed Precious Metal'}, pMist={'Icon_ParasiteMist_TPP.png', 'Parasite Mist'}, pCamo={'Icon_ParasiteCamouflage_TPP.png', 'Parasite Camouflage'}, pArmor={'Icon_ParasiteArmor_TPP.png', 'Parasite Armor'}, combat={'Icon_TeamCombat_TPP.png', 'Combat Unit'}, security={'Icon_TeamSecurity_TPP.png', 'Security Team'}, research={'Icon_TeamRD_TPP.png', 'R&D Team'}, baseDev={'Icon_TeamBaseDevelopment_TPP.png', 'Base Development Unit'}, support={'Icon_TeamSupport_TPP.png', 'Support Unit'}, intel={'Icon_TeamIntel_TPP.png', 'Intel Team'}, medical={'Icon_TeamMedical_TPP.png', 'Medical Team'}, wait={'Icon_TeamWaitingRoom_TPP.png', 'Waiting Room'}, sick={'Icon_TeamSickbay_TPP.png', 'Sickbay'}, brig={'Icon_TeamBrig_TPP.png', 'Brig'}, mDS={'Icon_MedalDistinguished.png', 'Distinguished Service Medal'}, mSC={'Icon_MedalCross_TPP.png', 'Service Cross'}, moH={'Icon_MedalHonor_TPP.png', 'Medal of Honor'}, dC={'Icon_MiscDirectContract_TPP.png', 'Direct Contract'}, skillSupport={'Icon_TeamSkillsetSupport_TPP.png', 'A Support Unit skill'}, skillSecurity={'Icon_TeamSkillsetSecurity_TPP.png','A Security Team skill (unused)'}, skillResearch={'Icon_TeamSkillsetR&D.png', 'A R&D Team skill'}, skillQuestion={'Icon_TeamSkillsetQuestion_TPP.png','An unknown skill'}, skillAny={'Icon_TeamSkillsetNonspecific_TPP.png', 'A skill that applies while assigned to any team'}, skillMedical={'Icon_TeamSkillsetMedical_TPP.png', 'A Medical Team skill'}, skillIntel={'Icon_TeamSkillsetIntel_TPP.png', 'An Intel Team skill (unused)'}, skillLanguage={'Icon_TeamSkillsetBubble_TPP.png', 'A language skill (unused)'}, skillBaseDev={'Icon_TeamSkillsetBD_TPP.png', 'A Base Development Unit skill (unused)'}, skillCombat={'Icon_TeamSkillsetCombat_TPP.png', 'A Combat Unit skill (applies only when playing as)'}, skillNone={'Icon_TeamSkillsetNone_TPP.png', 'A skill-less soldier'}, lang0={'Icon_Lang0_TPP.png', 'Blank language skill icon (unused)'}, lang1={'Icon_Lang1_TPP.png', 'Poor skill in language'}, lang2={'Icon_Lang2_TPP.png', 'Moderate skill in language'}, lang3={'Icon_Lang3_TPP.png', 'Strong (usually native) skill in language'} },	size={ xs='15px', s='25px', sm='35px', m='45px', ml='55px', l='65px', xl='75px' } }

function p.main(name, noHover, size) if not name then return 'MODULE INVOKE ERROR: no argument given to p.main' end

local pairs=pairs local table_cat=table.concat local pipe='|' local string={''}

for k,v in pairs(p.icon.name) do		if name==k then string[2]=p.icon.name[k][1] if noHover then string[3]='' else string[4]=p.icon.name[k][2] end end end if size then for k,v in pairs(p.icon.size) do			if size==k then string[6]=v end end else string[6]='25px' end return table_cat(string) end return p