打开/关闭菜单
打开/关闭外观设置菜单
打开/关闭个人菜单
未登录
未登录用户的IP地址会在进行任意编辑后公开展示。

模版:DPL4翻页:修订间差异

来自失传媒体中文维基
IDOMOY
IDOMOY留言 | 贡献 (创建页面,内容为“<includeonly><div class="dpl-navigation" style="display: block; margin: 10px 0; text-align: center;"> {{#ifexpr: {{{total|0}}} > {{{count|0}}} | <!-- 首页和上一页逻辑 --> {{#ifexpr: {{{offset|0}}} > 0 | [{{fullurl:{{FULLPAGENAME}}|offset=0}} 首页] | [{{fullurl:{{FULLPAGENAME}}|offset={{#expr: {{{offset|0}}} - {{{count|0}}} < 0 ? 0 : {{{offset|0}}} - {{{count|0}}} }}}} 上一页] | <span style="color: grey;">首页…”)
 
IDOMOY
IDOMOY留言 | 贡献
第1行: 第1行:
<includeonly><div class="dpl-navigation" style="display: block; margin: 10px 0; text-align: center;">
<includeonly>
{{#ifexpr: {{{total|0}}} > {{{count|0}}} |
{{#ifexpr: {{{offset|0}}} > 0 | [{{fullurl:{{FULLPAGENAME}}|offset={{#expr: {{{offset}}} - {{{count}}} }}} 上一页] }}
    <!-- 首页和上一页逻辑 -->
{{#ifexpr: {{{offset|0}}} + {{{count}}} < {{{total}}} | [{{fullurl:{{FULLPAGENAME}}|offset={{#expr: {{{offset}}} + {{{count}}} }}} 下一页] }}
    {{#ifexpr: {{{offset|0}}} > 0 |
</includeonly>
        [{{fullurl:{{FULLPAGENAME}}|offset=0}} 首页] |
        [{{fullurl:{{FULLPAGENAME}}|offset={{#expr: {{{offset|0}}} - {{{count|0}}} < 0 ? 0 : {{{offset|0}}} - {{{count|0}}} }}}} 上一页]
    |
        <span style="color: grey;">首页 | 上一页</span>
    }}
 
    &nbsp;第 {{#expr: floor ( {{{offset|0}}} / {{{count|0}}} ) + 1 }} 页 / 共 {{#expr: ceil ( {{{total|0}}} / {{{count|0}}} ) }} 页&nbsp;
 
    <!-- 下一页和末页逻辑 -->
    {{#ifexpr: ({{{offset|0}}} + {{{count|0}}}) < {{{total|0}}} |
        [{{fullurl:{{FULLPAGENAME}}|offset={{#expr: {{{offset|0}}} + {{{count|0}}} }}}} 下一页] |
        [{{fullurl:{{FULLPAGENAME}}|offset={{#expr: (floor ( ({{{total|0}}} - 1) / {{{count|0}}} )) * {{{count|0}}} }}}} 末页]
    |
        <span style="color: grey;">下一页 | 末页</span>
    }}
|
    <!-- 只有一页时不显示导航 -->
}}
</div></includeonly>

2026年5月2日 (六) 01:31的版本