Difference between revisions of "DPL Example 020"

From FollowTheScore
Jump to: navigation, search
(requires the Variables extension (with that bugfix))
 
(4 intermediate revisions by 2 users not shown)
Line 1: Line 1:
This is an improved version of result page scrolling. The example uses the header AND the footer to show links for scrolling; of course one of them may be enough in many cases.  
+
{{Example|Improved Version of result scrolling}}
 +
 
 +
This is an improved version of result page scrolling. The example uses the header AND the footer to show links for scrolling; of course one of them may be enough in many cases. It requires the [[Variables extension]] (with that bugfix).
 +
 
  
 
{{#dpl:
 
{{#dpl:
Line 7: Line 10:
 
| table        = class="wikitable sortable",Issue,Description
 
| table        = class="wikitable sortable",Issue,Description
 
| count        = {%DPL_count:5%}
 
| count        = {%DPL_count:5%}
| resultsheader = ²{Extension DPL scroll¦total=%TOTALPAGES%¦offset={%DPL_offset%}¦count={%DPL_offset:5%}¦page={{PAGENAME}}}²\n
+
| resultsheader = ²{Extension DPL scroll¦total=%TOTALPAGES%¦offset={%DPL_offset:0%}¦count={%DPL_count:5%}¦page={{FULLPAGENAME}} }²\n
| resultsfooter = ²{Extension DPL scroll¦total=%TOTALPAGES%¦offset={%DPL_offset%}¦count={%DPL_offset:5%}¦page={{PAGENAME}}}²\n
+
| resultsfooter = ²{Extension DPL scroll¦total=%TOTALPAGES%¦offset={%DPL_offset:0%}¦count={%DPL_count:5%}¦page={{FULLPAGENAME}} }²\n
 
}}
 
}}
  
Line 18: Line 21:
 
| table        = class="wikitable sortable",Issue,Description
 
| table        = class="wikitable sortable",Issue,Description
 
| count        = {%DPL_count:5%}
 
| count        = {%DPL_count:5%}
| resultsheader = ²{Extension DPL scroll¦total=%TOTALPAGES%¦offset={%DPL_offset%}¦count={%DPL_offset:5%}¦page={{PAGENAME}}}²\n
+
| resultsheader = ²{Extension DPL scroll¦total=%TOTALPAGES%¦offset={%DPL_offset:0%}¦count={%DPL_count:5%}¦page={{FULLPAGENAME}} }²\n
| resultsfooter = ²{Extension DPL scroll¦total=%TOTALPAGES%¦offset={%DPL_offset%}¦count={%DPL_offset:5%}¦page={{PAGENAME}}}²\n
+
| resultsfooter = ²{Extension DPL scroll¦total=%TOTALPAGES%¦offset={%DPL_offset:0%}¦count={%DPL_count:5%}¦page={{FULLPAGENAME}} }²\n
 
}}
 
}}
 
</nowiki></pre>
 
</nowiki></pre>

Latest revision as of 06:25, 6 July 2009

back to list of examples

Improved Version of result scrolling

This is an improved version of result page scrolling. The example uses the header AND the footer to show links for scrolling; of course one of them may be enough in many cases. It requires the Variables extension (with that bugfix).


1..56..10(243 total)
Issue Description
Including Sections Trying to include sections that have a link in their headline
Error message - undefined Index 100 using notnamespace causes php error in line 3128
DPL and Glossary clashing using the Glossary extension seems to have adverse effects on DPL result sets
Chinese message texts are wrong All Chinese messages are wrong in DynamicPageList2.i18n.php
False result count result count is affected by the max result limit of DPL
1..56..10(243 total)


{{#dpl:
| namespace     = Issue
| uses          = Template:Issue
| include       = {Issue}:Description
| table         = class="wikitable sortable",Issue,Description
| count         = {%DPL_count:5%}
| resultsheader = ²{Extension DPL scroll¦total=%TOTALPAGES%¦offset={%DPL_offset:0%}¦count={%DPL_count:5%}¦page={{FULLPAGENAME}} }²\n
| resultsfooter = ²{Extension DPL scroll¦total=%TOTALPAGES%¦offset={%DPL_offset:0%}¦count={%DPL_count:5%}¦page={{FULLPAGENAME}} }²\n
}}