Difference between revisions of "DPL:Catlist"
(do you really want to have to update this version # each time?) |
(more obvious for those that know the name and look for it in this page here) |
||
Line 1: | Line 1: | ||
− | <center><big>[[:Template:Catlist|Jump to DPL GUI ...]]</big></center> | + | <center><big>[[:Template:Catlist|Jump to DPL GUI ...]]</big>(Template:Catlist)</center> |
''This page will only run if you | ''This page will only run if you |
Revision as of 01:19, 10 September 2007
This page will only run if you use the latest DPL version (at least 1.2.8) install 'Call extension' (contained in the download) install 'SimpleForms extension'.
This is an effort to bring the power of DPL to the average user who is probably not willing to write complex scripts.
It is based on mw:Extension:Simple_Forms as was suggested by Nad. At the moment the layout doesn´t look very nice -- mainly because Simple Forms has trouble with table formatting using wikitext syntax. It doesn't seem to be possible to use wikitext table syntax to organise layout within the #form extension body, however html table syntax does still work.
Anyway, the good message is: The GUI is NOT hard-coded within PHP but it is contained in a 'normal' wiki article (Template:Catlist). So it is open for your improvements. Therefore the old DPL special page was removed.
Template Catlist contains a completely parameterized DPL query and a form definition with an action which again calls the very same template. To make this possible, a nice little tricky extension called Call was added. This extension allows to call a MediaWiki article and pass parameters via the command line. The called page appears as a special page and has the name of the called template.
With Call you can invoke a mediawiki article and pass parameters to the article:
- via the URL by using the classical notation with ampersand (&) separators
- via wiki link notation by using a comma separated list of arguments
For example you can write something like
[[Special:Call/Catlist|some text]] This 'calls' Template:Catlist note the difference to {{Catlist}} which would include the template The called template page appears as a special page to the user, but normally he will not notice this as we implicitly change the page title of that special page to the template´s name. [[Special:Call/Catlist,category=something|some text]] This 'calls' Template:Catlist with parameter 'category' set to 'something' The output equals {{Catlist|category=something}} but it appears as a special page [http://myhost/mywiki/index.php?title=Special:Call/Catlist,category=something some text] This can be used within another wiki or from the command line and it shows how the comma separators alos work within an URL. From the browsers command line you can use also http://myhost/mywiki/index.php/Special:Call/Catlist&category=something
Try the following links:
- Five random articles in the main namespace ..
- Gero: latest 10 edits
- a remote call to this wiki:looking for articles in category 'Belgium'
Features included in old DPL special page that are not implemented (yet?)
- Multiple categories/namespaces/templates/users/etc are not supported as in the original DPL special page. -Eep² 14:17, 9 September 2007 (CEST)
Bugs
- "created by" selectbox does not display (only?) the users but (also?) pages from userspace. If users have subpages this is strange. Tobias Conradi 19:01, 8 September 2007 (CEST)
Fixed
Using the 'titleregexp' it was easy to exclude pages which have a '/' in their name. Gero 21:02, 8 September 2007 (CEST)
- thank you. Tobias Conradi 13:28, 9 September 2007 (CEST)