Jump to content

Module:Pagination/doc

From Wikipedia, the free encyclopedia
This is an old revision of this page, as edited by Codemini (talk | contribs) at 08:17, 3 July 2025 (Parameters: and Examples). The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.


Implements {{Pagination}}

Usage

For templates: {{#invoke:Pagination|pagination}}. Please use {{Pagination}} instead.

For modules:

local p = {}
local mPagination = require('Module:Pagination')._pagination

function p.main(args)
 return mPagination({prevlink="alink", nextlink="alink"})
end
return p

.

Parameters

  • prevlink or 1
a link for the previous button
required: true
  • nextlink or 2
a link for the next button
required: true
  • prevstyle
a style on how you want the previous button to look like.
required: false
  • nextstyle
a style on how you want the next button to look like.
required: false

Examples

  • CODE
  • RESULT
{{#invoke:Pagination|pagination|1=You|2=Example}}

Script error: The function "You" does not exist.

{{#invoke:Pagination|pagination|1=You|2=Example|prevstyle=background-color: whitesmoke|nextstyle=background-color: red}}

Previous Next