Difference between revisions of "Template:AutoDEFAULTSORT"
Jump to navigation
Jump to search
Morbus Iff (talk | contribs) |
Morbus Iff (talk | contribs) |
||
Line 1: | Line 1: | ||
<includeonly>{{#ifeq: {{#rmatch:{{PAGENAME}}|^(A{{!}}The)\s|1}} | 1 | | <includeonly>{{#ifeq: {{#rmatch:{{PAGENAME}}|^(A{{!}}The)\s|1}} | 1 | | ||
− | {{DEFAULTSORT:{{#if: {{namespace}} | {{NAMESPACE}}: }}{{#rreplace:{{PAGENAME}}|^(A{{!}}The)\s|}}}} | + | {{DEFAULTSORT:{{#if: {{namespace|}} | {{NAMESPACE}}: }}{{#rreplace:{{PAGENAME}}|^(A{{!}}The)\s|}}}} |
| }}</includeonly><noinclude> | | }}</includeonly><noinclude> | ||
==Usage== | ==Usage== |
Revision as of 16:08, 14 August 2010
Usage
Given "The Sinful Dwarf", return {{DEFAULTSORT:Sinful Dwarf}}
. Handles "A Fistful of Dollars" too.
{{AutoDEFAULTSORT}}