Difference between revisions of "Template:Comma swap"

From blackwiki
Jump to navigation Jump to search
imported>Rich Farmbrough
imported>Zackmann08
(substonly)
 
(6 intermediate revisions by 4 users not shown)
Line 1: Line 1:
 
{{<includeonly>safesubst:</includeonly>#invoke: string | replace
 
{{<includeonly>safesubst:</includeonly>#invoke: string | replace
 
| source  = {{{1<noinclude>|Smith Jones, John E.</noinclude>}}}
 
| source  = {{{1<noinclude>|Smith Jones, John E.</noinclude>}}}
| pattern = ^([^\r\n,]*),%s*(.*)$
+
| pattern = ^([^,]*),%s*(.*)$
 
| replace = %2 %1
 
| replace = %2 %1
 
| plain  = false
 
| plain  = false
 
}}<noinclude>
 
}}<noinclude>
 
+
{{Documentation|content=
{{Documentation}}
+
{{substonly}}
 
+
This template is used by {{tl|sord}} to transform <code>Last, First</code> to <code>First Last</code>.
</noinclude>
+
}}</noinclude>

Latest revision as of 22:30, 7 March 2019

John E. Smith Jones

Template documentation

Template:Substonly This template is used by {{sord}} to transform Last, First to First Last.