Difference between revisions of "Issue:%PAGES% and %TOTALPAGES% won't work together"
From FollowTheScore
Line 4: | Line 4: | ||
|Version = ? | |Version = ? | ||
|Description = Can't use %PAGES% together with %TOTALPAGES% | |Description = Can't use %PAGES% together with %TOTALPAGES% | ||
− | |Status = | + | |Status = closed |
}} | }} | ||
Line 47: | Line 47: | ||
== Reply == | == Reply == | ||
+ | |||
+ | In fact there was a bug in DPL; sometimes %PAGES% showed the total number of pages instead of the ''actual'' number of pages contained in the result set. This was fixed. Your example now always shows the correct values. [[User:Gero|Gero]] 14:27, 14 May 2009 (UTC) |
Revision as of 15:27, 14 May 2009
Description: | Can't use %PAGES% together with %TOTALPAGES% |
Extension / Version: | DPL / ? |
Type / Status: | Bug / closed |
Problem
Why does it not work? I need that for a navigation template reading: "%PAGES% displayed (out of %TOTALPAGES% results)"
{{#dpl: |category=Category |count=5 |resultsheader=pages: %PAGES% - totalpages: %TOTALPAGES% }} |
{{#dpl: |category=Category |count=5 |resultsheader=pages: %PAGES% }} |
{{#dpl: |category=Category |count=5 |resultsheader=totalpages: %TOTALPAGES% }} |
pages: 5 - totalpages: 9 | pages: 5 | totalpages: 9 |
--Subfader 17:52, 1 May 2009 (UTC)
Reply
In fact there was a bug in DPL; sometimes %PAGES% showed the total number of pages instead of the actual number of pages contained in the result set. This was fixed. Your example now always shows the correct values. Gero 14:27, 14 May 2009 (UTC)