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