Difference between revisions of "Template:AutoDEFAULTSORT"

From Disobiki
Jump to navigation Jump to search
(qSjfBooXInotfqhjUJA)
m (Reverted edits by 211.101.61.231 (talk) to last revision by Morbus Iff)
Line 1: Line 1:
v7boeM  <a href="http://foyjabsaitym.com/">foyjabsaitym</a>, [url=http://yotzagdjbdgj.com/]yotzagdjbdgj[/url], [link=http://klfytdmjnhzm.com/]klfytdmjnhzm[/link], http://ahdqltztbigd.com/
+
<includeonly>{{#ifeq: {{#rmatch:{{PAGENAME}}|^(A{{!}}The)\s|1}} | 1 |
 +
  {{DEFAULTSORT:{{#if: {{{namespace|}}} | {{NAMESPACE}}: }}{{#rreplace:{{PAGENAME}}|^(A{{!}}The)\s|}}}}
 +
| }}</includeonly><noinclude>
 +
==Usage==
 +
 
 +
Given "The Sinful Dwarf", return <code><nowiki>{{DEFAULTSORT:Sinful Dwarf}}</nowiki></code>. Handles "A Fistful of Dollars" too.<br />If <code>namespace=1</code> is passed, include the namespace (necessary for proper sorting of File: uploads, for example).
 +
 
 +
<pre>
 +
{{AutoDEFAULTSORT}}
 +
{{AutoDEFAULTSORT|namespace=1}}
 +
</pre>
 +
 
 +
[[Category:Templates]]</noinclude>

Revision as of 20:51, 24 September 2010

Usage

Given "The Sinful Dwarf", return {{DEFAULTSORT:Sinful Dwarf}}. Handles "A Fistful of Dollars" too.
If namespace=1 is passed, include the namespace (necessary for proper sorting of File: uploads, for example).

 {{AutoDEFAULTSORT}}
 {{AutoDEFAULTSORT|namespace=1}}