Template:NameSortTest: Difference between revisions

From Jenny Everywhere Wiki
No edit summary
No edit summary
Line 5: Line 5:
     |#default ={{#sub:{{PAGENAME}}|{{#rpos:{{PAGENAME}}| }}|7}}}}<!-- if there are spaces, then do something clever-->
     |#default ={{#sub:{{PAGENAME}}|{{#rpos:{{PAGENAME}}| }}|7}}}}<!-- if there are 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}}
Line 19: Line 17:
* John Smith (actor)  
* John Smith (actor)  
{{#explode:{{#sub:John Smith (actor)|0|{{#expr:{{#rpos:John Smith (actor)|(}}-1}}}}| |-1}}
{{#explode:{{#sub:John Smith (actor)|0|{{#expr:{{#rpos:John Smith (actor)|(}}-1}}}}| |-1}}
</noinclude>

Revision as of 15:41, 1 February 2012

Template:Lock

This is a testing ground for expanding the powers of {{NameSort}}. It is in no way complete. Please do not attempt to edit it.

  • John Smith (actor)

Smith