Examples/Parameter: format (example 3)
Appearance
< Examples
Example
[edit source]
Using debug suppresses debug output (and should always go at the top). This lists pages in category Number examples that linksto the article named Two. The results are limited to a count of 5, and the format syntax is used to create a table.
format=Startall,Start,End,Endall where Startall, Start, End and Endall are wiki tags used to separate the list items:
Startallbefore all — e.g., may specify wikitext to begin a table (including headers).Startbefore each — e.g., may specify wikitext to begin row, its cell and cell content.Endafter each — e.g., may specify content to end a cell or row.Endallafter all — e.g., may specify content to end a table.
|debug = 5 can be added to view any resultant wikitext given, and should always be put at the top of the statement, a value of 0 disables it.
- Code
{{#dpl:
|debug = 0
|category = Number examples
|linksto = Two
|count = 5
|format = {¦ class="wikitable" ¶!Pages found,¶¦-¶¦[[%PAGE%]],,¶¦}
}}
- Result
| Pages found |
|---|
| Five |
| One |