I'm using MediaWiki. I need to create a dynamic table for some articles.
For instance, given a page called "Lupo", I need to query the DB, find the entry using the code "Lupo" (same value as the article title) and generate a table with some data provided by the query resultset.
I'm trying to do this using a parser function:
$parser->setFunctionHook('adetail', 'aFunc' );
:
function aFunc($parser, $name) {
// do the query etc.
}
invoking the function in this way:
{{adetail:Lupo}}
Anyway I don't want to repeat the article title also in the parser function parameter. Is there a better way to do this?