Talk:Web2Cit/data/com/go/abcnews/templates.json

From Meta, a Wikimedia project coordination wiki

Template path[edit]

Thanks, User:The wub! Could you please indicate, in the translation template you added, the path to the webpage that you used as translation template? Thanks! --Diegodlh (talk) 17:17, 26 May 2022 (UTC)[reply]

@Diegodlh Done! Sorry I wasn't too sure on usage of that field. I saw you fixed my New Yorker one as well, thanks! the wub "?!" 18:00, 26 May 2022 (UTC)[reply]
Thank you! I understand that this field may not be very clear yet. The idea is that we define translation templates based on a specific webpage that we use as template for translation. Thus, we need to specify the path to that webpage. I think this will be clearer when we support translation tests, and when we have the final real-time visual editor. Thanks for helping us test Web2Cit! Diegodlh (talk) 18:18, 26 May 2022 (UTC)[reply]

Author and date[edit]

Author and date seem a bit complicated in this domain, because HTML nodes appear to have random classes, thus making them difficult to select with XPath.

I tried something for the authors, based on a sibling element containing the text "By".

And something for the date, based on finding something that can be handled by the Date transformation.

I tried it and it works for the webpage used as template, and (somewhat) for other slightly different pages such as https://abcnews.go.com/Politics/anger-outrage-meet-exasperation-math-guns-note/story?id=84977728.

I think this may be greatly improved once we support JSON-LD selection, since both fields are available there, in a structured manner.

--Diegodlh (talk) 19:09, 26 May 2022 (UTC)[reply]