Template:NameSortTest: Difference between revisions

From Jenny Everywhere Wiki
No edit summary
No edit summary
Line 3: Line 3:
|-1= <!--if there are no close parentheses, then look for spaces--> {{#switch:{{#rpos:{{PAGENAME}}| }}
|-1= <!--if there are no close parentheses, then look for spaces--> {{#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 =<!-- 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-->


Line 16: Line 16:


This is a testing ground for expanding the powers of {{tl|NameSort}}.  It is in no way complete.  Please do not attempt to edit it.   
This is a testing ground for expanding the powers of {{tl|NameSort}}.  It is in no way complete.  Please do not attempt to edit it.   
{{#rpos:Mavic Chen| }}
 
* John Smith (actor)
{{#expr:{{#rpos|John Smith (actor)|{}}-1}}

Revision as of 23:06, 31 January 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)

Expression error: Unrecognized punctuation character "{".