Template:Sms

From Wikibooks, open books for an open world
Jump to navigation Jump to search

&

Template documentation[edit] [history] [purge]

This template can be used to generate a generic sort key. See Help:Tables#Sortable_tables. It is useful in many different situations. For example:

When used in the first row of a sortable column, it forces the column to sort alphabetically.
When a cell contains a wiki link, it can be used to force the cell to be sorted by some hidden text and not the bracket.

Usage[edit]

{{sms|some text}}

Output[edit]

{{sms|some text}} generates <span style="display:none">&some text</span>

See also[edit]

  • {{Nts}} – used to generate hidden sort keys for numbers
  • {{Ntsh}} – used to generate hidden sort keys for numbers (does not display the number)
  • {{Ntsc}} – for converted units, sorts by the first number
  • {{Ntss}} – same as Nts, but allows for the number to be scaled
  • {{Convert}} – has a sortable option
  • {{Dts}} – for sorting dates