https://bugzilla.wikimedia.org/show_bug.cgi?id=57997
Web browser: ---
Bug ID: 57997
Summary: Improperly round trips template tags when providing
wikitext for a page directly
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: ---
$ curl -d 'wt={{FULLPAGENAME}} {{PAGENAME}}'
http://parsoid-lb.eqiad.wikimedia.org/enwiki/Main_Page > /tmp/parsoid.wt
$ curl -d "html=$(cat /tmp/parsoid.wt)"
http://parsoid-lb.eqiad.wikimedia.org/enwiki/Main_Page && echo
{{-- BA}} {{ACROSS T}}
$ cat /tmp/parsoid.wt
<!DOCTYPE html>
<html prefix="dc: http://purl.org/dc/terms/ mw: http://mediawiki.org/rdf/"
about="http://en.wikipedia.org/wiki/Special:Redirect/revision/574690625"><head
prefix="mwr: http://en.wikipedia.org/wiki/Special:Redirect/"><meta
property="mw:articleNamespace" content="0"/><link rel="dc:replaces"
resource="mwr:revision/574690493"/><meta property="dc:modified"
content="2013-09-27T03:10:17.000Z"/><meta about="mwr:user/153365"
property="dc:title" content="Tariqabjotu"/><link rel="dc:contributor"
resource="mwr:user/153365"/><meta property="mw:revisionSHA1"
content="e0564e710b93f998658bd5527f0042eaba6d6c87"/><meta
property="dc:description" content="removing unnecessary pipe"/><meta
property="mw:parsoidVersion" content="0"/><link rel="dc:isVersionOf"
href="//en.wikipedia.org/wiki/Main_Page"/><title>Main Page</title><base
href="//en.wikipedia.org/wiki/Main_Page"/></head><body
data-parsoid='{"dsr":[0,6391,0,0]}'><p
data-parsoid='{"dsr":[0,6391,0,0]}'><span about="#mwt1"
typeof="mw:Transclusion" data-mw='{"parts":[{"template":{"target":{"wt":"--
BA","function":"fullpagename"},"params":{},"i":0}}]}'
data-parsoid='{"dsr":[0,16,null,null],"pi":[[]]}'>Main Page</span> <span
about="#mwt2" typeof="mw:Transclusion"
data-mw='{"parts":[{"template":{"target":{"wt":"ACROSS
T","function":"pagename"},"params":{},"i":0}}]}'
data-parsoid='{"dsr":[17,29,null,null],"pi":[[]]}'>Main
Page</span></p></body></html>
--
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