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.

General usage and invocation syntax: Difference between revisions

m
Add note forgotten re:template working when there is an expected number of results, code format a few missed references
imported>FrozenPlum
m (Update DPL3 template use to DPL template (not reliant on loops and vars), fix section about using "!" template (was replaced by magic word), put code format on code bits consistently.)
imported>FrozenPlum
m (Add note forgotten re:template working when there is an expected number of results, code format a few missed references)
Line 105:
==URL parameters==
DPL understands a couple of parameters which can be passed via a URL specification. These URL-parameters all start with DPL_:
* <code>DPL_count</code>: influences the {{DPL|count}} parameter (in fact, it overwrites the value specified within the DPL statement)
* <code>DPL_offset</code>: influences the {{DPL|offset}} parameter (in fact, it overwrites the value specified within the DPL statement)
* <code>DPL_refresh</code>: if used with a value of 'yes' this will clear the DPL cache
* <code>DPL_fromTitle</code>: restrict the selection to articles with a page title greater or equal to the specified value
* <code>DPL_toTitle</code>: restrict the selection to articles with a page title less or equal to the specified value
* <code>DPL_arg1, DPL_arg2, .. DPL_arg5</code>: these are generic parameters that can be used freely to influence a DPL statement
 
The command
 
<pre><nowiki> http://mywebsite/mywiki/index.php?title=MyPage&DPL_offset=20 </nowiki></pre>
 
would display ''MyPage'' and set the offset parameter to a value of ''20''.
Line 124:
In this case, DPL will use 'yyy' if the parameter DPL_xxx is not specified on the URL command line.
 
Note: There is a template called [[Template:Extension DPL scroll]] which uses <code>DPL_offset</code> and <code>DPL_count</code> to provide a generic page scrolling method for huge result sets, where there is an expected number of results.
 
==Syntax used in this manual==
Anonymous user
Cookies help us deliver our services. By using our services, you agree to our use of cookies.