Template:LastNameLink: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
Line 1: | Line 1: | ||
<includeonly>{{#if:{{{nolink|}}}|{{#if:{{{2|}}}|{{{2}}}, {{{1}}}|{{{1}}}}}|[[{{#if:{{{2|}}}|{{{1}}} {{{2}}}{{!}}{{{2}}}, {{{1}}}|{{{1}}}}}]]}}</includeonly><noinclude> | <includeonly>{{#if:{{{nolink|}}}|{{#if:{{{2|}}}|{{{2}}}, {{{1}}}|{{{1}}}}}|[[{{#if:{{{2|}}}|{{{1}}} {{{2}}}{{!}}{{{2}}}, {{{1}}}|{{{1}}}}}]]}}</includeonly><noinclude> | ||
'''Usage:'''<br> | '''Usage:'''<br> | ||
May be used for | May be used for names (composers, lyricists, translators, etc.) in sortable tables. <br> | ||
The result is a link to the composer page with text ''last name, first name'' as a sort value. | The result is a link to the composer page with text ''last name, first name'' as a sort value. | ||
Latest revision as of 19:31, 23 October 2022
Usage:
May be used for names (composers, lyricists, translators, etc.) in sortable tables.
The result is a link to the composer page with text last name, first name as a sort value.
Input | Result |
{{LastNameLink|first|last}} |
[[first last|last, first]] |
{{LastNameLink|last and only name}} |
[[last and only name]] |
{{LastNameLink|first|last|nolink=1}} |
last, first |