Last modified: 2014-04-19 13:53:17 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T52172, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 50172 - VisualEditor: {{NAMESPACE}} not running in context so doesn't know what namespace you're in
VisualEditor: {{NAMESPACE}} not running in context so doesn't know what names...
Status: RESOLVED FIXED
Product: VisualEditor
Classification: Unclassified
MediaWiki integration (Other open bugs)
unspecified
All All
: Normal minor
: VE-deploy-2014-04-24
Assigned To: Alex Monk
:
: 50582 (view as bug list)
Depends on:
Blocks: ve-draftns
  Show dependency treegraph
 
Reported: 2013-06-25 12:42 UTC by Oliver Keyes
Modified: 2014-04-19 13:53 UTC (History)
9 users (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description Oliver Keyes 2013-06-25 12:42:01 UTC
See https://en.wikipedia.org/wiki/Template:Userspace draft - when rendered in the VE it displays the mainspace appropriate text regardless of what namespace it is in.
Comment 1 James Forrester 2013-06-25 15:07:24 UTC
By the time we get the template, the evaluation of the parser functions - in this case, {{NAMESPACE}} - has already been done (by Parsoid). In general, I believe that most parser functions are just "return true" at this point, and will be coming in future.
Comment 2 Gabriel Wicke 2013-06-25 16:14:29 UTC
We pass in the title to the PHP preprocessor, so namespace-dependent parserfunctions should work as expected. Are you talking about Parsoid rendering or the VE's preview rendering after inserting a new template?
Comment 3 Gabriel Wicke 2013-07-02 01:24:57 UTC
I'm guessing this is actually about newly inserted {{NAMESPACE}} calls:

http://www.mediawiki.org/wiki/User:GWicke/TestNamespace?veaction=edit

Reassigning to VE.
Comment 4 James Forrester 2013-07-02 20:13:52 UTC
This was originally about the Parsoid issue, which is now fixed, but re-purposing to be about the DM re-render to PHP parser issue.
Comment 5 James Forrester 2013-07-02 20:14:16 UTC
*** Bug 50582 has been marked as a duplicate of this bug. ***
Comment 6 John Mark Vandenberg 2013-10-07 01:29:29 UTC
Is this fixed?

When I look at this page which uses [[template:userspace draft]]:

https://en.wikipedia.org/wiki/User:JohnArmagh/Heads_of_Government_of_the_State_of_Victoria,_Australia?veaction=edit

The appropriate message is shown.

However part of that box should render as
"This draft was last edited 13 months ago"
but in VE is renders as
This draft was last edited 1 second's time"

which means {{REVISIONTIMESTAMP}} isnt expanding correctly as, based on the future tense, it is giving a value that is CURRENTTIME+1..?
Comment 7 Alex Monk 2014-04-19 13:53:17 UTC
I think this was resolved in Gerrit change #127388

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links