Difference between revisions of "DPL Example 020"

From FollowTheScore
Jump to: navigation, search
(New page: This is an improved version of result page scrolling: <pre><nowiki> {{#dpl: |namespace= |titlematch=C% |count=10 |offset=%DPL_offset% |resultsheader=²{DPL scroll¦total=%TOTALPAGES%...)
 
(requires the Variables extension (with that bugfix))
 
(12 intermediate revisions by 2 users not shown)
Line 1: Line 1:
This is an improved version of result page scrolling:
+
{{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).
 +
 
  
<pre><nowiki>
 
 
{{#dpl:
 
{{#dpl:
|namespace=
+
| namespace     = Issue
|titlematch=C%
+
| uses          = Template:Issue
|count=10
+
| include      = {Issue}:Description
|offset=%DPL_offset%
+
| table        = class="wikitable sortable",Issue,Description
|resultsheader=²{DPL scroll¦total=%TOTALPAGES%¦offset=%DPL_offset%¦count=10¦page={{PAGENAME}}}²
+
| count        = {%DPL_count:5%}
|resultsfooter=²{DPL scroll¦total=%TOTALPAGES%¦offset=%DPL_offset%¦count=10¦page={{PAGENAME}}}²
+
| 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
 
}}
 
}}
</nowiki></pre>
 
  
 +
<pre><nowiki>
 
{{#dpl:
 
{{#dpl:
|namespace=
+
| namespace     = Issue
|titlematch=C%
+
| uses          = Template:Issue
|count=10
+
| include      = {Issue}:Description
|offset=%DPL_offset%
+
| table        = class="wikitable sortable",Issue,Description
|resultsheader=²{DPL scroll¦total=%TOTALPAGES%¦offset=%DPL_offset%¦count=10¦page={{PAGENAME}}}²
+
| count        = {%DPL_count:5%}
|resultsfooter=²{DPL scroll¦total=%TOTALPAGES%¦offset=%DPL_offset%¦count=10¦page={{PAGENAME}}}²
+
| 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
 
}}
 
}}
 +
</nowiki></pre>

Latest revision as of 07: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).


{{#vardefine:lwrbound|0}}startExpression error: Unrecognized punctuation character "{"...56..1011..15(243 total)
Issue Description
Include positional template parameter including positional template parameters can fail depending on form of template call
Upgraded to 1.11 Notice: Undefined variable Notice: Undefined variable:
Inconsistent node height small height is handled inconsistently
Surprising bahaviour of forcedir layout minor changes in atraction lead to different layouts.
Change alignment procedure for labels in multi-line labels the alignment should work on a line base not on label base
{{#vardefine:lwrbound|0}}startExpression error: Unrecognized punctuation character "{"...56..1011..15(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
}}