Template:Ss: Difference between revisions

From ChoralWiki
Jump to navigation Jump to search
(upper case first letter, for surnames as "di Marco")
(changed to accept a simpler syntax)
 
(2 intermediate revisions by the same user not shown)
Line 1: Line 1:
<includeonly>{{hs|{{ucfirst:{{{2|}}}}}, {{{1|}}}}}[[{{{1|}}} {{{2|}}}]]</includeonly><noinclude>
<includeonly>{{#if: {{{2|}}}
;Description
|{{hs|{{ucfirst:{{{2|}}}}}, {{{1|}}}}}[[{{{1|}}} {{{2|}}}]]
'''ss''' stands for 'surname sorting'. This template is used to sort a table column with names by surname.
|{{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.


;Usage
===Usage with a single parameter===
:<tt><nowiki>{{ss|«name(s)»|«surname»}}</nowiki></tt>
:{{tl|ss|«name»}}


[[Category:Templates|{{PAGENAME}}]]
;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===
* [[Template:Hs]]
 
[[Category:Table formatting templates]]
</noinclude>
</noinclude>

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