Please remember to make use of the DML Wiki Manual of Style and Code of Conduct during your stay.

 Actions

Help

Help:DPL3 scroll/doc

From Dragon Mania Legends (DML) Wiki

< Help:DPL3 scroll
Documentation subpage
View this documentation's related template:
Help:DPL3 scroll

Usage

The count and offset parameter are required to use this template in a DPL3 invocation:

|count = {%DPL_count:10%}
|offset = {%DPL_offset:0%}
|resultsheader = ²{Extension DPL scroll¦total={{PAGESINCATEGORY:Category name|R}}¦offset={%DPL_offset:0%}¦count={%DPL_count:10%}¦page={{FULLPAGENAME}}}²\n
|resultsfooter = ²{Extension DPL scroll¦total={{PAGESINCATEGORY:Category name|R}}¦offset={%DPL_offset:0%}¦count={%DPL_count:10%}¦page={{FULLPAGENAME}}}²\n
|allowcachedresults = false

Note: %TOTALPAGES% when used in resultsheader or resultsfooter, 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. {{PAGESINCATEGORY:Category name|R}} is used to adjust for this.


The output of the URL link generated, is equivalent to putting the following in a browser (for the page name that has the above required parameters):

https://mywiki.miraheze.org/w/index.php?title=Mypage&DPL_count=3&DPL_offset=3

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.

Template parameters

ParameterDescriptionTypeStatus
Total Pagestotal

no description

Default
0
Numberrequired
Result Count Limitcount

Set to a number to change the limit of results output

Default
100
Example
200
Numberrequired
Count offsetoffset

Used for pagination to provide the next set of results by offsetting the count accordingly, should match count.

Default
0
Example
200
Numberrequired
Page URLpage

Page to pass to URL for encoding and adding DPL3 url parameters

Page namerequired
This Wiki is created by players for other players and is not maintained by, or affiliated with, the game maker (Gameloft).
Cookies help us deliver our services. By using our services, you agree to our use of cookies.