Template:Ss: Difference between revisions
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|}}} | ||
|{{hs|{{ucfirst:{{{2|}}}}}, {{{1|}}}}}[[{{{1|}}} {{{2|}}}]] | |||
'''ss''' stands for 'surname sorting'. This template is used to sort a table column | |{{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 with a single parameter=== | |||
: | :{{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=== | |||
* [[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
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
and the name will be sorted as "Des Prez, Josquin"