|
|
| (50 intermediate revisions by the same user not shown) |
| Line 1: |
Line 1: |
| <includeonly> | | <includeonly>{{#invoke:Pagination|pagination|param=DPL_offset|offset={{#dplvar:DPL_offset}}|count={{#if: {{#dplvar:DPL_count}}|{{#dplvar:DPL_count}}|{{{count|5}}}}}|total={{{total|0}}}|debug={{{debug|0}}}}}</includeonly> |
| <div class="category-page__pagination" style="display:flex; justify-content: space-between; width:100%">
| |
| | |
| {{#vardefine:paramName|{{#if:{{{param|}}}|{{{param}}}|offset}}}} | |
| | |
| <div>
| |
| | |
| {{#ifexpr: {{{offset|0}}} > 0
| |
| | [{{fullurl:{{FULLPAGENAME}}|{{#var:paramName}}=0}}
| |
| <span class="wds-button wds-is-text">First</span>]
| |
| }}
| |
| | |
| {{#ifexpr: {{{offset|0}}} > 0
| |
| | [{{fullurl:{{FULLPAGENAME}}|
| |
| {{#var:paramName}}={{#expr:
| |
| ({{{offset|0}}} - {{{count|5}}}) < 0
| |
| ? 0
| |
| : ({{{offset|0}}} - {{{count|5}}})
| |
| }}
| |
| }}
| |
| <span class="category-page__pagination-prev wds-button wds-is-secondary">< Previous</span>]
| |
| }}
| |
| </div>
| |
| | |
| <div>
| |
| {{#ifexpr: {{#expr: {{{offset|0}}} + {{{count|5}}} }} < {{{total|0}}} | |
| | [{{fullurl:{{FULLPAGENAME}}|
| |
| {{#var:paramName}}={{#expr: {{{offset|0}}} + {{{count|5}}} }}
| |
| }}
| |
| <span class="category-page__pagination-prev wds-button wds-is-secondary">Next ></span>]
| |
| }}
| |
| | |
| {{#ifexpr: {{#expr: {{{offset|0}}} + {{{count|5}}} }} < {{{total|0}}}
| |
| | [{{fullurl:{{FULLPAGENAME}}|
| |
| {{#var:paramName}}={{#expr:
| |
| floor(({{{total|0}}} - 1) / {{{count|5}}}) * {{{count|5}}}
| |
| }}
| |
| }}
| |
| <span class="wds-button wds-is-text">Last</span>]
| |
| }} | |
| </div>
| |
| </div>
| |
| </includeonly> | |