Extension:Poem

The Poem Extension allows for easy inclusion of poems and similar material in MediaWiki pages, by simply putting them between tags, instead of adding   to the end or : to the beginning of every line, which is common practice now. Though small, it might be useful, especially on Wikisource or similar projects (there are poems with thousands of lines, so obviously current solution isn't practical). The extension preserves wikilinks, bolding, etc. if they are present in the poem, as well as indenting lines which start with spaces.

I (Nikola Smolenski) made it in order to practice working on extensions, after an idea by Yann Forget.

It was activated on Wikisource and http://test.wikipedia.org/ on 2006-06-23, and on the rest of the project sites on 2007-02-07.

Style
The poem text is wrapped in a div, which has no style by default; but inherits any style or class option passed to the poem.

For example, while indented text can be used for simple examples to prevent filling and draw a nice blue box, it can be hard to read in some cases, since long lines aren't broken. A similar, but somewhat better effect can be obtained with 

Source
http://svn.wikimedia.org/viewvc/mediawiki/trunk/extensions/Poem/