Template:NameSortTest: Difference between revisions

From Tardis Wiki, the free Doctor Who reference
no edit summary
No edit summary
No edit summary
Line 5: Line 5:
     {{#switch:{{#rpos:{{PAGENAME}}| }}
     {{#switch:{{#rpos:{{PAGENAME}}| }}
     |-1 = {{PAGENAME}} <!--if there are no spaces, then just go by the PAGENAME-->
     |-1 = {{PAGENAME}} <!--if there are no spaces, then just go by the PAGENAME-->
     |#default ={{#sub:{{PAGENAME}}|{{#rpos:{{PAGENAME}}| }}|7}}}}<!-- if there are   
     |#default ={{#sub:{{PAGENAME}}|{{#rpos:{{PAGENAME}}| }}|7}}<!-- if there are   
                                                 spaces, then do something clever-->
                                                 spaces, then do something clever-->
}} <!--first switch close-->
}} <!-- first switch close-->
|#default = {{#explode:{{#sub:{{PAGENAME}}|0|{{#expr:{{#rpos:{{PAGENAME}}|(}}-1}}}}| |-1}}
|#default = {{#explode:{{#sub:{{PAGENAME}}|0|{{#expr:{{#rpos:{{PAGENAME}}|(}}-1}}}}| |-1}}


85,404

edits

Cookies help us deliver our services. By using our services, you agree to our use of cookies.