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.

Other parameters: Difference between revisions

Add example
imported>FrozenPlum
(Fixes and edits)
imported>FrozenPlum
(Add example)
Line 13:
 
<code>debug=<i>n</i></code>, where ''n'' is one of:
* <code>''0''</code> – Silent mode, shows nothing.
* <code>''1''</code> – Quiet mode, shows (fatal) errors.
* <code>''2''</code> – Default mode, like 1 + shows warnings; – '''(default)'''.
* <code>''3''</code> – Verbose mode, like 2.
* <code>''4''</code> – Dump raw SQL Query; only if ''$wgDebugDumpSql'' is set to true.
* <code>''5''</code> – Show wiki text output from DPL3 instead of parsed wiki text.
Line 24:
 
 
'''Example:'''<br><br><!-- transclude example from subpage-->{{#lsth:Examples/Module: debug (example 1)|Example}}
'''Example:'''
{{ViewTest|Examples|Module: debug (example 1)}}
 
<pre><nowiki>
{{#dpl:
| namespace = Media
| debug = 0
| namespace = Special
}}
</nowiki></pre>
 
This outputs the error for the first namespace: ''Media'' is not a valid namespace value (pseudo-namespace). Assuming the default debug value (2) hasn't been changed, a warning is also displayed: <code>debug=1</code> is not input first (before <code>namespace=Media</code>). So, it did not apply to <code>namespace=Media</code> but only to what's after. Indeed, the warning for the second namespace (''Special'') is not given, since <code>debug=0</code> changed debug settings to silent mode.
 
DPL3 debug messages are translatable in ''DynamicPageList2.i18n.php''.
 
'''ExampleNotes:'''
<code>debug=1</code> suppresses warning messages (e.g., if the result set of a DPL3 query is empty). As an alternative, the <code>{{DPL|suppresserrors}}=</code> statement can be used.
* DPL3 debug messages are translatable in ''DynamicPageList2.i18n.php''.
* <code>debug=1</code> suppresses warning messages (e.g., if the result set of a DPL3 query is empty). As an alternative, the <code>{{DPL|suppresserrors}}=</code> statement can be used.
 
 
Line 52 ⟶ 44:
<code>allowcachedresults=''value''</code> where ''value'' is one of:
* <code>''true''</code> – ('''default''', need not be set)
* <code>''false''</code> – prevent caching
 
 
All queries are cached by default '''to reduce server load''', as generally articles do not change often enough to require updating every page load. If immediate updates are required every page load, then set this parameter to false. Cache period is handled by the <code>{{DPL|cacheperiod}}</code> parameter.
 
 
Line 67 ⟶ 59:
'''Syntax:'''
 
<code>cacheperiod=''number of seconds''</code> – ('''default''' is 3600, meaning 1 hour).
 
 
Anonymous user
Cookies help us deliver our services. By using our services, you agree to our use of cookies.