Page MenuHomePhabricator

Variables not working inside <poem> container
Closed, ResolvedPublic

Description

Author: bugs

Description:
Variables (i.e. {{{1|Hello!}}}) aren't working inside the <poem> ... </poem> container. Instead, the default value is always shown (it would always show "Hello!" and not what was defined, see the example URL).

It looks like it's supposed to work: http://www.mediawiki.org/wiki/Extension:Poem#Problems_and_solutions, but it isn't.


Version: unspecified
Severity: enhancement
URL: http://wikimediafoundation.org/wiki/%CE%95%CF%85%CE%B5%CF%81%CE%B3%CE%AD%CF%84%CE%B5%CF%82

Details

Reference
bz22363

Event Timeline

bzimport raised the priority of this task from to Medium.Nov 21 2014, 10:49 PM
bzimport set Reference to bz22363.

I think the docs are wrong. In order for {{{1|Hello}}} to be expanded (if i understand things right) $frame has to be included as an argument to recursiveTagParse, which it is not. Thus {{{1|hello}}} isn't expanded.

As a work around use:

{{#tag:poem|{{{1|hello!}}}}}

Fixed in r62010

(This is first bug I've ever 'Fixed' :D )