How to write the format of ancient poetry?

There are seven-character poems, five-character poems and four-character poems in the format of writing ancient poems. Details are as follows:

1, seven-character verse. It is a genre of China's traditional poetry and belongs to the category of modern poetry. It originated from Shen Yue's new poems which focused on rhythm and duality during Qi Yongming's period in the Southern Dynasties. It was further developed and stereotyped by Shen Quanqi and Song in the early Tang Dynasty and matured by Du Fu in the prosperous Tang Dynasty.

2. Five-character verse. The whole article consists of eight sentences, each with five words. There are two basic forms of Qi Qi and Pingqi, and the two couplets in the middle must be couplets.

3. Four-character ancient poems. China's earliest poetic style was the Four-character Book of Songs, and then the "Chu Ci Style" represented by Qu Yuan's Lisao appeared.