Examples/Parameter: format (example 2)
< Examples
Example
Below is an example of how to use the variable
to set the font size. This will list articles in Category:Fruit examples, (in descending order (by title), limited to a count of four, and each result on a new line with font size set to the current article sequence number (starting from 1). The result is that the font size gets larger with each item listed.
%NR%
<dpl> category = Fruit examples ordermethod = title order = descending count = 4 format = ,\n<font size="%NR%">'''[[%PAGE%]]'''</font>,<br/>, </dpl>
Result
<dpl>
category = Fruit examples count = 4 ordermethod = title order = descending format = ,\n%PAGE%,
,
</dpl>