Template:Ss: Difference between revisions

From ChoralWiki
Jump to navigation Jump to search
(Table formatting)
(changed to accept a simpler syntax)
 
Line 1: Line 1:
<includeonly>{{hs|{{ucfirst:{{{2|}}}}}, {{{1|}}}}}[[{{{1|}}} {{{2|}}}]]</includeonly><noinclude>
<includeonly>{{#if: {{{2|}}}
;Description
|{{hs|{{ucfirst:{{{2|}}}}}, {{{1|}}}}}[[{{{1|}}} {{{2|}}}]]
|{{hs|{{LastNameFirst|{{{1|}}}}}}}[[{{{1|}}}]]
}}</includeonly><noinclude>
===Description===
'''ss''' stands for 'surname sorting'. This template is used to sort a table column by surnames instead of first names.
'''ss''' stands for 'surname sorting'. This template is used to sort a table column by surnames instead of first names.


;Usage
===Usage with a single parameter===
:<tt><nowiki>{{ss|«name(s)»|«surname»}}</nowiki></tt>
:{{tl|ss|«name»}}
 
;Example
:{{tl|ss|Johann Sebastian Bach}}
is displayed as
:{{ss|Johann Sebastian Bach}}
and the name will be sorted as "Bach, Johann Sebastian"
 
===Usage with two parameters (for especial cases of sorting)===
:{{tl|ss|«first name(s)»|«surname»}}
 
;Example
:{{tl|ss|Josquin|des Prez}}
is displayed as
:{{ss|Josquin|des Prez}}
and the name will be sorted as "Des Prez, Josquin"


===See also===
===See also===

Latest revision as of 12:03, 12 May 2013

Description

ss stands for 'surname sorting'. This template is used to sort a table column by surnames instead of first names.

Usage with a single parameter

{{ss|«name»}}
Example
{{ss|Johann Sebastian Bach}}

is displayed as

Bach, Johann SebastianJohann Sebastian Bach

and the name will be sorted as "Bach, Johann Sebastian"

Usage with two parameters (for especial cases of sorting)

{{ss|«first name(s)»|«surname»}}
Example
{{ss|Josquin|des Prez}}

is displayed as

Des Prez, JosquinJosquin des Prez

and the name will be sorted as "Des Prez, Josquin"

See also