Lucas_Werkmeister_WMDE added a subscriber: daniel.
Lucas_Werkmeister_WMDE added a comment.

@daniel pointed out that we can use action="">. This returns an XML tree like this:

<!-- ... -->
<h level="3" i="3">=== <translate><comment><!--T:11--></comment> Cats</translate> ===</h>
\n
<template lineStart="1">
<title>SPARQL2</title>
<part>
<name>query</name>
<equals>=</equals>
<value>SELECT ?item ?itemLabel \nWHERE \n{\n  ?item wdt:P31 wd:Q146.\n  SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". }\n}\n</value>
</part>
</template>
\n\n

This already contains all the templates with parameters, which is mostly the same as what Parsoid gives us. We would still need to do a bit of parsing, but nothing worse than what we already do to extract the adjacent title of a query example.


TASK DETAIL

EMAIL PREFERENCES

To: Lucas_Werkmeister_WMDE
Cc: daniel, Jonas, Smalyshev, Anomie, gerritbot, Lucas_Werkmeister_WMDE, Addshore, Wikidata-Query-Service, Aklapper, Yurik, Lahi, Lordiis, GoranSMilovanovic, Adik2382, Th3d3v1ls, Ramalepe, Liugev6, QZanden, EBjune, merbst, Avner, Lewizho99, Maathavan, debt, Gehel, FloNight, Xmlizer, jkroll, Wikidata-bugs, Jdouglas, aude, Tobias1984, Manybubbles, Mbch331
_______________________________________________
Wikidata-bugs mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikidata-bugs

Reply via email to