Template:SortedLinks/doc
Jump to navigation
Jump to search
Usage
{{SortedLinks}}
is a template that alphabetizes any links that are given to it, primarily used for sorting localized links.
Syntax
{{SortedLinks|links...|before=|after=|count=|start=|end=}}
Named Arguments
Parameters | Description |
---|---|
before
|
An output before each link
|
after
|
An output after each link
|
between
|
An output between each link
|
Separate Sections | |
count
|
Divides the links into this many buckets, each starting with the start parameter, and ending with the end parameter.
|
start
|
Text that is shown at the start of each section
|
end
|
Text that is shown at the end of each section
|
Examples
This example sets a newline and a *
bullet point before each link to create a list
{{SortedLinks
| {{LL|Cooking}}
| {{LL|Hunting}}
| {{LL|Bug Catching}}
| {{LL|Gardening}}
| {{LL|Foraging}}
| {{LL|Fishing}}
| {{LL|Furniture Making}}
| {{LL|Mining}}
|before = <nowiki/>
*
}}
* {{SortedLinks
| {{LL|Cooking}}
| {{LL|Hunting}}
| {{LL|Bug Catching}}
| {{LL|Gardening}}
| {{LL|Foraging}}
| {{LL|Fishing}}
| {{LL|Furniture Making}}
| {{LL|Mining}}
|between = <nowiki> • </nowiki>
}}
- Bug Catching • Cooking • Fishing • Foraging • Furniture Making • Gardening • Hunting • Mining