Examples/Parameter: tablesortcol (example 1): Difference between revisions
< Examples
imported>FrozenPlum (fix my wrong category) |
imported>FrozenPlum m (FrozenPlum moved page Controlling output format/Parameter: tablesortcol (example 1) to Examples/Parameter: tablesortcol (example 1): Simplifying how things are structured) |
(No difference)
|
Latest revision as of 23:54, 31 March 2023
Example
This selects Category:Fruit examples articles, with page in the first column automatically. It includes the "Fruit-Infobox" "grows" parameter value. Styles and headers are then set, the grows value placed in the second column with %%
, and the second column set to sort by.
{{#dpl: |category = Fruit examples |include = {Fruit-Infobox}:grows |table = class="wikitable sortable",Page,The first parameter<br>value of template used |tablerow = %% |tablesortcol = 2 |count = 5 }}
Result
{{#dpl:
|category = Fruit examples
|include = {Fruit-Infobox}:grows
|table = class="wikitable sortable",Page,The first parameter
value of template used
|tablerow = style="background:#eeffee;"¦%%
|tablesortcol = 2
|count = 5
}}