User:CzechOut/NameSort

{{#switch:{{#ifeq:{{#pos:{{urlencode:{{lc:{{PAGENAME}}}}}}|+}} }} }} }} }}
 * ={{DEFAULTSORT:{{PAGENAME}}}}
 * default={{#switch:{{#ifeq:{{#pos{{urlencode:{{lc:{{PAGENAME}}}}}}|%2A}}
 * ={{#switch:{{#ifeq:{{#pos{{urlencode:{{lc:{{PAGENAME}}}}}}|de+}}
 * default=go one word back and sort by that}}
 * ={{#switch:{{#ifeq:{{#pos{{urlencode:{{lc:{{PAGENAME}}}}}}|van+}}
 * default={{DEFAULTSORT:De}}
 * ={{#switch:{{#ifeq:{{#pos{{urlencode:{{lc:{{PAGENAME}}}}}}|von+}}
 * default={{DEFAULTSORT:Van}}
 * ={{DEFAULTSORT:{{#sub:{{PAGENAME}}|{{#rpos:{{PAGENAME}}| }}|7}}}}
 * default={{DEFAULTSORT:Von}}