Difference between revisions of "Template:SortUsersBy"
From Complex Time
WikiWorks3 (talk | contribs) |
WikiWorks3 (talk | contribs) |
||
(26 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
− | < | + | <noinclude> |
+ | |||
+ | Sorts users list (; as separator), eg: | ||
+ | |||
+ | <pre><nowiki> | ||
+ | {{SortUsersBy | ||
+ | |AbdullahAlNayeem;AdamSmith;AfsalA;AishaDasgupta;AjapnwaAkamin | ||
+ | |Last name | ||
+ | |asc | ||
+ | }} | ||
+ | </nowiki></pre> | ||
+ | |||
+ | # Input string, list of user pages names separated by ; | ||
+ | # Property to sort by | ||
+ | # Sorting order (asc/desc) | ||
+ | |||
+ | The output format is a sorted string similar to the inputted one, eg: | ||
+ | |||
+ | <pre></pre> | ||
+ | |||
+ | </noinclude><includeonly>{{#replace:{{#ask: [[{{#arraymap:{{{1}}}|;|XXX|User:XXX|{{!}}{{!}}}}]] [[Name::+]] [[{{{2}}}::+]] |mainlabel= |sort={{{2}}} |order={{{3}}} |limit=100000 |searchlabel= |link=none |format=array |sep=; }}|User:|}}</includeonly> |
Latest revision as of 12:36, 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)
The output format is a sorted string similar to the inputted one, eg: