Commit graph

46 commits

Author SHA1 Message Date
Æ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
Ævar Arnfjörð Bjarmason
fe8625db80 * Restored the {{msg:}} magic word, except now it's the wikisyntax
representation of wfMsgForContent() rather than a shorthand for {{Template:}}
2005-05-23 23:24:00 +00:00
Brion Vibber
fe2ac1409b Revert __LCFIRST__ patch. Title objects should be treated as value objects;
any Title object for a given title should always act the same. Poking around
with the guts of one to change some of its return values is not a good idea.
2005-05-15 20:42:11 +00:00
Ævar Arnfjörð Bjarmason
71f1c34ce4 * (bug 2118) Added a __LCFIRST__ magic word for forcing the first character of
a pages heading to render in its lower case form on output, however the page
  is still saved under its upper case name in the database so this is purely an
  aesthetic change (unlike setting $wgCapitalLinks to false).
2005-05-15 17:21:58 +00:00
Ævar Arnfjörð Bjarmason
a7054a9cd8 * Deprecated the {{msg:}} syntax for inclusion from the Template namespace. 2005-05-13 11:11:30 +00:00
Brion Vibber
89971cdee6 * (bug 688) MagicWord.php uses incorrect regex and logic for "$1" variable capturing
Fixes cyrillic 'pks' form for image widths (eg 150pks instead of 150px) in
Russian localization.
2005-05-04 07:49:42 +00:00
Ævar Arnfjörð Bjarmason
b84ec26855 * Documented
* Indented
2005-04-28 20:46:11 +00:00
Antoine Musso
4caf76c1ea Implement #1739 : new magickeyword REVISIONID. Give the diff / latest revision id for the article being view. Useful for proper citation.
New fetchedRevId method in Article::
2005-03-26 18:24:32 +00:00
Ævar Arnfjörð Bjarmason
b04b29509d * (bug 1662) Implemented a new magic word, {{CURRENTMONTHABBREV}} which returns
the abbreviation of the current month, cleaned up the sourcecode while I was
  at it to always display CURRENTMONTH, CURRENTMONTHNAME, CURRENTMONTHNAMEGEN
  and CURRENTMONTHABBREV in that order that's mnemonics for you.
2005-03-24 03:00:06 +00:00
Zheng Zhu
e6085b2c76 Merged in my changes from REL1_4 2005-01-22 03:22:16 +00:00
Antoine Musso
f2baa43923 Implement #1206
Patch by M7 "computerville (at) gmail (tod) com"
FORPORT from 1_4
2005-01-11 01:30:13 +00:00
Zheng Zhu
c7c31c6fec Added magic word MAG_NOTITLECONVERT to indicate that the title of the page do not need to be converted. Useful in zh: 2004-12-29 02:47:33 +00:00
Jens Frank
87bae60403 Fix bounding box feature of thumbnails (e.g. |200x200px|) 2004-10-11 19:02:56 +00:00
Zheng Zhu
f84493db51 First batch of files modified to switch wgLang to wgContLang. 2004-09-24 13:14:52 +00:00
Jens Frank
45134645f8 Parentheses needed for this regex for correct treatment of alternatives.
^(#REDIRECT|#UMLEITUNG) instead of ^#REDIRECT|#UMLEITUNG, where the anchor would only be used for #REDIRECT
Bug reported by borislav for Bulgarian deletion log page
2004-09-06 20:36:35 +00:00
Antoine Musso
ba2afcd9fa Split files and classes in different packages for phpdocumentor. I probably changed some double quotes to single and used function foo () { shema 2004-09-03 23:00:01 +00:00
Antoine Musso
90155b8a97 Changing comments layout preparing for generated documentation with Phpdocumentor 2004-09-02 23:28:24 +00:00
Tim Starling
0f9c5b24fd Abstracted site name in LanguageFi.php. This required the implementation of general handling for inflected languages, in particular the {{grammar:}} tag 2004-08-27 14:55:41 +00:00
Antoine Musso
3d60242fb5 massive double to single quotes conversion. I have not noticed any bug after a lot of testing 2004-08-22 17:24:50 +00:00
Antoine Musso
6291a4774d implement a new magic word: PAGENAMEE wich return the escaped title. Implement sourceforge feature requests 999044 and 997771 2004-08-12 13:32:04 +00:00
Tim Starling
ac549401d4 * Support for table name prefixes throughout the code. No support yet for converting static SQL, which also means no installation. But it has been tested by creating the tables in the ordinary way and then renaming them
* DB_WRITE now called DB_MASTER, DB_READ now called DB_SLAVE
* Converted to use SQL wrapper functions instead of direct SQL in various places
* Experimental method for preserving the chronological order of events when slave servers are used. Untested.
* Fixes to the new post-parse existence test feature
* Some.. other stuff
2004-07-18 08:48:43 +00:00
Gabriel Wicke
944b872646 New magic word __TOC__ that inserts the toc at the place it is found
Implies __FORCETOC__
2004-06-29 23:59:30 +00:00
Jens Frank
d4f2fe39ea thumbs with alt text starting with center or ending in centre are centred, which they shouldn't. BUG #963876 2004-06-01 06:02:13 +00:00
Jens Frank
ad76b42c79 Fixed problems caused by merging of a patch which was generated from an old version 2004-04-24 21:20:32 +00:00
Brion Vibber
f0f5a17d5b Add {{NAMESPACE}} and {{PAGENAME}} magic words. (dori's patch) 2004-04-24 20:19:05 +00:00
Jens Frank
06eb1fc1b5 New parameter 'framed' for Extended Image Syntax
Frame the image using the same box the thumbnail uses, but don't scale the image and
don't show the zoom-icon
2004-04-24 01:05:49 +00:00
Tim Starling
c503774b28 Moved MAG_XXXX constants to MagicWord.php, changed canonical name for NS 4 to "MetaNamespace" 2004-04-09 07:02:29 +00:00
Tim Starling
2ca258fd03 * Changed inclusion syntax to allow e.g. {{stub}}
* Split MediaWiki namespace into MediaWiki and Template (requires changes to all language files)
* Purge links to on edit of Template namespace
* General refactoring of purging and cache invalidation code
2004-03-20 15:03:26 +00:00
Tim Starling
840dee3ad4 * Fixed magic quotes in $_REQUEST, in Setup.php
* Converted many instances of globals from the query to $_REQUEST
* Renamed near-useless Title::getURL() to Title::getPartialURL()
* Created new Title::getURL(), to replace wfLocalUrl, wfLocalUrlE, wfFullUrl and wfFullUrlE. Replaced most instances throughout the code
* In Parser.php, generalised stripping of <nowiki>, <pre> and <math> to allow more general use such as nesting
* Moved body of Article::preSaveTransform to Parser.php
* Put lots of comments in Title.php
2004-03-06 01:49:16 +00:00
Brion Vibber
0332f4c598 Fix for compatibility with short_open_tag = Off 2004-02-18 02:15:00 +00:00
Tim Starling
536b796ee1 More characters allowed in message names (or more generally, MagicWord "variables") 2004-01-25 02:38:47 +00:00
Erik Moeller
99f6383f37 JeLuF's image resizing code 2004-01-12 00:55:01 +00:00
Mr. E23
225fa83227 Cleaned up OutputPage::replaceVariables() a bit. Some performance gain by doing several replacements at once in MagicWord::replaceMultiple() 2004-01-10 22:49:37 +00:00
Mr. E23
16b6b929ca A patch to cache articles after conversion to HTML but before insertion
into a full page. Significant speed improvements on cache hits, especially
on pages with many links.
2004-01-07 02:51:47 +00:00
Tim Starling
788ff5c181 Comments 2003-12-14 14:25:44 +00:00
Tim Starling
ee4c7f2f49 Various fixes, see the version of [[m:Development status]] before this commit for details 2003-11-02 13:57:24 +00:00
Tim Starling
d8cc830c4a block/unblock log; split off profiling into Profiling.php and broke it (turn it off for now) 2003-10-16 13:30:45 +00:00
Tim Starling
a2bc5d8338 MediaWiki namespace 2003-09-21 13:10:10 +00:00
Tim Starling
d5cbc0e43a new Block object, block expiry, optional sysop blocks 2003-09-01 13:13:56 +00:00
Tim Starling
684dba201e Internationalisation of "magic words" such as #redirect 2003-08-31 09:46:37 +00:00