Extension talk:Poem

From MediaWiki.org
Jump to: navigation, search

The =-sign within a text that's part of a poem embedded in a template.

Willeeuwis (talk) 07:14, 11 May 2012 (UTC)

I have a simple template:

<div style="padding-left:20px; border-left:1px solid black">
<poem>
{{{1}}}
</poem>
</div>

When I write:

<poem>
1 + 1 = 2
</poem>

This results, as expected, in:

1 + 1 = 2

When write:

{{quote|1 + 1 = 2}}

This results in (with the lay out as decalred by the div style):

{{{1}}}

Writing:

{{quote|1 + 1 <nowiki>=</nowiki> 2}}

solves the problem, but why the difference. Is it the template that does this? Can this be "undone"?

Willeeuwis (talk)07:14, 11 May 2012

In general, the behavior of an extension tag as poem or ref included into a template is umpredictable (I suppose, from exoteric priorities into parsing). Often the issue is solved using #tag syntax instead of the extension tag. I.e. this solves the unpleasant issue of "a ref inside of a ref [1]".

Explore the #tag syntax if you did never do before! Alex brollo (talk)

first level references
  1. This is a first-level ref[a 1]
second level references
  1. and this is a second-level ref [b 1]:-)
third level references
  1. and this is a third-level ref :-)
Alex brollo (talk)20:07, 25 May 2012
 

This is because when you write {{quote|1 + 1 = 2}} the parser thinks you wish to invoke {{quote}} with a single parameter named "1 + 1". If you have a named parameter, it does not get assigned a number: that's only for anonymous parameters. So {{{1}}} does not have a value, and you have not used a pipe to indicate a default value, so you get the raw parameter showing up as above.

Phil | Talk17:38, 1 July 2014
 

Pointer to discussion about "lines"

Regarding <lines> as an alternate names. There was a comment at http://lists.wikimedia.org/pipermail/wikitech-l/2014-February/074337.html which pointed to https://bugzilla.wikimedia.org/show_bug.cgi?id=52061 and https://gerrit.wikimedia.org/r/#/c/106861/

Just noting for future reference.

Quiddity (talk)18:41, 30 June 2014

How to number verses?

Do you have any solution on numbering verses with this extension? like

Spento il diurno raggio in occidente,
E queto il fumo delle ville, e queta
De' cani era la voce e della gente;
Quand'ella, volta all'amorosa meta,
Si ritrovò nel mezzo ad una landa.................5
Quanto foss'altra mai vezzosa e lieta.
Spandeva il suo chiaror per ogni banda
La sorella del sole, e fea d'argento
Gli arbori ch'a quel loco eran ghirlanda.
I ramoscelli ivan cantando al vento,............10
E in un con l'usignol che sempre piagne
Fra i tronchi un rivo fea dolce lamento.
Limpido il mar da lungi, e le campagne
E le foreste, e tutte ad una ad una
Le cime si scoprian delle montagne.............15
In queta ombra giacea la valle bruna,
E i collicelli intorno rivestia
Del suo candor la rugiadosa luna.

Thanks

Emilio Speciale (talk)18:55, 15 September 2013

I suppose you already know that Wikisources have their own tricks for this? They use templates for the number and a CSS class for the dots. I'm afraid the extension doesn't help with this, or if it does nobody discovered it yet!

Nemo07:01, 18 September 2013

Thank you for your answer. I hope someone has some suggestions. Have a nice day.

Emilio Speciale (talk)12:13, 7 November 2013
 
 

Class 'Html' not found in extensions/Poem/Poem.class.php on line 56

Any time I try to add the poem tag, the page crashes and I get the message " Class 'Html' not found in /var/lib/mediawiki/extensions/Poem/Poem.class.php on line 56" in the apache error.log.

168.91.255.10015:35, 13 March 2013

In which wikisource are you working? Can you give me the name of a page where such error pops out? And please - have you an user name somewhere?

Alex brollo (talk)20:16, 14 April 2013