Wordpress queries and wikipedia
I'm not going to write it for you. In the previous comments I explained how $intro would be defined (obviously it's not defined right now, that's up to you) where it reads " // Download $url and do your magic extraction".
Then in PHP (getWikiIntroParagraph) extract the first one (or two)
<p>-tags. And with what you have left, use strip_tags() to get rid of other unwanted html code, and then you have an clear-text excerpt.
I know, but I do need further explanation or better the parts I need to use for what is left to do. I am not into php so need to be pointed to each function or whatever I need to have, you know? I just know it is not defined but cannot think about a function or whatever to get what I want. Is $intro the only thing what's left? If so, what do I need to make run? If not, what else and what do I need? As I said I am not into php and need more info. Sorry.
//EDIT
I guess it's only $intro I need to define right now. Do I have to make it within function get WikiIntroParagraph or before / after that? As far as I understand this function extracts anything from the page. Do I have to use truncate to get a summary or is there something else I can use?
I have tried something but doesn't function. Do have any idea(s)? http://pastebin.com/fkLBeViY