Jump to content
This wiki has been automatically closed because there have been no edits or log actions made within the last 60 days. If you are a user (who is not the bureaucrat) that wishes for this wiki to be reopened, please request that at Requests for reopening wikis. If this wiki is not reopened within 6 months it may be deleted. Note: If you are a bureaucrat on this wiki, you can go to Special:ManageWiki and uncheck the "Closed" box to reopen it.

Examples/Parameter: debug (example 1): Difference between revisions

m
imported>FrozenPlum
(Add debug example)
 
imported>FrozenPlum
 
(3 intermediate revisions by the same user not shown)
Line 6:
==Example==
 
This statement sets the DPL3 <code>debug</code> output to <code>''5''</code>, which outputs the full wikitext result of the query after listing the extension itself. The queryselectsquery selects one article from [[:Category:Fruit examples]], puts the title in the first column automatically (default behavior), then includes the "[[Template:Fruit-Infobox|Fruit-Infobox]]" template's "grows" parameter value, in the second column. The <code>table</code> statement sets the table styles and header text. The first argument of <code>tablerow</code> corresponds to, and formats, the second column; settingcontent theto cellbold, background style (green) and then usesusing <code>%%</code> to position the value ''after''precisely within the formatting.
 
<pre>
Line 20:
 
==Result==
'''Debug 5 output:'''
{{#dpl:
|debug=5
Line 29:
|count = 1
}}
'''WithoutOutput without debug (for comparison purposes):'''
{{#dpl:
|category = Fruit examples
Anonymous user
Cookies help us deliver our services. By using our services, you agree to our use of cookies.