Commit graph

628 commits

Author SHA1 Message Date
Tim Starling bd6379b221 Copyright information. Debian wants to package it apparently. 2006-10-12 01:04:40 +00:00
Tim Starling 15a05be55f out of date 2006-09-30 11:10:08 +00:00
Tim Starling beddfd5389 Added a bundled copy of sprintfDate() so that #time works with 1.7. 2006-09-25 06:02:33 +00:00
Brion Vibber 36be4ee1b6 Fix for bug 7162, doubling of references.
The clearState callback function needs to return true so that Cite's callback can also be called.
This bug was triggered by the use of a second parse run in the spam blacklist to accurate extract links; failure to clear state would leave bogus stuff in the parser cache.
Requires a fix to Hook.php in r16282 so that the two hooks don't destroy each other when run.
2006-08-30 10:59:47 +00:00
Rotem Liss a78f6f3431 Hebrew localisation for #time. 2006-08-27 16:42:26 +00:00
Tim Starling da06713e7a Clear the #time character count before each parse. Don't want to break dumpHTML. 2006-08-27 13:39:52 +00:00
Tim Starling f1eac24da7 Added #time 2006-08-25 14:27:41 +00:00
Tim Starling 845c6c71fc Got rid of the MagicWord indexing constants (MAG_xxx), replaced them by string indexing, like messages. The associated change to the extensions, i.e. removing the MagicWordMagicWords hook and using string instead of integer indices, is in fact compatible with MW 1.6 and 1.7, which tells you something about the utility of the hook function. 2006-07-14 15:39:23 +00:00
Jimmy Collins d6b7f6f759 update for XHTML conformance 2006-07-07 18:01:48 +00:00
Rotem Liss 053355d882 ParserFunctions are now using magic words; unlike the previous change, localized forms are now available only in localized wikis (e.g., Hebrew forms are not available in en.wp), though English form is available in every wiki. 2006-06-25 21:29:55 +00:00
Rob Church 3f084fb5ea Revert back to working version 2006-06-24 22:12:31 +00:00
Rotem Liss 688ae96bfb Typos. 2006-06-24 19:27:04 +00:00
Rotem Liss 95cb5cf3ae Default case of 'switch' is now magic word, too. 2006-06-24 16:52:06 +00:00
Rotem Liss 3ee5bada96 * ParserFunctions is now using magic words, English and Hebrew forms are available.
* Additional translations may be added, please specify the language code in a hidden comment.
2006-06-24 15:40:53 +00:00
Rob Church bd1987ce0b * (bug 6078) Add #ifexist function
* Add extension credits so it's easier to spot when ParserFunctions isn't working 'cause it's not installed
2006-05-25 08:07:47 +00:00
Greg Sabino Mullane 731f78b05e Trim the value passed to switchHook. 2006-05-25 01:18:10 +00:00
Tim Starling c54692bbb6 "#default" case for #switch, as an alternate to missing "=". This allows literal = signs in the default case. 2006-04-20 12:01:07 +00:00
Tim Starling 39719a2948 Added switch, removed rand, removed now unnecessary trim() calls. 2006-04-18 02:53:34 +00:00
Tim Starling 219de98988 Static copy of the documentation, based on the meta page. 2006-04-14 08:39:12 +00:00
Tim Starling 6ffad7c906 Added #ifexpr, changed semantics of #if to make it strictly if-defined -- zero is no longer considered false. 2006-04-14 04:14:10 +00:00
Tim Starling be7dcaba5d Trim whitespace from #if return text, to mimic the behaviour of template parameters 2006-04-12 14:06:57 +00:00
Tim Starling 3092bf1db5 Proper handling of division by zero 2006-04-12 04:00:46 +00:00
Tim Starling 4265df9c9a Yay! Synonyms for all! 2006-04-07 00:23:46 +00:00
Tim Starling c592fdf295 fixed stack check 2006-04-06 08:46:34 +00:00
Tim Starling d29b8a242a intval 2006-04-06 08:30:57 +00:00
Tim Starling a49014ff5a * Better error reporting
* Inequality operators
* rand function
2006-04-06 08:14:56 +00:00
Tim Starling c7814d59ff Simplified if by introducing ifeq. People mostly use {{qif}} to check if an optional parameter has been passed, and to, say, create a table row if it has. Those applications shouldn't have to worry about errant equals signs. 2006-04-05 14:36:55 +00:00
Tim Starling 6d93dfe6b8 Mathematical expressions and conditional constructs implemented as parser functions. Documentation to follow. 2006-04-05 13:22:51 +00:00