• Home
  • Random
  • Nearby
  • Log in
  • Settings
Donate Now If Wikipedia is useful to you, please give today.
  • About Wikipedia
  • Disclaimers
Wikipedia

Template:Pagination

  • Template
  • Talk
  • Language
  • Watch
  • Edit
Template documentation[view] [edit] [history] [purge]
This template uses Lua:
  • Module:Pagination (sandbox)
CSSThis template uses TemplateStyles:
  • Module:Pagination/styles.css

Easily jump backward and forward to the next information or tutorial page. This template basically contains two buttons, a previous and a next button.

Contents

  • 1 Usage
  • 2 Example
  • 3 Errors
  • 4 TemplateData

Usage

edit

Basic usage: {{Pagination|1=[previouslink]|2=[nextlink]}}

Full usage: {{Pagination|1=[previouslink]|prevstyle=[previousbtnstyle]|2=[nextlink]|nextstyle=[nextbtnstyle]}}

Example

edit

Imagine you were writing a tutorial about JavaScript, HTML and CSS and you started the introductry part in a page, Then you want others who were reading the JavaScript tutorial to jump to the next tutorial page which is HTML use: {{pagination|.|HTML}} gives

[[.|Previous]] Next

then in the HTML tutorial Page you can jump back to the JavaScript tutorial page or next to the CSS tutorial page using: {{Pagination|JavaScript|CSS}} which gives:

Previous Next

An example where this template is used is at: User:Codemini/Lua Tutorial/Getting started

Errors

edit

Without providing a link for both the previous and next buttons an error will appear in the page stating:

PaginationScriptError: "no link provided for the previous and next buttons" (help)

TemplateData

edit
The above documentation is transcluded from Template:Pagination/doc. (edit | history)
Editors can experiment in this template's sandbox (create | mirror) and testcases (create) pages.
Add categories to the /doc subpage. Subpages of this template.
Retrieved from "https://en.wikipedia.org/w/index.php?title=Template:Pagination&oldid=1298560526"
Last edited on 3 July 2025, at 07:23

Languages

    • Simple English
    Wikipedia
    • Wikimedia Foundation
    • Powered by MediaWiki
    • This page was last edited on 3 July 2025, at 07:23 (UTC).
    • Content is available under CC BY-SA 4.0 unless otherwise noted.
    • Privacy policy
    • About Wikipedia
    • Disclaimers
    • Contact Wikipedia
    • Code of Conduct
    • Developers
    • Statistics
    • Cookie statement
    • Terms of Use
    • Desktop