Anonymous user
Controlling output order: Difference between revisions
m
Swap templates that use DPL3 (uses vars and loops) to Template:DPL
imported>FrozenPlum m (Not sure why the TOC was missing) |
imported>FrozenPlum m (Swap templates that use DPL3 (uses vars and loops) to Template:DPL) |
||
Line 4:
DPL3 allows you to define the sort order of its output, as is explained below.
In some cases, this is not sufficient, however. Think of the following example: You create a list of pages which use a certain template. You want to show the value of the first parameter each page uses when calling that template. This can easily be done with the {{
But there is another way: Create a ''sortable wiki table'' (using the {{
Using a handful of javascript lines, you can sort a wikitable ''on pageLoad'' by any column. You must insert that javascript code AT THE END of your page :
sortables_init();
Line 19:
ts_resortTable(lnk);
Prior to version 1.16 of MediaWiki, ''wikibits.js'' was
==ordermethod==
Line 105:
defines the collating sequence for ordering.
Note: A very special (proprietory) function can be used to sort card suit symbols according to the rank of suits that is used in the card game of bridge (this cannot be done by standard collating sequences). To trigger this function, set <code>ordercollation=bridge</code>.
Example:
Line 113:
You may want to try <code>latin1_swedish_ci</code> or other collation mapping table names as well.
If you use a name for the first time, you should make sure that it is
For case insensitivity during the ''selection'' of articles, see {{
==References==
|