It can be an independent act or foreplay to intercourse. Lingam is the Sanskrit word for penis and loosely translates to "wand of light.