https://bugzilla.wikimedia.org/show_bug.cgi?id=48663

       Web browser: ---
            Bug ID: 48663
           Summary: Parsoid: DOM for template objects should expose
                    template name
           Product: Parsoid
           Version: unspecified
          Hardware: All
                OS: All
            Status: NEW
          Severity: normal
          Priority: Unprioritized
         Component: General
          Assignee: [email protected]
          Reporter: [email protected]
                CC: [email protected]
    Classification: Unclassified
   Mobile Platform: ---

{{foo}} -> Template:Foo
{{:foo}} -> foo
{{:user:Foo}} -> User:Krinkle
{{Template:foo}} -> Template:Foo
etc.

VisualEditor needs the name of the page that ends up being transcluded by the
template invocation.

From conversation with Gabriel I gather that currently the entire tranclusion
system (at least in production) is deferred to the PHP parser (including the
invocation itself). Which means Parsoid is unable to determine it itself right
now.

Gabriel suggested Parsoid will provide the name the best it can for simple
cases that don't dynamically construct the page name (e.g. not something like:
 {{ {{getTemplateName|x=foo}} | bar }}
).

-- 
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
Wikibugs-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l

Reply via email to