Talk:Extension Matrix

DynamicPageList
This page is actually a good idea.

It would be a lot easier and more up to date, if we had Extension:DynamicPageList installed, because then the table could be automatically generated.

--GunterS 01:08, 4 March 2007 (UTC)


 * DynamicPageList can extract, mangle and reformat template parameters? -- Duesentrieb ⇌ 11:36, 4 March 2007 (UTC)
 * In fact in can. You basically define a new template with the variable names you would like to extract from the extension template. Here is a quick example, you are invited to mess with it. --GunterS 19:08, 4 March 2007 (UTC)
 * Hm, interesting. Looks a bit cryptic, I'll have to dig in a bit to see if it's really flexible enough. Can it escape inter-language-links, image-links and templates, so they don't screw up the layout? -- Duesentrieb ⇌ 13:05, 6 March 2007 (UTC)

Hi, my name is Gero (aka Algorithmix) and I invested quite some time into DPL because I felt that something like DPL would help to get more structure and transparency into the wiki world.

If I can be of any help, feel free to ask me on the dpldemo website. Indeed DPL looks a bit cryptic at a first glance. But it is really powerful and if somebody comes up with suggestions for a syntax which is better to read, write and understand I would be pleased. The features "under the hood" are all there, I think. Image escaping for instance, can be switched on and off - as there are applications conceivable where you want to see the image and others where you want to see a link to the image. Your point about interwiki links is not clear to me. What´s your concern?

--Algorithmix 20:03, 6 March 2007 (UTC)


 * foo must be escaped to fr:foo . Also, template expansion should be optional (or ideially, only allowed for specific templates). As to the format: I simply used MediaWiki's template engine for Extension:News - wouldn't that work here, too? For extracting the values, especially, if they can appear in any order, i'm not sure what the best thing would be. perhaps a name and then a regexpression? So the name could be used as a parameter name in the template? Or is it already like that? I have to admin, I didn't look too deeply into DPL. -- Duesentrieb ⇌ 21:55, 6 March 2007 (UTC)


 * Nicely done Dues - looks great! --Jimbojw 22:27, 6 March 2007 (UTC)


 * The access to template arguments works as follows: Let us assume you have an article about a country named Agadonia which uses a template called "country" with parameters a,b,c,d. Agadonia can place named parameters in any order, unnamed parameters must of course respect order. Now in your DPL query you select articles which use "Template:country" and you point to a different template, say "country.dpl" which gets called INSTEAD of the original template by the DPL engine. It is completely up to you to write Template:country.dpl in a way that it produces the output you wish. "Country.dpl" gets all parameters which Agadonia used in its call of "country" in the original sequence PLUS two extra parameters which tell "country.dpl" about the article name. DPL only processes the template call, the rest of the article is ignored. But you can define several templates and you can use the described "template faking mechanism" several times in the same DPL query. --Algorithmix 15:01, 8 March 2007 (UTC)