User:CzechOut/NameSort

This page is a whitespace for improving NameSort %2A ( %2C } {{#switch:{{#ifeq:{{#pos:{{urlencode:{{lc:{{PAGENAME}}}}}}|+}}| | (looks for space, finds nothing, so:) start at front of word and alpha otherwise


 * do another ifeq to find (

if it finds the pareentheses back up to the previous space and alphabetize

otherwise (if it doesn't find the parenth) then

default }

{{#switch:{{#pos:{{PAGENAME}}|)}}

{{#if:{{#expr:{{#pos:{{PAGENAME}}|)|}} > 0| take the sorting from the word before the parenthetical


 * otherwise

}}


 * default={{DEFAULTSORT:{{#sub:{{PAGENAME}}|{{#rpos:{{PAGENAME}}| }}|7}}}} {{documentation}}{{lock}}