Doctor Who Cuttings Archive

Difference between revisions of "Template:InvertName"

From The Doctor Who Cuttings Archive
Jump to navigationJump to search
Line 1: Line 1:
 
{{#vardefine:temp | {{{author}}} }}
 
{{#vardefine:temp | {{{author}}} }}
{{#var:temp}}
 
 
{{#vardefine:pos | {{#rpos:temp| }} }}
 
{{#vardefine:pos | {{#rpos:temp| }} }}
 
{{#if:  
 
{{#if:  
Line 7: Line 6:
 
       {{#vardefine:firstName | {{#sub: temp | 0 | {{#expr: pos - 1 }} }} }}
 
       {{#vardefine:firstName | {{#sub: temp | 0 | {{#expr: pos - 1 }} }} }}
 
       lastName, firstName
 
       lastName, firstName
     | {{{author}}}
+
     | temp
 
   }}
 
   }}
 
}}
 
}}

Revision as of 12:44, 20 October 2013