Wikipedia icon indicating copy to clipboard operation
Wikipedia copied to clipboard

Invalid infobox value for https://fr.wikipedia.org/wiki/Marseille

Open christophehurpeau opened this issue 1 year ago • 2 comments

page: https://fr.wikipedia.org/wiki/Marseille

Wikipedia value: 13055 et de [[Secteurs et arrondissements de Marseille|13201 à 13216]]

Expected: 13055 et de 13201 à 13216 probably ? Actual: Secteurs et arrondissements de Marseille

await wiki.setLang('fr');
const page = await wiki.page('Marseille');
console.log(await page.infobox());

christophehurpeau avatar Mar 31 '24 11:03 christophehurpeau

I'd suggest using the summary instead of infobox for a brief summary of the page.

We implement the infobox using infobox-parser - so any issues with infobox should be raised there.

It might be useful to to see how many people are using infobox info so we can understand should we have our own implementation for the same.

dopecodez avatar Oct 31 '25 05:10 dopecodez

I'd suggest using the summary instead of infobox for a brief summary of the page.

We implement the infobox using infobox-parser - so any issues with infobox should be raised there.

It might be useful to to see how many people are using infobox info so we can understand should we have our own implementation for the same.

Thank you for your response. To clarify, I wanted the value of "insee" specifically, not a summary of the page.

christophehurpeau avatar Nov 08 '25 12:11 christophehurpeau