Template:Sortname: Difference between revisions

From The Goon Show Depository

en>TheDJ
(convert template to data-sort-value)
 
m (1 revision imported)
 
(2 intermediate revisions by 2 users not shown)
Line 1: Line 1:
<includeonly><</includeonly><noinclude>&lt;</noinclude>span data-sort-value="{{#invoke:sortkey|encode|{{#if:{{{4|{{{sort|}}}}}} | {{{4|{{{sort}}}}}} | {{{2|{{{last}}}}}}, {{{1|{{{first}}}}}} }}}}">{{#if:{{{nolink|{{#ifeq:{{{1|{{{first|}}}}}}{{{2|{{{last|}}}}}}{{{dab|}}}|-|1}}}}}
{{#invoke:Sort|name<noinclude>|demo=yes|dab={{{dab}}}</noinclude>}}<noinclude>
| <span class="vcard"><span class="fn">{{{1|{{{first}}}}}} {{{2|{{{last}}}}}}</span></span>
{{documentation}}
| <span class="vcard"><span class="fn">[[{{#if:{{{3|{{{link|}}}}}}
</noinclude>
  | {{{3|{{{link}}}}}}|{{{1|{{{first}}}}}} {{{2|{{{last}}}}}} {{#if:{{{dab<includeonly>|</includeonly>}}}
    | ({{{dab}}})
    }}
  }}|{{{1|{{{first}}}}}} {{{2|{{{last}}}}}}]]</span></span>
}}<includeonly><</includeonly><noinclude>&lt;</noinclude>/span>{{#ifeq:{{NAMESPACE}}|{{ns:0}}|[[Category:Articles with hCards]]}}<noinclude>{{documentation}}</noinclude>

Latest revision as of 15:12, 28 September 2024

<span data-sort-value="{{{last}}}, {{{first}}}">[[{{{first}}} {{{last}}} ({{{dab}}})|{{{first}}} {{{last}}}]]</span>