Template:LastNameLink: Difference between revisions

From ChoralWiki
Jump to navigation Jump to search
No edit summary
No edit summary
(One intermediate revision by the same user not shown)
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 composer names in sortable tables. <br>
May be used for composer names in sortable tables. <br>
Line 18: Line 18:
|last, first
|last, first
|}
|}
 
[[Category:Table formatting templates]]
[[Category:Internal link templates]]</noinclude>
[[Category:Internal link templates]]</noinclude>

Revision as of 00:59, 8 July 2020

Usage:
May be used for composer names 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