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

 Actions

Template

Template:DPL scroll

From Dragon Mania Legends (DML) Wiki

Template documentation
Note: portions of the template sample may not be visible without values provided.
View or edit this template's documentation. (About template documentation)
Sticker - Meh.png
This is an intentionally unused template, kept for Housekeeping purposes. Primarily it is kept as it's an only working example of automatically paginated DPL3 results.

Example(s)

  • {{DPL scroll|total={{PAGESINCATEGORY:Fire (Element)|R}}|offset={%DPL_offset:0%}|count={%DPL_count:{{{count|5}}}%}|page={{FULLPAGENAME}} }}

OR

  • {{DPL scroll|total={{PAGESINCATEGORY:Fire (Element)|R}}|offset=0|count=5|page=Category:Fire (Element)}} gives results like (this is not a live query/working example):
1 - 56 - 10 (284 total)

See Also

  • {{Pagination-DPL3}}, the template that feeds values to this one, to create the resultsheader and resultsfooter pagination number/range entries using DPL3 variables.

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 = ²{DPL scroll¦total={{PAGESINCATEGORY:Category name|R}}¦offset={%DPL_offset:0%}¦count={%DPL_count:200%}¦page={{FULLPAGENAME}}}²\n
|resultsfooter = ²{DPL scroll¦total={{PAGESINCATEGORY:Category name|R}}¦offset={%DPL_offset:0%}¦count={%DPL_count:200%}¦page={{FULLPAGENAME}}}²\n

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://www.dragon-mania-legends.wiki/w/index.php?title=Mypage&DPL_count=3&DPL_offset=3

This template can be used in a DPL3 statement's "resultsheader" and/or "resultsfooter" to create number range buttons to scroll through DPL result pages. The parameters set in this template, must have their URL parameter values set in the corresponding DPL3 statement, per the usage example below.

Template parameters

ParameterDescriptionTypeStatus
(DPL3 %TOTALPAGES% or {{PAGESINCATEGORY:}}) totaltotal

Used by DPL3 to create scrolling navigation

Stringrequired
(DPL3) countcount

Used by DPL3 to determine how many pages to paginate by

Default
100
Example
200
Numberrequired
(DPL3) offsetoffset

Used by DPL3 to determine page offset for pagination, number must match "count"

Default
100
Example
200
Numberrequired
(DPL3 %PAGE% or {{PAGENAME}}) pagepage

Used by DPL3 to specify previous/next page star/end

Stringoptional


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.