56,027
edits
TriforceTony (talk | contribs) m (→Guidelines) |
PhantomCaleb (talk | contribs) (+ sort param. Not the greatest example but I think it gets the point across.) |
||
Line 6: | Line 6: | ||
==Usage== | ==Usage== | ||
{{NoWikiTemp|Normal|<game>|<topic>|link|display{{=}}}} | {{NoWikiTemp|Normal|<game>|<topic>|link|display{{=}}|sort{{=}}}} | ||
{{Parameter|<game> |The game from which to fetch the term of the given topic. Defaults to <code>Series</code>.|Required}} | {{Parameter|<game> |The game from which to fetch the term of the given topic. Defaults to <code>Series</code>.|Required}} | ||
Line 12: | Line 12: | ||
{{Parameter|link |Entering anything in this field will output the result as a link. (Enter <code>link</code> for standardization)|Optional}} | {{Parameter|link |Entering anything in this field will output the result as a link. (Enter <code>link</code> for standardization)|Optional}} | ||
{{Parameter|display{{=}}|Alternative display return value. See below.|Optional}} | {{Parameter|display{{=}}|Alternative display return value. See below.|Optional}} | ||
{{Parameter|sort{{=}}|Use in [[Help:Tables#Sortable_Tables|sortable tables]] to sort according to some in-game ordering stored at [[Data:Sort Values]]. See below.|Optional}} | |||
===Examples=== | ===Examples=== | ||
Line 69: | Line 70: | ||
'''Result:''' In {{LA}}, the {{Term|LADX|Tail Cave|link}} is the first {{Term|LADX|Dungeon|link}} on {{Term|LADX|Koholint Island|link}}. The {{Term|LADX|Big Key|link}} is needed to access the {{Term|LADX|Boss|link}}. | '''Result:''' In {{LA}}, the {{Term|LADX|Tail Cave|link}} is the first {{Term|LADX|Dungeon|link}} on {{Term|LADX|Koholint Island|link}}. The {{Term|LADX|Big Key|link}} is needed to access the {{Term|LADX|Boss|link}}. | ||
====Sorting Tables of Terms==== | |||
Suppose you were to make a sortable table mapping {{ST|-}} 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. This can be accomplished by adding entries to [[Data:Sort Values]] and using the <code>sort</code> parameter on the term. | |||
<pre> | |||
{|class="wikitable sortable" | |||
! Character | |||
! Realm | |||
|- | |||
| {{Term|ST|Gage}} | |||
| {{Term|ST|Forest Realm|sort=Realm}} | |||
|- | |||
| {{Term|ST|Steem}} | |||
| {{Term|ST|Snow Realm|sort=Realm}} | |||
|- | |||
| {{Term|ST|Carben}} | |||
| {{Term|ST|Ocean Realm|sort=Realm}} | |||
|- | |||
| {{Term|ST|Embrose}} | |||
| {{Term|ST|Fire Realm|sort=Realm}} | |||
|} | |||
</pre> | |||
'''Result:''' | |||
{|class="wikitable sortable" | |||
! Character | |||
! Realm | |||
|- | |||
| {{Term|ST|Gage}} | |||
| {{Term|ST|Forest Realm|sort=Realm}} | |||
|- | |||
| {{Term|ST|Steem}} | |||
| {{Term|ST|Snow Realm|sort=Realm}} | |||
|- | |||
| {{Term|ST|Carben}} | |||
| {{Term|ST|Ocean Realm|sort=Realm}} | |||
|- | |||
| {{Term|ST|Embrose}} | |||
| {{Term|ST|Fire Realm|sort=Realm}} | |||
|} | |||
==Guidelines== | ==Guidelines== |