Zelda Wiki

OoT Navi.png

Hey! Listen!

This wiki contains spoilers! Read at your own risk!

READ MORE

Zelda Wiki
Advertisement
Zelda Wiki
10,307
pages

Purpose

Displaying term links in sortable tables, sorted according to some in-game sequence defined at Data:Sequences.

Usage

This template relies on the centralized data stored at Data:Sequences.

SyntaxBoilerplate
{{Sort Value|<game>|<term>|sortBy= }}
{{Sort Value||}}
ParameterStatusDescription
1gamerequiredThe game or other published title to which the term applies.
2termrequiredThe term to be sorted. Should be a valid Term
sortByoptionalIf the given term belongs to more than one sequence in the given game, use this parameter to specify which sequence to use for sorting.

Displaying [[Guidelines:Terminology|term]] links in [[Help:Tables#Sortable_Tables|sortable tables]], sorted according to some in-game sequence defined at [[Data:Sequences]].

Template parameters

ParameterDescriptionTypeStatus
game1 game

The game or other published title to which the term applies.

Stringrequired
term2 term

The term to be sorted. Should be a valid [[Guidelines:Terminology|Term]]

Stringrequired
sortBysortBy

If the given term belongs to more than one sequence in the given game, use this parameter to specify which sequence to use for sorting.

Stringoptional

Example

Suppose you were to make a sortable table mapping Spirit Tracks characters to the Realm they inhabit. Given that Realms are visited sequentially, it is more logical for the "Realm" column to sort according to their in-game order, rather than alphabetical order. That is, the order should be Forest Realm, Snow Realm, Ocean Realm, Fire Realm.

Code
{|class="wikitable sortable"
! Character
! Realm
|-
| {{Sort Value|ST|Kofu}}
| {{Sort Value|ST|Snow Realm}}
|-
| {{Sort Value|ST|Tengoron}}
| {{Sort Value|ST|Fire Realm}}
|-
| {{Sort Value|ST|Wadatsumi}}
| {{Sort Value|ST|Ocean Realm}}
|-
| {{Sort Value|ST|Wood}}
| {{Sort Value|ST|Forest Realm}}
|}
Result
Character Realm
Kofu Snow Realm
Tengoron Fire Realm
Wadatsumi Ocean Realm
Wood Forest Realm
The above documentation is transcluded from Template:Sort Value/Documentation. (edit | history)

Advertisement