Anonymous user
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>
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==
|