Difference between revisions of "DPL:Catlist"
Line 1: | Line 1: | ||
− | + | <center><big>[[:Template:Catlist|Jump to DPL GUI ...]]</big></center> | |
− | <center><big>[[ | ||
Line 37: | Line 36: | ||
Try the folowing links: | Try the folowing links: | ||
− | * [[Special:Call/Catlist| | + | * [[:Special:Call/Catlist,namespace=main,randomcount=5|5 random articles in the main namespace ..]] |
* Gero: [[Special:Call/Catlist,modifiedby=Gero,count=10|my last 10 edits]] | * Gero: [[Special:Call/Catlist,modifiedby=Gero,count=10|my last 10 edits]] |
Revision as of 10:19, 26 July 2007
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 User:Nad. The layout doesn´t look nice -- mainly because SimpleForms has trouble with table formatting. At the moment it doesn´t seem to be possible to use table layout within the #form extension body ..
Anyway, the good message is: The GUI is NOT hardcoded within php but it is contained in a 'normal' wiki article (Template:Catlist). So it is open for your improvements. Therefore the current DPL special page will die sooner or later.
Template Catlist contains a form definition with an action which again calls the very same template. To make this possible, a nice little tricky extension called Call extension 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 page.
Thus you can call a mediawiki article and pass parameters to the article ..
- via the URL by using the classical notation with ampercent separators
- via wiki link notation by using a comma separated list of arguments
For example you can write something like <pre> [[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 that 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/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 </pre>
Try the folowing links: