In a celebrity-studded enclave of Los Angeles, a mansion asking $26.5 million comes with an amenity inspired by a galaxy far, far away: a roughly 5,000-square-foot Star Wars-theme basement.

The entertainment complex-cum-basement is configured as a museum, according to listing agents Arvin Haddad, Emil Hartoonian and Mauricio Umansky of The...