Commit graph

62 commits

Author SHA1 Message Date
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
Æ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