Template:Tips: Difference between revisions
No edit summary |
No edit summary |
||
Line 6: | Line 6: | ||
$wgRandomInclude['count'] = 1; // default number of items | $wgRandomInclude['count'] = 1; // default number of items | ||
$wgRandomInclude['limit'] = 20; // default limit on runaway loop | $wgRandomInclude['limit'] = 20; // default limit on runaway loop | ||
$wgRandomInclude['seed'] = | $wgRandomInclude['seed'] = none; // default seed value | ||
$wgRandomInclude['hash'] = none; // default hash value | $wgRandomInclude['hash'] = none; // default hash value | ||
$wgRandomInclude['period'] = | $wgRandomInclude['period'] = 5; // default period as minute, hour, day, week or seconds (integer) | ||
$wgRandomInclude['mode'] = ?; // default mode is none or ordered depending on count | $wgRandomInclude['mode'] = ?; // default mode is none or ordered depending on count | ||
$wgRandomInclude['cache'] = 'enabled';// default cache strategy, set to 'disable' to do no caching | $wgRandomInclude['cache'] = 'enabled';// default cache strategy, set to 'disable' to do no caching |
Revision as of 21:47, 30 June 2014
Random quote of the day:
<random> $wgRandomInclude['pattern'] = '----'; // default pattern to use as boundary between items (use '----' to get previous behaviour) $wgRandomInclude['separator'] = ; // default separator rendered between items $wgRandomInclude['count'] = 1; // default number of items $wgRandomInclude['limit'] = 20; // default limit on runaway loop $wgRandomInclude['seed'] = none; // default seed value $wgRandomInclude['hash'] = none; // default hash value $wgRandomInclude['period'] = 5; // default period as minute, hour, day, week or seconds (integer) $wgRandomInclude['mode'] = ?; // default mode is none or ordered depending on count $wgRandomInclude['cache'] = 'enabled';// default cache strategy, set to 'disable' to do no caching $wgRandomInclude['format'] = 'none'; // default format string, set to 'none' to do no formatting of output Absence makes the heart grow fonder.
Actions speak louder than words.
An ounce of prevention is worth a pound of cure.
Wikitext can be used here. </random>