Template:Last name/doc

Last name is a template that takes a full name and returns the family name or surname (in contrast to the given name).

Note that this template does not actually "know" if the name returned is the family name or surname; that is impossible to know for any given name since there are hundreds of thousands of family names/surnames in use around the world, many of which (depending on the culture) are also used as given names.

Usage
The template requires one unnamed parameter for the name, and the name order can be specified with a second unnamed parameter.