How to write the format of ancient poems?

there are seven-character poems, five-character poems and four-character poems in the format of writing ancient poems. The details are as follows:

1. Seven-character rhyme. It is a genre of China's traditional poetry, which belongs to the category of modern poetry. It originated from Shen Yue's new-style poetry which paid attention to temperament and duality in Qi Yongming's time in the Southern Dynasty, and further developed and stereotyped in Shen Quanqi and Song Zhiwen in the early Tang Dynasty, and matured in Du Fu's hands in the prosperous Tang Dynasty.

2. Five-character rhyme. There are eight sentences in the whole article, each with five words, and there are two basic forms: qi qi and ping qi, and the two couplets in the middle must be antithetical.

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.