Legend is a folklore. It's told by people and no guarantee whether it's true or false. Legend belongs to narrative text. It has social function to amuse readers. The following is an example of narrative text about legend.
The Legend of Pari Temple
A long time ago, there lived an old man in Pananggungan Mountain. His name was Kiai Gede Penanggungan. He had supernatural power. Kiai Gede Penanggungan had a beautiful daughter named Dewi Walangangin who hadn't married yet. Kiai Gede Penanggungan prayed days and nights for her daughter to have a husband. One day, a young handsome man came his place. The name of the man was Jaka Pandelengan. He wanted to be Kiai Penanggunngan's student. Kiai Gede agreed to have Jaka as his student with one condition that he would marry her daughter. Jaka Pandelengan and Dewi Walanganangin soon got married. Kiai Gede Penanggungan taught Jaka many things.
After several years, now it was time for the couple to live separately from Kiai Gede Penanggungan. They would move to another village. Kiai Gede Penanggungan gave some seeds of pari or paddy to couple. He asked the couple to plant the seeds. He also warned to the couple no to be arrogant when they want were rich from planting the seeds. Soon, the seeds grew a lot of rice. Now the couple became very rich. The poor neighbours came to the couple to ask for same pari seeds. But the couple refused to help them.
Kiai Gede heard to couple's and behaviour. Soon they visited the couple. He met them when the couple was working in the field. Kiai Gede talked to the couple. He reminded the couple not to be arrogant. But the couple ignored him. They said nothing to Kiai Gede. Kiai Gede got very angry. Then he said "You two are like temples. You cannot listen to me." Right after he said those words, in incredible thing happened. Slowly, Jaka and Dewi turned into temples. Because the temples stood among the pari, people in named them as Pari Temple.