Template:Link list/doc

From Wikisource
Jump to navigation Jump to search

Usage[edit]

Create a very simple list of links for a range of numbers:

  • 1: The list target format string (use %d to simply insert the index number)
  • 2: The link display string
  • 3: The range start
  • 4: The range end
  • rowlen: Break into rows of no more than this length (needs to be in an environment like {{flatlist}} to have a visible effect)
  • target2: Alternative target pattern (same format as 1). Optional.
  • target2_when: Comma-separated list of indexes to use the alternative target pattern. Optional.
  • target3: Additional alternative target pattern (same format as 1). Optional.
  • target3_when: Comma-separated list of indexes to use the second alternative target pattern. Optional.

Example

{{Link list|Index:Popular Science Monthly Volume %d.djvu|Volume %d|1|5}}

Example: With zero/space-padding and row length

{{flatlist|
{{Link list|Index:Popular Science Monthly Volume %02d.djvu|%2d|1|20|rowlen=10}}
}}

See also[edit]