Template:SortKeyName: Difference between revisions

From Hattrick
Jump to navigationJump to search
Lirion (talk | contribs)
Created page with '<includeonly>{{#if: {{{1|}}} |<span style="display:none;">{{{2}}}, {{{1}}}</span>[[{{#if: {{{3|}}}|{{{3}}}{{!}}}}{{{1}}} {{{2|}}}]]}}</includeonly>'
 
m Robot: Changing Category:Formatting Templates
 
(7 intermediate revisions by one other user not shown)
Line 1: Line 1:
<includeonly>{{#if: {{{1|}}} |<span style="display:none;">{{{2}}}, {{{1}}}</span>[[{{#if: {{{3|}}}|{{{3}}}{{!}}}}{{{1}}} {{{2|}}}]]}}</includeonly>
<includeonly>{{#if: {{{1|}}} |<span style="display:none;">{{{2}}}, {{{1}}} </span>{{#if: {{{3|}}}|{{{3}}}{{!}}}}{{{1}}} {{{2|}}}}}</includeonly><noinclude>
Sorts Players in tables by their surnames when using the standard form ''Given_Name Surname''.
 
Just write '''<nowiki>{{</nowiki>{{PAGENAME}}|Given_Name|Surname<nowiki>}}</nowiki>'''
 
This will sort your player as ''Surname, Given_Name'' but still will display ''Given_Name Surname''.
[[Category:Formatting templates|SortKeyName]]
</noinclude>

Latest revision as of 19:30, 25 July 2010

Sorts Players in tables by their surnames when using the standard form Given_Name Surname.

Just write {{SortKeyName|Given_Name|Surname}}

This will sort your player as Surname, Given_Name but still will display Given_Name Surname.