Page MenuHomePhabricator

Output differences in dates on a jawiki page - possible argument parsing diffs in citation templates in <ref> tags
Closed, ResolvedPublic

Description

Wonder if this is template argument parsing issue and maybe whitespace matching somewhere?

#####################################
FILE: /tmp/htmldiffs/ja.wikipedia.org/%E3%83%95%E3%83%A9%E3%83%B3%E3%83%81%E3%82%A7%E3%82%B9%E3%82%B3%E3%83%BB%E3%83%88%E3%83%83%E3%83%86%E3%82%A3
----- JS:[801329, 801400] -----
<span title="29 January 2015" data-parsoid='{"stx":"html"}'>2015年1月29日

+++++ PHP:[801329, 801405] +++++
<span title="29 January 2015" data-parsoid='{"stx":"html"}'>29 January 2015

----- JS:[803727, 803747] -----
</span>(1996年6月1日).

+++++ PHP:[803732, 803754] +++++
</span>(1 June 1996).

----- JS:[804562, 804588] -----
</a>の2016年2月2日時点によるアーカイブ。

+++++ PHP:[804569, 804601] +++++
</a>の2 February 2016時点によるアーカイブ。

----- JS:[805027, 805098] -----
<span title="29 January 2015" data-parsoid='{"stx":"html"}'>2015年1月29日

+++++ PHP:[805040, 805116] +++++
<span title="29 January 2015" data-parsoid='{"stx":"html"}'>29 January 2015

.... and so on ....

At first glance, it looks like Parsoid/PHP matches legacy parser rendering here.

Event Timeline

ssastry triaged this task as Medium priority.Nov 15 2019, 6:31 PM
ssastry created this task.

At first glance, it looks like Parsoid/PHP matches legacy parser rendering here.

That looks backward? The /js version looks correct here. Unless I've been reading these lines wrong from the sideline.

At first glance, it looks like Parsoid/PHP matches legacy parser rendering here.

That looks backward? The /js version looks correct here. Unless I've been reading these lines wrong from the sideline.

Here is a snippet from https://ja.wikipedia.org/wiki/フランチェスコ・トッティ
^ Toti, Giuseppe (1 June 1996). “La Piccola Italia tre volte grande” (Italian). Corriere della Sera. オリジナルの2 February 2016時点によるアーカイブ。 29 January 2015閲覧。

You see the (1 June 1996) and 2 February 2016 which Parsoid/PHP matches.

The output from Parsoid/JS found at https://ja.wikipedia.org/api/rest_v1/page/html/フランチェスコ・トッティ is:
^ Toti, Giuseppe (1996年6月1日). “La Piccola Italia tre volte grande” (Italian). Corriere della Sera. オリジナルの2016年2月2日時点によるアーカイブ。 2015年1月29日閲覧。

ssastry lowered the priority of this task from Medium to Low.Nov 20 2019, 10:02 PM
ssastry moved this task from Bugs, Notices, Crashers to Parsoid/JS bugs on the Parsoid-PHP board.

Preview with section edit in WTE2010 renders:

image.png (952×1 px, 251 KB)

Which would seem to match Parsoid/JS (and I think is more likely to match the intent of the templates as a guess, though I'm not going to try to suss {{Citation/showdate}} which is where I think the relevant wikitext programming is).

So, uh, what does that mean? Nobody's got it right? :)

Arlolra claimed this task.
Arlolra subscribed.

Parsoid/JS is no more