Examples/Parameter: tablesortcol (example 1): Difference between revisions

From DynamicPageList3 Manual
Content added Content deleted
imported>FrozenPlum
(Created page with "<noinclude>{{note|Please '''do not edit''' this page unless you're wanting to edit the manual itself, it is an example included in the manual.|error}}</noinclude><!-- This is the example preloaded for testing, press "Show Preview" to see the example working (at the bottom of the page). If you save this page, it saves as a new section at the bottom of your '''User:Username/Sandbox''' --> ==Example== This selects Category:Fruit examples articles, with page in the fi...")
 
imported>FrozenPlum
 
(One intermediate revision by the same user not shown)
Line 30: Line 30:
}}
}}
<noinclude>
<noinclude>
[[Category:Controlling output format (examples)‎]]
[[Category:Generating tabular output]]
[[Category:Uses category parameter]]
[[Category:Uses category parameter]]
[[Category:Uses include parameter]]
[[Category:Uses include parameter]]

Latest revision as of 23:54, 31 March 2023

Please do not edit this page unless you're wanting to edit the manual itself, it is an example included in the manual.

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 }}