Jump to content

Examples/Parameter: debug (example 1)

From DynamicPageList3 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]

This statement sets the DPL3 debug output to 5, which outputs the full wikitext result of the query after listing the extension itself. The query selects one article from Category:Fruit examples, puts the title in the first column automatically (default behavior), then includes the "Fruit-Infobox" template's "grows" parameter value, in the second column. The table statement sets the table styles and header text. The first argument of tablerow corresponds to, and formats the second column content to bold, using %% to position the value precisely within the formatting.

{{#dpl:
|debug    = 5
|category = Fruit examples
|include  = {Fruit-Infobox}:grows
|table    = class="wikitable sortable",Page,The "grows"<br>parameter value
|tablerow = <b>%%</b>
|count    = 1
}}

Result

[edit source]

Debug 5 output:

{|class="wikitable sortable"
!Page
!The "grows"<br>parameter value
|-
|[[Apple|Apple]]
|<b>On trees</b>
|}

Output without debug (for comparison):

Page The "grows"
parameter value
Apple On trees
Cookies help us deliver our services. By using our services, you agree to our use of cookies.