Page MenuHomePhabricator

When editor uses template incorrectly summary API returns broken template syntax in the extract field
Closed, ResolvedPublic

Description

Look at the extract (extract_html also) field returned by this call : https://en.wikipedia.org/api/rest_v1/page/summary/Jealousy

At the moment it is the following string : "{{Use dmy dates|dateresentment, inadequacy, helplessness or disgust. In its original meaning, jealousy is distinct from envy, though the two terms have popularly become synonymous in the English language, with jealousy now also taking on the definition originally used for envy alone."
which really looks bogus in the beginning.

It's easily spottable by going to go to https://en.wikipedia.org/wiki/Emotion for example and pointing the "Jealousy" link in the template.

Event Timeline

Looks like it's fixed, I may have looked at it while someone was fiddling with it ^^
I'm leaving it open as I don't think it's my role to close it

Jdlrobson claimed this task.
Jdlrobson subscribed.

Looks like this was an edit gone wrong: https://en.wikipedia.org/w/index.php?title=Jealousy&diff=prev&oldid=867135002
so summary endpoint was behaving as expected by summarising the broken content.

Thanks for flagging this but nothing left to do here!

Jdlrobson renamed this task from Summary API returns bogus results in the extract field to When editor uses template incorrectly summary API returns broken template syntax in the extract field.Nov 9 2018, 5:37 PM