Help:Sort

From Stargate Worlds Wiki (SGW)

Jump to: navigation, search
Sort extension
Sort extension

The Sort extension allows simplified creation of sorted lists through the use of a parser hook.

[edit] Usage

Sort adds a new tag, <sort>, to the MediaWiki markup, which can be inserted while editing. The syntax of this tag is

<sort order="[order]" class="[class]">
List item one
List item two
etc.
</sort>

The order and class attributes are optional, and are used to customise the sort direction and list type generated. By default, Sort will generate an alphabetically sorted unordered list. Each item in the list should go on a new line. Wiki markup can be used.

[edit] Order

The following are valid order values

  • asc - ascending sort (default)
  • desc - descending sort

[edit] Class

The following are valid class values

  • ul - unordered [bulleted] list (default)
  • ol - ordered [numbered] list
Personal tools
Ran by