Alexandre Emsenhuber
f0683f8e08
Whitespaces fixes
2010-02-11 14:57:43 +00:00
Chad Horohoe
5fd1b2e4ba
Cleanup r62111, don't pass by reference
2010-02-08 11:30:17 +00:00
Conrad Irwin
7a1fc37382
partial revert for r62081. Make {{PIPETRICK}} like {{PAGENAME}}, add {{PIPETRICKE}}. fix r62077 better.
2010-02-08 02:07:15 +00:00
Conrad Irwin
0443dd4c5c
Fixes for r62077
...
{{pipetrick:}} -> {{#pipetrick:}} per IAlex
clearer documentation per Siebrand
parser test for new magic word.
2010-02-07 13:17:05 +00:00
Conrad Irwin
d036809f36
Bug 7264 - Magic word to give Page Title as if pipe-trick performed on it {{pipetrick:}}
2010-02-07 02:36:32 +00:00
Tobias
a197b768dd
introducing new CoreParserFunction nse as an url-friendly equivalent to ns. bug 12920
2009-08-02 18:16:56 +00:00
Ryan Schmidt
12153478ef
* DISPLAYTITLE fixes:
...
** DISPLAYTITLE now parses the single-quote items of wiki markup (bold and italic).
** Remove UNIQ markers from the output due to people putting tags in there (nowiki, ref, etc.).
** Forbid hr and br elements from being in DISPLAYTITLE as well.
2009-06-08 16:53:39 +00:00
Tim Starling
6cc78e5d4b
Revert r51200, r51253, r51254, addition of {{NUMBEROFCONTRIBS:...}} parser function. See CodeReview r51200. Not very well implemented and probably a bad idea anyway.
2009-06-06 02:49:32 +00:00
Tim Starling
9cb35f8036
Reverted r49575, {{revisionid:...}} due to unresolved CR comments and the general cache-breaking insanity of the concept.
2009-06-03 17:09:50 +00:00
Tim Starling
1179421217
Reverted r48984. Fragile, doesn't work if memcached is enabled. See CodeReview.
2009-06-03 14:51:08 +00:00
Tim Starling
df41d898a7
Profiling for CPF::gender()
2009-06-03 06:28:19 +00:00
Alex Z
19a90fd8a7
On second thought, use idFromName and edits() instead, load() loads a whole bunch of stuff we don't need
2009-05-31 19:06:04 +00:00
Alex Z
12fb35058e
Some followup to r51200:
...
* Save a query by not using User::edits()
* Mark as an expensive function (it needs at least 1 query for each use)
* Use number formatting/raw option rather than pointless wfEscapeWikiText()
2009-05-31 18:55:38 +00:00
X!
784dc5cc9a
(bug 19012) Added {{NUMBEROFCONTRIBS}} variable
2009-05-30 17:27:16 +00:00
Siebrand Mazeland
8e23949bee
Proper casing for getDBkey()
2009-05-24 08:29:10 +00:00
Ryan Schmidt
54f5b23182
Follow-up on r49330
...
* re-add $wgRestrictDisplayTitle
* revert r49610
* prevent block-level and other such tags from being used in DISPLAYTITLE (while still allowing tags such as <sup> and <sub>)
2009-04-19 23:48:50 +00:00
Roan Kattouw
30c3ce9f9a
(bug 6092) Add parser function equivalents of {{REVISIONID}}, {{REVISIONTIMESTAMP}} (and friends) and {{REVISIONUSER}} magic words. These parser functions are marked as expensive and cache their results
2009-04-16 21:46:49 +00:00
Remember the dot
e4d211703c
(bug 12998) Allow <sup>, <sub>, etc. in DISPLAYTITLE
2009-04-09 05:15:43 +00:00
Philip Tzou
3cf3ea5f0b
Add group convertsion support for LanguageConverter. New magic word "{{GROUPCONVERT:xxx}}" enabled for this new feature. You can set related conversion rules in [[MediaWiki:Groupconversiontable-xxx]].
2009-03-29 08:55:45 +00:00
Andrew Garrett
27ea934436
Convert formatdate to a hashed parserfunction
2009-03-25 12:27:04 +00:00
Brion Vibber
1a58e8f93e
Fix up r48728 "Allow User: prefix in parameter to GENDER parser function"
...
Wasn't checking return value for null, or actually calling the getNamespace() method correctly.
2009-03-24 23:04:51 +00:00
Andrew Garrett
80e4139017
Allow User: prefix in parameter to GENDER parser function
2009-03-24 06:58:43 +00:00
Chad Horohoe
8f25eccecb
Documenting this, because it makes no sense.
2009-03-18 21:32:58 +00:00
Andrew Garrett
72acc9b179
Tweak r48249 -- allow specification of the default format, and require the date to take up the entire argument.
2009-03-10 05:19:05 +00:00
Andrew Garrett
b9ffb5a7e9
* (bug 4582) Provide preference-based autoformatting of unlinked dates with the dateformat
...
parser function.
2009-03-10 01:07:47 +00:00
Alexandre Emsenhuber
d710765f6f
Renamed CoreParserFunctions::namespace() to CoreParserFunctions::mwnamespace() to not break PHP 5.3, was throwing an E_PARSE: "Unexpected T_NAMESPACE"
2009-03-04 18:59:28 +00:00
Brion Vibber
ae0b528972
Revert r46628, r46639 for now "Don't allow padding parser functions to be used to truncate strings."
...
Doesn't seem to be a compelling reason to add this special-case restriction at this time, and there appear to be ways to work around it anyway, so let's not play the arms race. :)
2009-02-18 02:24:55 +00:00
Aaron Schulz
7a5ca259be
Rename new ACTIVEUSERS word to NUMBEROFACTIVEUSERS
2009-02-17 23:05:04 +00:00
Andrew Garrett
802c88e188
Add ACTIVEUSERS magic-word, complement to NUMBEROFUSERS.
2009-02-04 22:16:35 +00:00
Alex Z
a4fafb006b
(bug 8249) Followup to r46630, add parser function versions of the various PAGENAME magic words
2009-01-31 22:25:01 +00:00
Andrew Garrett
cff78fbda1
Fix r46628 -- I'd misunderstood the nature of the hack. People wanted to append the string to be truncated to an empty string, not the reverse.
2009-01-31 11:43:42 +00:00
Alex Z
a01e861968
Allow the {{NAMESPACE}}, {{TALKSPACE}}, and {{SUBJECTSPACE}} magic words (and their urlencoding versions) to be used as parser functions to return the desired namespace for a given title.
2009-01-31 01:35:18 +00:00
Andrew Garrett
8d6213da2a
Don't allow padding parser functions to be used to truncate strings. This breaks in some situations, and also encourages its use to reconstruct StringFunctions with core parser functions, which is undesirable for performance and usability reasons.
2009-01-31 00:46:38 +00:00
Niklas Laxström
6613060f33
* (bug 13040) {{GENDER:}} magic word for interface messages
2009-01-26 09:48:17 +00:00
Aryeh Gregor
7f1b040248
(bug 16852) padleft and padright now handle multibyte characters and multicharacter pad strings
...
Patch by RememberTheDot, with adjustments to comments by me
2009-01-14 17:54:52 +00:00
Alex Z
a445dd5e11
(bug 9947) Add PROTECTIONLEVEL parser function to return the protection level for a given action (e.g. edit, move) for the current page.
2009-01-08 23:21:06 +00:00
Brion Vibber
880d68b28c
Pull back r45181 "(Bug 12998) Weaken DISPLAYTITLE restictions (patch by rememberthedot@gmail.com)" for now.
...
Escaping issues per comment http://www.mediawiki.org/wiki/Special:Code/MediaWiki/45181#c1046
2008-12-31 16:49:38 +00:00
Aaron Schulz
d0aeaa55ff
(Bug 12998) Weaken DISPLAYTITLE restictions (patch by rememberthedot@gmail.com)
2008-12-30 12:22:15 +00:00
Aaron Schulz
cacf972906
(Bug 16678) localurl/fullurl for Media: titles should return the File: title's path
2008-12-23 21:12:43 +00:00
Raimond Spekking
566145e89b
* (bug 13835) Fix rendering of {{filepath:Wiki.png|nowiki}}
...
Patch by Olaf Lenz
2008-12-23 11:59:37 +00:00
Aaron Schulz
f8e8aba2a9
Reduce queries for pagesize thingy
2008-12-11 01:33:27 +00:00
Aaron Schulz
d57050f8fc
Fix this broken crap some more
2008-12-11 01:17:17 +00:00
Aaron Schulz
e375c09596
(bug 16589) CoreParserFunctions error causes 500
2008-12-10 23:27:25 +00:00
Brion Vibber
95211ac850
Revert r44271 "(bug 12998) Weaken DISPLAYTITLE restictions (patch by 'rememberthedot@gmail.com')"
...
Behavior seems a bit hard to predict, as far as what's going to go in the header and what in the browser window etc. Pulling it back for further testing and discussion.
2008-12-10 23:21:28 +00:00
Aaron Schulz
af10d34286
(bug 12998) Weaken DISPLAYTITLE restictions (patch by 'rememberthedot@gmail.com')
2008-12-06 18:00:17 +00:00
Raimond Spekking
e31e85265f
Fix for r43077:
...
* Use wfMsg to show error message in user preference language. wfMsgForContent does not make sense
* Rename new message name to MediaWiki code standards. Use dash and not underscore
2008-11-02 18:46:27 +00:00
Ilmari Karonen
a3fbf7fc49
Emit a warning message if a single page has multiple conflicting {{DEFAULTSORT:}} keys.
...
(Also, replace wfMsg() with wfMsgForContent() for the unknown_extension_tag message.)
2008-11-02 14:21:04 +00:00
Nicolas Dumazet
10263f3f68
Adding function hook for numberofviews
2008-10-28 09:24:52 +00:00
Nicolas Dumazet
6198592553
(bug 13701) {{NUMBEROFVIEWS}} magic word to show number of total views.
2008-10-19 04:11:02 +00:00
Ilmari Karonen
dbcdc32293
Make the {{ns:}} core parser function accept localized namespace names and aliases. Also change the output to use spaces
...
instead of underscores so that it matches the output of {{NAMESPACE}} and related magic words.
2008-10-09 00:56:26 +00:00