Difference between revisions of "Template:InvertName"
From The Doctor Who Cuttings Archive
Jump to navigationJump to searchJohn Lavalie (talk | contribs) |
John Lavalie (talk | contribs) |
||
Line 1: | Line 1: | ||
− | {{# | + | {{#vardefine:temp | {{{author}}} }} |
− | {{# | + | {{#vardefine:pos | {{#rpos:temp| }} |
− | {{ | + | {{#if: |
− | + | {{#expr: pos > 0 | |
− | + | | {{#vardefine:lastName | {{#sub: temp | {{#expr: pos + 1 }} }} }} | |
− | + | {{#vardefine:firstName | {{#sub: temp | 0 | {{#expr: pos - 1 }} }} }} | |
− | + | lastName, firstName | |
+ | | {{{author}}} | ||
+ | }} | ||
}} | }} |
Revision as of 12:39, 20 October 2013
{{#vardefine:pos | -1