What a temple is
Temple is the broadest word. In English it means any building dedicated to worship, but it is used mostly for religions other than Christianity, Islam and Judaism, whose buildings are churches, mosques and synagogues. Hindu, Buddhist, Jain, Taoist and ancient Greek and Egyptian places of worship are all temples. In Japan the word is narrower: a temple, tera or ji, is Buddhist, as at Kiyomizu-dera and Kinkaku-ji, and is kept distinct from a Shinto shrine. In Vietnam a Buddhist temple is a pagoda, chua, while a den honours a hero or a spirit, as at Ngoc Son and Bach Ma in Hanoi.
What a shrine is
A shrine is a place that holds something sacred, whether a relic, an image, a tomb or the presence of a spirit, and it can be any size. In Japan shrine is the standard translation for a Shinto jinja, jingu or taisha, such as Meiji Jingu, Fushimi Inari Taisha and Izumo Taisha, all marked by the torii gate. Elsewhere the word points to something smaller or more specific: the Erawan Shrine in Bangkok is a single Hindu image on a street corner, and the Dome of the Rock in Jerusalem is a shrine built over a sacred rock rather than a mosque for congregational prayer.
Pagoda and stupa
A stupa is the oldest Buddhist monument: a solid mound or dome built over relics, which you walk around but do not enter, such as Boudhanath and Swayambhunath in Kathmandu, or the vast terraced mandala of Borobudur. In Thailand it is called a chedi and in Sri Lanka a dagoba. As Buddhism travelled to China, Korea and Japan, the stupa grew into the pagoda, a tower of several storeys, usually with an odd number of roofs, such as the Giant Wild Goose Pagoda in Xi'an or the Yasaka Pagoda in Kyoto. Most pagodas belong to a temple, and few can be climbed.
Pagoda is also used loosely. In Vietnam it names a whole Buddhist temple, so Tran Quoc, Thien Mu and Bai Dinh are temple complexes with towers, and the Silver Pagoda in Phnom Penh is a temple hall floored with silver tiles. In Myanmar the word usually means a stupa.
Wat, mandir and local words
Many famous names simply use the local word for temple. A wat, in Thailand, Laos and Cambodia, is a whole monastery-temple complex with an ordination hall, assembly halls, chedis and monks' quarters, as at Wat Pho or Wat Phra That Doi Suthep. A mandir is a Hindu temple in North India and Nepal, as at Birla Mandir or Janaki Mandir, while in Bali a temple is a pura, an open-air compound of courtyards and shrines such as Pura Besakih. A gompa is a Tibetan monastery, a gurdwara a Sikh temple, a masjid or cami a mosque, and a candi an ancient temple in Java.
Monasteries and gompas
A monastery is where a religious community lives, and it may or may not contain a temple open to visitors. Every Thai wat is technically a monastery, and so are Tibetan gompas such as Kyanjin Gompa in the Langtang valley and the great Zen complexes of Kyoto, where the abbot's quarters and sub-temples of Nanzen-ji, Myoshin-ji and Daitoku-ji open only in part. Where monks or nuns live, quiet matters more, and some areas are closed to visitors at all times.
Telling them apart
On the ground, the gate and the outline tell you most. A torii means a Shinto shrine; a roofed gate with guardian figures, a Buddhist temple. A solid dome or bell shape that pilgrims circle is a stupa, and a tiered tower is a pagoda. A curved tower over the sanctum, the shikhara of northern India, or the tall carved gopuram gateways of the south mark a Hindu temple, as at Khajuraho and Meenakshi Amman. Great incense burners and painted door gods point to a Chinese temple, while a split gate and a sarong at the entrance announce a Balinese pura.
What it changes for you
The word on the sign tells you what to expect at the door. A Shinto shrine asks for a bow and a rinse at the water basin but has no dress code; a Japanese Buddhist temple usually charges admission and asks for shoes off in its halls; a Thai wat requires shoulders and knees covered and shoes off before the image. A stupa is walked clockwise and never climbed unless a route is marked. A mandir may be closed to non-Hindus, and a Jain temple refuses leather. A ruined ancient temple needs a ticket and sun protection rather than a scarf, unless, like Angkor Wat, it is still in worship.