Jump to content

Topic on Extension talk:Poem/Archive 2

Poem combined with Proofread.Transclusion function

4
Nigmont (talkcontribs)

I wonder: can the Poem extension work properly when it is used in conjunction with the Transclusion function of the Proofread Extension? If saying more specifically: can this work when the opening tag <poem> and the closing tag </poem> are placed on different pages (e.g. closing tag is on the page next to the one where the opening tag resides) and the poetry lines flow between starting and ending page? I think currently this wouldn't work - am I right?

More detailed explanation of the issue case:

when I place such code on two neighboring proofread pages:

  • at the end of the first page - section named let us say "page_1_sec_2"
## page_1_sec_2 ##
<table align=center><tr><td><poem>First M lines
  • at the start of the second page - section named let us say "page_2_sec_1":
## page_2_sec_1 ##
Last N lines</poem></td></tr></table>
####

and I transclude the sections with a command like:

<pages index="The book.djvu" from=1 fromsection=page_1_sec_2 to=2 tosection=page_2_sec_1 />

then I got that only the first part (from "page_1_sec_2") of the poetry is displayed properly on the transclusion page, but the second part (last N lines) flows without linebreaks, and finally the closing tag </poem> is visually displayed - it seems like it is not treated as the closing tag.

I encountered this while working in the Multilingual Wikisource. Currently I found rude workaround, but without using the "poem" tag, and I was forced to insert <br/> tags as linebreaks.

Really: is there a way how to get these functions to work together? Or maybe some improvements may be introduced into the Mediawiki software to support this case too? --Nigmont (talk) 19:33, 6 March 2015 (UTC)

Billinghurst (talkcontribs)

The <poem> tag works fine in a transcluded page, though you you need to terminate it on the same page that it starts, and put a new tag on the next page. We do it all the time at English Wikisource. It simply needs to be open and closed often if you are looking to do more complex coding, and when using templates with it you need to use it with the magic tag {{#tag:...}}

There are numbers of limitations with poem and you just need to work within them.

Nigmont (talkcontribs)

Just now I have tried as you said (to put both opening and closing "poem" tags on each transcluded page), and it works well. Thank you very much, your reply is very helpful!

This post was hidden by 87.123.56.251 (history)
Reply to "Poem combined with Proofread.Transclusion function"