{if condition="$total_count neq 0"}
共{$total_count}条
{if condition="$page eq 1"} 首页 上一页 {else /} 首页 上一页 {/if}
{if condition="$page_count elt $page_num "} {for start="1" end="$page_count+1"} {if condition="$i eq $page"} {$i} {else /} {$i} {/if} {/for} {elseif condition="$page elt ($page_num-1)/2"} {for start="1" end="$page_num+1"} {if condition="$i eq $page"} {$i} {else /} {$i} {/if} {/for} {elseif condition="$page_count eq $page or $page_count elt $page+($page_num-1)/2 " /} {for start="$page_count-$page_num+1" end="$page_count+1"} {if condition="$i eq $page"} {$i} {else /} {$i} {/if} {/for} {else /} {for start="$page-($page_num-1)/2" end="$page+($page_num-1)/2+1"} {if condition="$i eq $page"} {$i} {else /} {$i} {/if} {/for} {/if}
{if condition="$page neq $page_count"} 下一页 尾页 {else /} 下一页 尾页 {/if}
{/if}