Difference between revisions of "Template:SortUsersBy"
From Complex Time
WikiWorks3 (talk | contribs) |
WikiWorks3 (talk | contribs) |
||
Line 4: | Line 4: | ||
<pre><nowiki> | <pre><nowiki> | ||
− | {{ | + | {{SortUsersBy |
|AbdullahAlNayeem;AdamSmith;AfsalA;AishaDasgupta;AjapnwaAkamin | |AbdullahAlNayeem;AdamSmith;AfsalA;AishaDasgupta;AjapnwaAkamin | ||
|Last name | |Last name | ||
Line 10: | Line 10: | ||
}} | }} | ||
</nowiki></pre> | </nowiki></pre> | ||
+ | |||
+ | # Input string, list of user pages names separated by ; | ||
+ | # Property to sort by | ||
+ | # Sorting order (asc/desc) | ||
</noinclude><includeonly>{{#ask: [[{{#arraymap:{{{1}}}|;|XXX|User:XXX|{{!}}{{!}}}}]] [[Name::+]] |mainlabel=- |?{{{2}}}= |limit=30 |sort={{{2}}} |order={{{3}}} |limit=100000 |searchlabel= |link=none |format=array |sep=; }}</includeonly> | </noinclude><includeonly>{{#ask: [[{{#arraymap:{{{1}}}|;|XXX|User:XXX|{{!}}{{!}}}}]] [[Name::+]] |mainlabel=- |?{{{2}}}= |limit=30 |sort={{{2}}} |order={{{3}}} |limit=100000 |searchlabel= |link=none |format=array |sep=; }}</includeonly> |
Revision as of 11:39, November 1, 2019
Sorts users list (; as separator), eg:
{{SortUsersBy |AbdullahAlNayeem;AdamSmith;AfsalA;AishaDasgupta;AjapnwaAkamin |Last name |asc }}
- Input string, list of user pages names separated by ;
- Property to sort by
- Sorting order (asc/desc)