Page MenuHomePhabricator

Flow: magic words (e.g., {{PAGENAME}}) don't work in board header and posts
Closed, ResolvedPublic

Description

For example, {{FULLPAGENAME}} on an occupied talk page displays just Flow on ee-flow (and Special:Flow on my local wiki). I put a sampling of them in http://ee-flow.wmflabs.org/wiki/User_talk:Spage

This is a problem if you want to use templates in the summary to say things like "Previous contents of this talk page have been moved to [[{{FULLPAGENAME}}/Archive|archive]]"

Also referring to a User_talk subpage with /Archive doesn't work, even though during editing VE thinks the page is there.


Version: master
Severity: normal
URL: http://ee-flow.wmflabs.org/wiki/User_talk:Spage
See Also:
https://bugzilla.wikimedia.org/show_bug.cgi?id=56820

Details

Reference
bz54892

Event Timeline

bzimport raised the priority of this task from to Medium.Nov 22 2014, 2:35 AM
bzimport set Reference to bz54892.
bzimport added a subscriber: Unknown Object (MLST).

Prioritization and scheduling of this bug is tracked on Mingle card https://mingle.corp.wikimedia.org/projects/flow/cards/278

Now on http://ee-flow.wmflabs.org/wiki/User_talk:Spage with latest Parsoid, {{NAMESPACE}}} displays blank and {{FULLPAGENAME}} displays "Main Page" i.e. the default page if no page is specified.

And if I edit my Flow board header containing this text, it displays badly garbled magic word contents:

  • FULLPAGENAME={{urrently [[S}}
  • PAGENAME={{unning]]}}
  • BASEPAGENAME={{ ([[mw:Exten}}
  • SUBPAGENAME={{out user-to}}
  • TALKPAGENAME={{on the [[San}}
  • NAMESPACE={{your talk}}

which may be a different bug with roundtripping HTML in Flow or Parsoid.

The WMF core features team tracks this bug on Mingle card https://mingle.corp.wikimedia.org/projects/flow/cards/448, but people from the community are welcome to contribute here and in Gerrit.

The WMF core features team tracks this bug on Mingle card https://mingle.corp.wikimedia.org/projects/flow/cards/459, but people from the community are welcome to contribute here and in Gerrit.

http://ee-flow.wmflabs.org/w/index.php?title=Talk:Sandbox&workflow=0509a3f95a7b34dffb6efa163e68c4ac&action=view#flow-post-0509a3f95a9334dffb6efa163e68c4ac

This makes Flow pretty difficult to use. I was trying to test Flow's support of magic words.

Input: "{{PAGENAME}} sucks."

Output: "Main Page sucks." (wrong: I was at "Talk:Sandbox", so it should be "Sandbox sucks.", I believe)

When I try to edit the post, I see this, worryingly: "{{is is a }} sucks."

This is not what I input.

The WMF core features team tracks this bug on Mingle card https://mingle.corp.wikimedia.org/projects/flow/cards/466, but people from the community are welcome to contribute here and in Gerrit.

(In reply to comment #2)\

And if I edit my Flow board header containing this text, it displays badly
garbled magic word contents:
...
which may be a different bug with roundtripping HTML in Flow or Parsoid.

it was a different Parsoid bug 56820, and is fixed.

Regarding comment #4 and comment #7 , the Mingle import script would create a new Mingle card whenever the bug title changes. I believe I fixed that.