ଛାଞ୍ଚ:Sort

ଉଇକିପିଡ଼ିଆ ରୁ

[[{{{1}}}]]

Documentation icon Template documentation[view] [edit] [history] [purge]


This template is for optionally sorting tables by specified sortkeys.

Usage
{{sort|sort value|displayed value}}

If necessary, one can apply sorting using a sortkey that due to CSS is not displayed: <span style="display:none">...</span>. Javascript sorting is based on the text inside and outside the tags, without the tags themselves. A hidden sortkey can be put at the start.

This template makes that more convenient. The first parameter is the sortkey; the second parameter is the wikitext of what has to be displayed. By default, this is the sortkey with link brackets.

Example[ସମ୍ପାଦନା]
|{{sort|Brothers Karamazov|[[The Brothers Karamazov]]}}

It presently works through hidden CSS, as described at Help:Sorting. If a cleaner way of doing this is developed, the template will be changed. A table using this template should use it in all rows.

See also[ସମ୍ପାଦନା]