Difference between revisions of "Template:AutoDEFAULTSORT"

From Disobiki
Jump to navigation Jump to search
Line 4: Line 4:
 
==Usage==
 
==Usage==
  
Given "The Sinful Dwarf", return <code><nowiki>{{DEFAULTSORT:Sinful Dwarf}}</nowiki></code>. Handles "A Fistful of Dollars" too.
+
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>
 
<pre>
 
  {{AutoDEFAULTSORT}}
 
  {{AutoDEFAULTSORT}}
 +
{{AutoDEFAULTSORT|namespace=1}}
 
</pre>
 
</pre>
  
 
[[Category:Templates]]</noinclude>
 
[[Category:Templates]]</noinclude>

Revision as of 18:24, 14 August 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}}