On Thu, Aug 5, 2010 at 1:10 PM, lmhelp2 lea.massiot@ign.fr wrote:
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... :)
For starters, {{ can be nested, and do not need to be at the beginning of a line, but could be anywhere. Same goes for the matching }}. Of course, {{{ has a different meaning...
Magnus