Jump to content
This wiki has been automatically closed because there have been no edits or log actions made within the last 60 days. If you are a user (who is not the bureaucrat) that wishes for this wiki to be reopened, please request that at Requests for reopening wikis. If this wiki is not reopened within 6 months it may be deleted. Note: If you are a bureaucrat on this wiki, you can go to Special:ManageWiki and uncheck the "Closed" box to reopen it.

Other parameters: Difference between revisions

m (clean up, typos fixed: won´t → won't, fuction → function)
Line 316:
Note that the wiki text may be a parser function call which evaluates to an empty string.
 
The special word ''geturlargs'' can be used as a wiki text to transform URL arguments starting with <code>DPL_</code> into variables which can then be accessed via #var (if the Variables extension is installed) or via #dplvar.
Purpose:
Line 323:
 
A typical use would look like this (note the double pipe symbols within the #if.
Calling the following page with &catDPL_cat=Country would list countries, omitting the &cat parameter would trigger the error text mnessagemessage (without DPL going to the database):
<pre><nowiki>
{{#dpl:execandexit=geturlargs}}
{{#dpl:
| execandexit = {{#if:{{#dplvar:catDPL_cat}}||please specify a category via &catDPL_cat= in the URL!}}
| resultsheader = pages in category {{#dplvar:catDPL_cat}}:\n
| noresultsheader = there are no pages in category {{#dplvar:catDPL_cat}}.\n
| count = 5
| category = {{#dplvar:catDPL_cat}}
}}
</nowiki></pre>
Anonymous user
Cookies help us deliver our services. By using our services, you agree to our use of cookies.