Examples/Parameter: tablerow (example 1)
Appearance
< Examples
Example
[edit source]This lists pages in category Fruit examples, article titles automatically placed in the first column as a link (unless suppressed). It then include to include the {{Fruit-Infobox}} template's "grows" parameter value for each article, in the second column. The table statement's first argument sets the table styles, the rest set the remaining header text. Since the first column was automatically generated (not intentionally suppressed using - in the second table argument), the first argument of tablerow corresponds to, and formats, the second column; it sets the cell background style (green) and then uses %% to position the value after the formatting and results are limited to a count of 5.
- Code
{{#dpl:
|category = Fruit examples
|include = {Fruit-Infobox}:grows
|table = class="wikitable sortable",Page,The first parameter<br>value of template used
|tablerow = class="dpl-green-background"¦%%
|count = 5
}}
- Result
| Page | The first parameter value of template used |
|---|---|
| Apple | On trees |
| Grape | On vines |
| Orange | On trees |
| Plum | |
| Banana | On a tree-like plant |