Template:NameSortTest: Difference between revisions

From Tardis Wiki, the free Doctor Who reference
(Created page with "<includeonly>{{DEFAULTSORT: {{#switch:#rpos:{{PAGENAME}}|)}} |-1= {{#switch:#rpos:{{PAGENAME}}| }} |-1 = {{PAGENAME}} <!--just go by the pagename if there are no space...")
 
No edit summary
Line 1: Line 1:
<includeonly>{{DEFAULTSORT:
<includeonly>
{{DEFAULTSORT:{{#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-->
    |#default =<!-- if there are spaces, then do something clever-->
}} <!--first switch close-->
 
 


{{#switch:#rpos:{{PAGENAME}}|)}}
|-1=
    {{#switch:#rpos:{{PAGENAME}}| }}
    |-1 = {{PAGENAME}} <!--just go by the pagename if there are no spaces in PAGENAME-->
    |#default = something clever
 
|#default = do something to truncate the disambig term and sort by the last word before the disambig term
|#default = do something to truncate the disambig term and sort by the last word before the disambig term
=
 
}} <!--second switch close-->
}} <!--DEFAULTSORT close-->
 
</includeonly><noinclude>[[Category:coding utility templates|Name]]{{documentation}}{{lock}}
</includeonly><noinclude>[[Category:coding utility templates|Name]]{{documentation}}{{lock}}


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| }}
{{#rpos:Mavic Chen| }}

Revision as of 22:59, 31 January 2012

Instructions for {{NameSortTest}}
LockedTab.png

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