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)

Using poem in a template
Hi

I'm trying to create my own template that works something like this:

some text

some more text

From my understanding of the extension page, this should work, but it only prints out instead of the text I supply as the parameter.

Replaced by core functionality...how?
This page says that the poem formatting is present without the need for an extension--in an unreleased future version. For the time being, the "obsolete" notice should be removed, because it made downloading it a 20 minute exercise in frustration, since I assumed the latest version was, in fact, 1.14...when it's actually 1.13.

How does one use it? I've spent ten minutes searching, and the closest thing in the user help is the preformatted text option, which is NOT a replacement for poem formatting (which I would like to use on my wiki, which is predominantly recipes--I don't want to insert ANY character at the beginning of each line, whether it's a space, a colon, or an asterisk. What is the tag for that? -- 24.130.217.24 10:03, 12 November 2008 (UTC)

&lt;poem> appears to break template expansion
I ran across this in wikipedia, which has the poem extension installed, and also has a bunch of templates.

In wikipedia, the wikitext: appears to break the expansion of the Citation template. The template expands as expected with the ... wrapper removed. -- Boracay Bill 06:32, 5 June 2009 (UTC)

Fighting with poem
Compact option seems to work with two lines, but not with more than two. :-(

See here. This runs:

This doesn't: and I can't guess how to solve this issue. :-( --Alex brollo 20:41, 20 August 2009 (UTC)

Clash with &lt;noinclude>
When transcluding multiple pages with &lt;poem> wrappers, one may wish to &lt;noinclude> the head and/or end tags of &lt;poem> to allow for the original poem tag to set the formatting, however, &lt;poem> misbehaves with &lt;noinclude> and basically stops working as expected. I have insufficient knowledge of how it works to be able express a possible solution. — billinghurst  sDrewth  08:31, 6 May 2010 (UTC)

Enhancements
It would be nice if this extension supported auto-numbering of stanzas (i.e. paragraphs) and side-by-side translations. Crissov 16:03, 17 May 2010 (UTC)