Hi,
Thanks to all of you for your answers.
I have decided (in the light of what you told me) to read the "Wikitext" line after line.
I must "ignore" leading: - templates (including the ones which span over several consecutive lines like "infoboxes"): {{...}}, - isolated internal links: [[...]].
I return the first line which is not one of the two "things" above.
Of course, I hope I am not forgetting any other "things" which could appear at the begenning of the "Wikitext". I have examined several articles at random and I saw nothing else... If I am forgetting something please tell me... :)
All the best, -- Lmhelp