Extension talk:Poem/Archive

Name of the extension
The extension doesn't actually have a great deal to do with poems. Shouldn't it be called.... I dont know... &lt;withnewlines&gt; or something? -- Harry Wood 11:21, 26 January 2007 (UTC)
 * In retrospect, something like nofill or such may have been clearer. But formatting poems was the first use of it, and it's somewhat entrenched now, so renaming it or creating an alias may make things more confusing. -Sanbeg 18:18, 2 February 2007 (UTC)

Just use ':'
Common practice seems to be the use of  at the beginning of every line in a poem or song. It's a lot simpler than installing an extension, and it's a lot easier to type (IMHO) than. – Minh Nguyễn (talk, contribs) 04:12, 8 March 2006 (UTC)


 * It indents the lines, which isn't always desirable. Nikola 06:23, 14 May 2006 (UTC)
 * This is obviously not true. It's much easier to use an extension than : at the begginning of every line. Thanks a lot to the developers for this long awaited feature. Yann 11:03, 24 June 2006 (UTC)

Problem with multiple transcluded poems
I wanted to use this for a project on a local wiki, but hit a problem. I wanted a page that transcluded a lot of other pages; each of these would contain a  section. But strangely, every poem except the last one appears as strings like "UNIQ29a12c162018b230-poem15b3442f6e2c665300000001". A demonstration of this effect is here. /skagedal... 22:01, 19 April 2006 (UTC)


 * The corrected version fixes this. (At least with 1.7; possibly with 1.6 also.) --brion 12:48, 8 May 2006 (UTC)

Great
I am using this extension and I found it great. It is exactly what I was looking for.

Thanks,

Luis

I made a minor change to this extension to allow my poets to indent lines. It may not generate perfectly clean HTML, but it works for our needs:

function PoemExtension($in) {       global $wgOut;

return $wgOut->parse(               preg_replace( array("/^\n/","/\n$/D","/\n/"), array("",    "",      " \n"), str_replace(' ','&amp;nbsp;',$in))       ); }

(note, the wiki code is not perfect, as it involves character entities. I chose to make it display properly in the wiki view.)

fix to nest with nowiki
Since there's no entry in bugzilla for this extension, I guess I'll just post this bug here. This extension produces very strange results when it contains a nested nowiki: it renders html line breaks!

I took a quick look, it seems tricky to deal with in 1.7, but 1.8 has some new hooks to fix this, so I put a patch @ User:Sanbeg/poem-nw.patch -Sanbeg 23:09, 3 October 2006 (UTC)


 * Updated patch & regression tests are at 7503. -Sanbeg 18:05, 28 November 2006 (UTC)

Not working in extra namespaces
I have installed this extension on my own mediawiki site and am attempting to use it on a talk page in a custom namespace. The result is this text: UNIQ5d6e41292e61d388-poem-00000000-QINU This is similar to a previous problem, but I grabbed the latest version from SVN before posting this. The example (seen here) isn't very useful, but if you check the history, you can see a piece of what I typed. --Aquatiki 10:31, 5 May 2008 (UTC)