[Mediawiki-l] Wikitext grammar

Scheid, Bernhard Bernhard.Scheid at oeaw.ac.at
Thu Aug 5 09:19:16 UTC 2010


You may have a look at the DPL (DynamicPageList) Extension. It provides lots of functions to render segments of pages, they may have what you want...

Bernhard

-----Ursprüngliche Nachricht-----
Von: lmhelp [mailto:lmbox at wanadoo.fr] 
Gesendet: Mittwoch, 4. August 2010 21:45
An: mediawiki-l at lists.wikimedia.org
Betreff: [Mediawiki-l] Wikitext grammar


Hi,

Thank you or reading my post.

I am wondering if there exists a "grammar" for the "Wikicode"/"Wikitext"
language (or an *exhaustive* (and formal) set of rules about how is
constructed 
a "Wikitext"). 
I've looked for such a grammar/set of rules on the Web but I couldn't find
one...

I need to extract automatically the first paragraph of a Wiki article...

I did it from the HTML version of a Wiki article (because
I noticed the first paragraph was the first <p> element
child of a <div> element which id is "bodyContent"...)
but I need to work with the "Wikitext" itself...

- Is a grammar available somewhere?
- Do you have any idea how to extract the first paragaph of a Wiki article?
- Any advice?
- Does a Java "Wikitext" "parser" exists which would do it?

Thank you for your help.
All the best,

--
Lmhelp
-- 
View this message in context: http://old.nabble.com/Wikitext-grammar-tp29350471p29350471.html
Sent from the WikiMedia General mailing list archive at Nabble.com.


_______________________________________________
MediaWiki-l mailing list
MediaWiki-l at lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-l



More information about the MediaWiki-l mailing list