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:temp | {{{author}}} }} | ||
− | {{#vardefine:pos | {{#rpos:temp| | + | {{#vardefine:pos | {{#rpos:temp|" "}} }} |
− | {{#if: | + | {{#if: {{#expr: pos > 0}} |
− | |||
| {{#vardefine:lastName | {{#sub: temp | {{#expr: pos + 1 }} }} }} | | {{#vardefine:lastName | {{#sub: temp | {{#expr: pos + 1 }} }} }} | ||
{{#vardefine:firstName | {{#sub: temp | 0 | {{#expr: pos - 1 }} }} }} | {{#vardefine:firstName | {{#sub: temp | 0 | {{#expr: pos - 1 }} }} }} |
Revision as of 12:46, 20 October 2013
lastName, firstName
}}
-1