Easily creates a sort key for a list of Wikipedia Articles where most of the articles must have piped link names.

{{ safesubst:p{{ safesubst:#ifTriple A:Piped Article Name|1|2}}||}} {{ safesubst:p{{ safesubst:#ifTriple A:Piped Article Name|1|2}}||}}


Usage

edit

{{tablesortkey|Sortkey|Article|Piped Article Name}}

Includes three unnamed parameters:

Sortkey - The word by which the entry is sorted in a table Article - Name of an article to be linked to Piped Article Name - Wikilinked piped name for article