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.

Template:Delete3: Difference between revisions

no edit summary
imported>FrozenPlum
m (Update to move docs here)
imported>FrozenPlum
No edit summary
Line 1:
--><table><tr><td style="background-color: #f9f9f9; padding: .1em .7em .2em .7em;"><!-- {{#dplvar:set|name|value}}
<!--Template to scroll through DPL result pages
--><table><tr><td style="background-color: #f9f9f9; padding: .1em .7em .2em .7em;"><!-- {{#dplvar:set|name|value}}
 
-->{{#ifexpr:{{{total|0}}} > {{{count|0}}}|{{#ifexpr:{{{offset|0}}} > 0|{{#dplvar:set|lwrbound|{{#ifexpr:{{#expr:{{{offset|0}}} - {{{count|100}}}}} < 0|0|{{#expr:{{{offset|0}}} - {{{count|100}}}}}}}}}<!--
Line 14 ⟶ 13:
 
--></td></tr></table><noinclude>
 
This template can be used in a DPL3 statement to scroll through DPL result pages. The parameters set in this template, must have their [[General_usage_and_invocation_syntax#URL parameters|URL parameter]] values set in the corresponding DPL3 statement per the usage example below.
 
Line 22:
|count = {%DPL_count:10%}
|offset = {%DPL_offset:0%}
|resultsheader = ²{Extension DPL scroll¦total={{formatnum:{{PAGESINCATEGORY:category name}}¦R}}¦offset={%DPL_offset:0%}¦count={%DPL_count:10%}¦page={{FULLPAGENAME}}}²\n
|resultsfooter = ²{Extension DPL scroll¦total={{formatnum:{{PAGESINCATEGORY:category name}}¦R}}¦offset={%DPL_offset:0%}¦count={%DPL_count:10%}¦page={{FULLPAGENAME}}}²\n
</pre>
{{note|'''Note:''' <code>%TOTALPAGES%</code> when used in <code>resultsheader</code> or <code>resultsfooter</code>, may cause both to intermittently appear/disappear. Currently, this template is only usable when there's a set number of expected results, such as pages in a category. <code><nowiki>{{formatnum:{{PAGESINCATEGORY:category name}}¦R}}</nowiki></code> is used to adjust for this.|warn}}
Anonymous user
Cookies help us deliver our services. By using our services, you agree to our use of cookies.