Commit graph

89 commits

Author SHA1 Message Date
Antoine Musso
b875dcf1d3 comments end at column 80 2006-07-05 18:25:39 +00:00
Tim Starling
2113a11b0b Revert addToArray() change, add isCaseSensitive() 2006-07-03 08:57:29 +00:00
Tim Starling
3b628d1173 Made MagicWord::addToArray() support case-insensitive arrays 2006-07-03 03:29:32 +00:00
Tim Starling
e1c587ba06 getSynonyms() 2006-07-02 17:47:24 +00:00
Niklas Laxström
165955b292 * Added formatnum magic word 2006-06-29 13:37:06 +00:00
Rob Church
907125da5c Introduce {{NUMBEROFADMINS}} magic word 2006-06-16 13:58:42 +00:00
Magnus Manske
7f2155fa9e Bug 6031 (feature request for __NOGALLERY__ on category pages) fixed 2006-06-13 11:37:09 +00:00
Rob Church
6a5d22374a (bug 5932) Introduce {{PAGESINNAMESPACE}} magic word 2006-06-12 12:38:41 +00:00
Antoine Musso
5a5cc201b1 having some fun with doxygen error log 2006-06-10 18:28:50 +00:00
Rob Church
9b5ddbb646 (bug 5945) Introduce {{CONTENTLANGUAGE}} magic word 2006-06-08 13:30:35 +00:00
Tim Starling
02547dac72 Removed most exit() calls from the MediaWiki core, by replacing them with either a throw or by classic error checking. OutputPage::fatalError() and similar functions are deprecated, use either OutputPage::showFatalError() to return control or throw new FatalError() to relinquish it. Backwards compatibility of all interfaces has been maintained, thus extensions should continue to work and can be ported at a later date. 2006-06-07 06:40:24 +00:00
Rob Church
38f609789b (bug 3926) Introduce {{#language:}} magic word 2006-05-31 01:41:36 +00:00
Rob Church
d38df9ce99 (bug 6099) Introduce {{DIRECTIONMARK}} magic word (with {{DIRMARK}} as an alias) 2006-05-28 21:30:43 +00:00
Rob Church
b95074f87c Add {{CURRENTTIMESTAMP}} magic word 2006-05-24 15:55:01 +00:00
Brion Vibber
54005e7a9d * Reordered wiki table handling and __TOC__ extraction in the parser to better handle some overlapping tag cases.
* Only the first __TOC__ is now turned into a TOC.

The table change doesn't disrupt either the parser tests or the en.wikipedia main page. Hopefully it won't break other real content...
2006-05-23 07:19:01 +00:00
Rob Church
e7f5589bfe (bug 839) Add URLENCODE magic word 2006-05-17 15:36:05 +00:00
Rob Church
310e59e559 (bug 5845) Introduce BASEPAGENAME and BASEPAGENAMEE magic words 2006-05-14 03:51:36 +00:00
Rob Church
1cea04c788 * Introduce NUMBEROFPAGES magic word
* (bug 5833) Introduce CURRENTVERSION magic word
2006-05-13 17:30:42 +00:00
Antoine Musso
7ebdb6de89 Revert to r14165 . Did too many changes, didnt even run parserTests (i am bad) 2006-05-11 22:40:38 +00:00
Antoine Musso
acb150a105 a round of static statements 2006-05-11 19:39:50 +00:00
Antoine Musso
bc14eb8045 Replacing var keyword with private / public as we now require PHP5. 2006-05-11 19:10:41 +00:00
Rob Church
cc001cf787 (bug 4876) Add __NEWSECTIONLINK__ magic word to force the "new section" link/tab to show up on specific pages on demand 2006-05-01 20:35:08 +00:00
Rob Church
35670dacb9 Add "raw suffix" magic word for some magic words, e.g. {{NUMBEROFUSERS|R}} will produce a count minus formatting 2006-04-30 18:02:03 +00:00
Rob Church
b99de7897e (bug 5741) Introduce {{NUMBEROFUSERS}} magic word 2006-04-29 01:58:39 +00:00
Rob Church
3e64af3615 Add TALKSPACE, SUBJECTSPACE, TALKPAGENAME, SUBJECTPAGENAME (and encoded forms for all) magic words 2006-04-12 15:38:17 +00:00
Magnus Manske
e2106c4036 New DISPLAYTITLE magic template; decativated by default so not to scare Brion 2006-04-11 10:16:27 +00:00
Rob Church
9d1d87dbc0 (bug 5167) Add SUBPAGENAMEE 2006-04-02 16:19:29 +00:00
Rob Church
3cbd2f2916 (bug 5167) Add {{SUBPAGENAME}} variable 2006-03-04 23:29:46 +00:00
Tim Starling
61bc10203f Various improvements to interwiki transclusion. Introduced {{raw:..}}, to force raw transclusion when subst: isn't in use. Referer header set in wfGetHTTP(), this could be for weak (honour-bound) detection of the external site, for statistics or license notices. 2006-02-01 04:41:53 +00:00
Ævar Arnfjörð Bjarmason
2ffee5ab5b * Add a getRegexCase() accessor for getting i or nothing depending on the
case-insensitiveness of the thing, only needed with getBaseRegex() since that
  won't include it automatically..
2006-01-08 05:35:03 +00:00
Ævar Arnfjörð Bjarmason
6e7ab16d57 * Fixed bug, $this->mBaseRegex would contain an invalid regular expression if
the supplied magic word synonyms contained /, of course none of them do, but
  hey;)
2006-01-08 04:25:43 +00:00
Magnus Manske
11eca563ed Fix for bug 2522 2006-01-07 22:33:54 +00:00
Ævar Arnfjörð Bjarmason
a26d5a49d7 * s~\t+$~~ 2006-01-07 13:31:29 +00:00
Ævar Arnfjörð Bjarmason
7bbe971aec * s~ +$~~ 2006-01-07 13:09:30 +00:00
Ævar Arnfjörð Bjarmason
d8e90514ab * Documentation: @private => @access private 2006-01-07 12:48:44 +00:00
Brion Vibber
41701080d2 * (bug 4453) fix for __TOC__ dollar-number breakage 2006-01-04 00:27:48 +00:00
Antoine Musso
b7db9837bf some useless calls / unitialized $matches arrays 2005-12-04 21:15:04 +00:00
Ævar Arnfjörð Bjarmason
7d08ec49e1 * Avoid fatal errors during installation by not calling wfRunHooks() during it 2005-11-25 23:17:39 +00:00
Ævar Arnfjörð Bjarmason
c67565e3df * (bug 3420) Allow extensions to specify new parser variables ({{VAR}}) 2005-11-25 06:53:20 +00:00
Ævar Arnfjörð Bjarmason
3397275259 * (bug 3831) {{NAMESPACEE}} variable
* (bug 3997) {{FULLPAGENAME}} and {{FULLPAGENAMEE}} variables
* Restructured the magic word definitions to make it easier to add new ones
2005-11-21 17:50:47 +00:00
Ævar Arnfjörð Bjarmason
6645656730 * {{lc:}} magic word
* {{uc:}} magic word
2005-10-22 19:57:38 +00:00
Ævar Arnfjörð Bjarmason
f1b567058f * {{lcfirst:}} magic word
* {{ucfirst:}} magic word
2005-10-22 18:18:08 +00:00
Tim Starling
18657a50e4 added {{fullurl:}} and {{fullurle:}} functions 2005-09-23 12:10:39 +00:00
Ævar Arnfjörð Bjarmason
c62b79d3e3 * Pluralform => Plural 2005-09-06 17:02:19 +00:00
Alexander Sigachov
b7b513f611 New magic word: PLURALFORM (like GRAMMAR) 2005-09-05 19:22:09 +00:00
Rowan Collins
f19c94aa72 Fix manual thumbnail syntax to use a proper "MagicWord" (MAG_IMG_MANUALTHUMB) rather than a weird hack. 2005-08-20 13:27:21 +00:00
Ævar Arnfjörð Bjarmason
76d3a0b5f3 * A new magic word, {{NUMBEROFFILES}}, returns the number of rows in the
image table
2005-06-26 03:23:24 +00:00
Ævar Arnfjörð Bjarmason
9048d60b57 * Added a new magic word, {{SERVERNAME}}, that returns $wgServerName, useful
for things like bug 1825
2005-06-24 02:54:52 +00:00
Ævar Arnfjörð Bjarmason
0ecd7aa835 * MAG_PATH renamed to MAG_SCRIPTPATH 2005-06-20 11:06:33 +00:00
Ævar Arnfjörð Bjarmason
97cf74d1c9 * A new magic word, {{PATH}}, returns $wgScriptPath 2005-06-19 16:09:00 +00:00