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.
Version: unspecified
Severity: minor
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.
Version: unspecified
Severity: minor
Status | Subtype | Assigned | Task | ||
---|---|---|---|---|---|
Open | Feature | None | T66539 Issues related to the Draft namespace (tracking) | ||
Resolved | None | T61885 VisualEditor: Work correctly in Draft namespace (tracking) | |||
Resolved | Krenair | T52172 VisualEditor: {{NAMESPACE}} not running in context so doesn't know what namespace you're in |
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.
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?
I'm guessing this is actually about newly inserted {{NAMESPACE}} calls:
http://www.mediawiki.org/wiki/User:GWicke/TestNamespace?veaction=edit
Reassigning to VE.
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.
Is this fixed?
When I look at this page which uses [[template:userspace draft]]:
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..?