Template:Swap/doc
File:Edit-copy green.svg | This is a documentation subpage for Template:Swap. It contains usage information, categories and other content that is not part of the original template page. |
File:Lua-logo-nolabel.svg | This template uses Lua: |
This template swaps the first word of a phrase to the end. If there was a comma after the first word, it is removed, as is often necessary when swapping last-name-first, into first-name-first order in lists of names.
Usage
{{swap|AA BB}}
→ BB AA{{swap|Doe, Mary J.}}
→ Mary J. Doe