Brion Vibber
e69fe0c5a2
* do showtoc option via CSS hiding of toc when it's off.
...
This lets us use the same parser cache for either setting.
2005-03-25 09:35:59 +00:00
Brion Vibber
a9ec0acd3d
* remove 'hover' option; always put in the title attribute on links
...
* convert 'hightlightbroken' to use CSS switching so we don't need a separate parser cache copy of each page depending on this setting
?-mode falls back to normal rendering in IE 6/win
?-mode looks crappy in IE 5.2/mac :(
2005-03-25 07:25:49 +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
Jens Frank
23b879b55f
Enhancement 1485 Automatic rendering of -- as HTML dash
2005-03-15 06:07:58 +00:00
Tim Starling
900e0b3b50
Removed special case preventing table of contents on the main page. People can use __NOTOC__, after all.
2005-03-13 16:52:48 +00:00
Brion Vibber
6530a8af02
remove obsolete line
2005-03-13 02:01:27 +00:00
Brion Vibber
9e6e293334
Add page_len field with byte length of current revision text, since
...
revision text is now stored separately and may be compressed.
This field is indexed which speeds up Special:Shortpages & Longpages.
Removed no longer used wfArticleIsStub().
2005-03-12 11:51:02 +00:00
Brion Vibber
985ba40e98
* (bug 1659) Redundant caseless modifier in Parser.php
2005-03-11 02:32:19 +00:00
Domas Mituzas
1894517b75
Fix for Bug 1620, Wiki-table nnd tag strips whole line, hiding text after table
...
Bug reported and patch supplied by: Andrius Ramanauskas (Knutux) - alarm at takas.lt
2005-03-04 10:24:07 +00:00
Antoine Musso
feb72b4162
phpdoc fixes
2005-03-04 08:41:28 +00:00
Brion Vibber
ca38c848f8
Remove some cruft from skins... sooooo much cruft yet to go
2005-02-21 11:28:07 +00:00
Brion Vibber
d458eefd9c
Fix direction, use of variable for stub threshold
2005-02-21 06:07:52 +00:00
Brion Vibber
9636a88e1c
Clean up experiments for special:data, special:validate, special:geo.
...
Moving these things to extensions if they are needed in the future.
2005-02-18 11:47:36 +00:00
Brion Vibber
1da57d4e12
* Corrections to template loop detection
2005-02-11 09:02:15 +00:00
Brion Vibber
3a7a90e612
Use the new character entity reference sanitizer on wikitext as well as
...
attribute value normalization. One step closer to well-formed XML all the
time...
2005-02-06 16:13:06 +00:00
Brion Vibber
5d0480ebec
Rewrote fixTagAttributes() for robustness and correctness:
...
- Attribute whitelist now per-element to appease validation
- Always put values in quotes, for well-formed XML
- Check that entities in attributes (but not yet in general text) are actually defined in HTML
- Remove extra spaces that got put at the end of some tags w/o attributes
- Be generally anal about things
2005-02-06 12:46:31 +00:00
Brion Vibber
45b6f3ca35
Split the HTML sanitizer functions from the Parser monolith
2005-02-06 06:44:48 +00:00
Brion Vibber
cbce2981ca
* Fix notice error on nonexistent template in wikitext system message
2005-02-05 07:14:25 +00:00
Antoine Musso
bb7a1ac93a
some quotes and phpdoc comments
2005-01-31 22:59:55 +00:00
Brion Vibber
07650eba1d
* (bug 1228) Fix double-escaping on & sequences in [enclosed] URLs
2005-01-30 04:11:22 +00:00
Jens Frank
ea9b9f176d
BUG#1217 Image within an image caption broke rendering
2005-01-22 23:11:17 +00:00
Jens Frank
0957c04743
BUG#1131 Fix headings containing interwiki links
2005-01-22 09:34:56 +00:00
Jens Frank
24d8299089
BUG#925 Fix canonized_headline for e.g. <math>
2005-01-22 09:13:02 +00:00
Brion Vibber
7710788d3a
* Remove unnecessary initialization and double-caching of parser variables
...
This saves a couple milliseconds; since the variables are internally cached there's no benefit to running every variable when we're often just going to use one or two (Sitename in messages for instance)
2005-01-18 11:52:06 +00:00
Tom Gilder
2d71cb3080
Generate expanded URLs for printing on the client, not server (using CSS, or JS for IE/win) (bug 642)
2005-01-15 23:56:26 +00:00
Tom Gilder
221156150e
Complete TOC recode: proper HTML list; CSS for layout; JS recode; hidden TOC stays hidden across different pages; never show TOC if no headings; more opportunity to style TOC
2005-01-15 23:21:52 +00:00
Jens Frank
50ebb1e045
BUG#1317 - External links in image caption not working
...
Changed regexp to allow single ] inside of an image's alternative text
2005-01-13 09:13:22 +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
Brion Vibber
c0d99e5c3e
* (bug 1186) news: in the middle of a word
2005-01-08 03:03:10 +00:00
Jens Frank
922609f104
BUG#1269 - Fix section editing for articles with verbatim <h[1-6]> sections
...
There's a space added before the closing bracket during processing of HTML tags.
Changed the regexp to also match </h1 >
2005-01-06 00:13:49 +00:00
Jens Frank
eb39f13f04
BUG#32 External links had a whitespace after the link when tidy was used
2005-01-02 22:09:54 +00:00
Brion Vibber
8e4250ae57
* Add the dreaded <span> to the HTML whitelist
2004-12-23 14:04:11 +00:00
Brion Vibber
4f323f50e1
Fancy sig option for the very nice folks who just aren't content with a user page link and will produce ugly invalid code and then complain about it. merge from REL1_4
2004-12-23 08:40:51 +00:00
Brion Vibber
bbfaa459f9
monkeys! monkeys bouncing around my BRAIN
2004-12-23 07:47:17 +00:00
Brion Vibber
64ac6b8e77
Merge SCHEMA_WORK into HEAD. Lots of changes, some things are probably broken:
...
* Page moves/overwrites are a little iffy
* Compression might not be working right
* Profit!
2004-12-19 08:00:50 +00:00
Brion Vibber
d319dbe869
Split link generation, table of contents, and image functions from the
...
Skin class to a separate class, in preparation for thinning and refactoring.
Most users of these functions don't need the _Skin_, which generates the
user interface, and they clutter up the code with unrelated stuff.
2004-12-18 06:29:23 +00:00
Brion Vibber
3150abb758
* Gracefully ignore non-legal titles in a <gallery>
2004-12-15 09:07:21 +00:00
Brion Vibber
9a2a36ce5e
* Defer message cache initialization, shaving a few ms off file cache hits
2004-12-09 05:51:20 +00:00
Brion Vibber
e6bb9de12b
Merge image gallery fixlets from 1.4
2004-12-09 02:13:00 +00:00
Shane King
94ba835da9
Added support for .. style backlinks within subpages. See bug #981
...
for full details.
2004-12-07 01:23:32 +00:00
Brion Vibber
c6d4472efb
Allowed HTML list has been frozen for some time, and we're trying not to add new tags.
2004-11-30 08:00:17 +00:00
Antoine Musso
229ac8759b
Fix bug http://bugzilla.wikimedia.org/show_bug.cgi?id=671
...
* allow <abbr> and <acronym>
2004-11-30 05:22:39 +00:00
Evan Prodromou
4b42f18b66
Removed CVS keywords from files, to make merging between branches
...
easier. Interpolated keywords cause lots of conflicts and headaches at
merge time for older (<1.12.x) CVS versions.
2004-11-29 18:25:30 +00:00
Brion Vibber
b7557bf809
Profiling points
2004-11-28 04:05:05 +00:00
Brion Vibber
d66f60ed43
Loop invariant optimization: skip further checks for subpages on namespaces where subpages aren't allowed. Saves ~20ms on [[List of Royal Navy ship names]] on my test rig.
2004-11-28 03:29:50 +00:00
Brion Vibber
ffe8c4594e
Avoid undefined string index notice on {{}}
2004-11-28 02:46:52 +00:00
Brion Vibber
f75240210c
Tell regexp parser to use extra analysis on external link regexp;
...
this saves about 10ms on [[Zuiderzee Works]] on my test rig.
2004-11-26 12:10:24 +00:00
Brion Vibber
7a4c860acc
Tell regexp engine to do extra analysis on doBlockLevels() paragraph-level
...
HTML checking. This speeds up this part of the operation from about 30ms
to about 7ms in Zuiderzee_Works on my test rig.
2004-11-26 10:49:46 +00:00
Brion Vibber
e39dd4532c
(bug 934) List each category on a page only once.
...
Dan Keshet's patch (http://bugzilla.wikipedia.org/attachment.cgi?id=134&action=view ) plus an added version check on parser cache objects, to automatically discard cached objects using the incompatible older format.
2004-11-25 22:02:30 +00:00
Brion Vibber
5a8cf9de43
Profiling points etc
2004-11-23 07:41:07 +00:00