Template:Numlinks/doc: Difference between revisions

From Xenharmonic Wiki
Jump to navigation Jump to search
Ganaram inukshuk (talk | contribs)
mNo edit summary
Tag: Reverted
Ganaram inukshuk (talk | contribs)
mNo edit summary
Tag: Manual revert
Line 4: Line 4:
For a numbered page, such as 12edo or 12th-octave temperaments, this template generates links to its next and previous pages. This is meant for pages for which there are no intended gaps in the sequence of pages.
For a numbered page, such as 12edo or 12th-octave temperaments, this template generates links to its next and previous pages. This is meant for pages for which there are no intended gaps in the sequence of pages.


=== Parameters ===
== Parameters ==
; <code>Current Num</code> (required)
; <code>Current Num</code> (required)
: The current number of the page. May be obtained by using <code>#rmatch</code> or similar.
: The current number of the page. May be obtained by using <code>#rmatch</code> or similar.

Revision as of 08:07, 10 October 2025

This template is implemented by the Lua module Module:Numlinks.
This template invokes the following functions: numlinks from Numlinks.

Template:Numlinks is intended as a meta-template (a template used to construct other templates), used to build navigational templates. This can be used directly, or by using its corresponding module, Module:Numlinks.

For a numbered page, such as 12edo or 12th-octave temperaments, this template generates links to its next and previous pages. This is meant for pages for which there are no intended gaps in the sequence of pages.

Parameters

Current Num (required)
The current number of the page. May be obtained by using #rmatch or similar.
Link Count
The number of links to display before and after the current page. Default is 1.
Min
The minimum valid value for page numbers. Default is 1.
Link Format
The text used for page links, where %s denotes the page number. Default is %s.
Display Format
Format for if the displayed text for the links is different, where %s denotes the page number. Default is to use the same value as Link Format.
Current Page Format
Format for if the current-page text different, where %s denotes the page number. Default is to use the same value as Display Format.
Is Ordinal
If set to true, this displays numbers as ordinals instead. Default is false.
Is Table
If set to true, this displays the output as a 1-row, 3-column table. Default is true.