Examples/Parameter: table (example 3)
Appearance
< Examples
Example
[edit source]This lists pages in category Fruit examples and includes the contents of the {{Fruit-Infobox.templatevalues}} surrogate formatting template. The table parameter sets the tale styles and headers, and since it does not include a - in second place to suppress the automatically linked page titles in first place, it formats only the second and third columns of results.
If - was in second position for table, the first column would drop off and the page name would need to be added to table statement or surrogate template, its value could be called or used like a normal parameter {{{%PAGE%}}} using it variable name.
- Code
{{#dpl:
|category = Fruit examples
|include = {Fruit-Infobox}.templatevalues
|table = class="wikitable sortable",Page,Grows,Image
|count = 2
}}
- Result
| Page | Grows | Image |
|---|---|---|
| Apple | On trees | |
| Grape | On vines |