Template:Numlinks 2-num/doc: Difference between revisions

Ganaram inukshuk (talk | contribs)
Created page with "{{dochead}}{{lua}} '''Template:Numlinks 2-num''' is intended as a meta-template (a template used to construct other templates), used to build {{w|WP:NAV|navigational templates}}. This can be used directly, or by using its corresponding module, Module:Numlinks. For a numbered page page with two numbers, such as 5L 2s, this template generates links to its next and previous pages, for both numbers. This is meant for pages for which there are no intended gaps in the seq..."
 
Ganaram inukshuk (talk | contribs)
mNo edit summary
 
(5 intermediate revisions by the same user not shown)
Line 1: Line 1:
{{dochead}}{{lua}}
{{dochead|header=metatemplate}}
'''Template:Numlinks 2-num''' is intended as a meta-template (a template used to construct other templates), used to build {{w|WP:NAV|navigational templates}}. This can be used directly, or by using its corresponding module, [[Module:Numlinks]].
'''Template:Numlinks 2-num''' is intended as a meta-template (a template used to construct other templates), used to build {{w|WP:NAV|navigational templates}}. This can be used directly, or by using its corresponding module, [[Module:Numlinks]].


Line 10: Line 10:
; <code>Link Format</code> (required)
; <code>Link Format</code> (required)
: The text used for page links, as a format string. By default, this is the page's name, where the number is replaced with <code>%s</code>. If there are multiple numbers, or the number is an ordinal (1st, 2nd, etc), it's necessary to enter the format string manually to avoid issues.
: The text used for page links, as a format string. By default, this is the page's name, where the number is replaced with <code>%s</code>. If there are multiple numbers, or the number is an ordinal (1st, 2nd, etc), it's necessary to enter the format string manually to avoid issues.
; <code>Link Count 1</code> and <code>Link Count 2</code> (optional; default <code>1</code>)
: The number of links to display before and after the current page.


; <code>Min 1</code> and <code>Min 2</code> (optional; default <code>1</code>)
; <code>Min 1</code> and <code>Min 2</code> (optional; default <code>1</code>)
Line 22: Line 25:
; <code>Is Ordinal 1</code> and <code>Is Ordinal 2</code> (optional; default <code>false</code>)
; <code>Is Ordinal 1</code> and <code>Is Ordinal 2</code> (optional; default <code>false</code>)
: Toggles whether to display numbers as ordinals.
: Toggles whether to display numbers as ordinals.
== See also ==
* [[Template:Numlinks]], an equivalent template for one varying page number