Jump to content

Examples/Parameter: format (example 3)

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

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:
  • Startall before all — e.g., may specify wikitext to begin a table (including headers).
  • Start before each — e.g., may specify wikitext to begin row, its cell and cell content.
  • End after each — e.g., may specify content to end a cell or row.
  • Endall after all — e.g., may specify content to end a table.
Note: |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
Cookies help us deliver our services. By using our services, you agree to our use of cookies.