lhc/web/wiklou.git
20 years agotex aligned middle
Gabriel Wicke [Mon, 17 May 2004 11:51:00 +0000 (11:51 +0000)]
tex aligned middle

20 years agoBug fix: need to add slashes when inserting into double quotes, especially when deali...
Tim Starling [Mon, 17 May 2004 09:34:38 +0000 (09:34 +0000)]
Bug fix: need to add slashes when inserting into double quotes, especially when dealing with Windows paths (ported from 1.2)

20 years agoalt text formatting- keep image src on one line to play nice with the parser
Gabriel Wicke [Mon, 17 May 2004 00:14:42 +0000 (00:14 +0000)]
alt text formatting- keep image src on one line to play nice with the parser

20 years agoOriginally intended as a driver for testing wfUtf8ToHTML(), but also serves nicely...
Tim Starling [Sat, 15 May 2004 14:15:25 +0000 (14:15 +0000)]
Originally intended as a driver for testing wfUtf8ToHTML(), but also serves nicely as a demo for special page modules, or as a toy

20 years agobug fix in wfUtf8ToHTML
Tim Starling [Sat, 15 May 2004 14:03:00 +0000 (14:03 +0000)]
bug fix in wfUtf8ToHTML

20 years agoVarious board vote enhancements, moving to the BoardVote directory
Tim Starling [Sat, 15 May 2004 10:36:59 +0000 (10:36 +0000)]
Various board vote enhancements, moving to the BoardVote directory

20 years agoFix encoding
Brion Vibber [Sat, 15 May 2004 07:09:03 +0000 (07:09 +0000)]
Fix encoding

20 years agoBug fix: anonymous user talk link at top was broken (if enabled, which it isn't on...
Tim Starling [Sat, 15 May 2004 03:40:03 +0000 (03:40 +0000)]
Bug fix: anonymous user talk link at top was broken (if enabled, which it isn't on the live site)

20 years agoFixed incorrect reference syntax
Tim Starling [Sat, 15 May 2004 03:38:35 +0000 (03:38 +0000)]
Fixed incorrect reference syntax

20 years agoFixed spelling
Tim Starling [Sat, 15 May 2004 03:37:30 +0000 (03:37 +0000)]
Fixed spelling

20 years agoIntroducing special page modular extensions, making the board vote special page the...
Tim Starling [Sat, 15 May 2004 03:36:39 +0000 (03:36 +0000)]
Introducing special page modular extensions, making the board vote special page the first of these.

* Moving common special page handling to SpecialPage.php
* Special page lists in the language classes are obsolete, replaced by the list in SpecialPage.php
* Special:Specialpages uses the standard page titles wfMsg(pagename) instead of the description list previously contained in the $wgSpecialPagesEn arrays
* Ability to add custom messages to the MessageCache. Overridable by the MediaWiki namespace.
* Moving board vote functionality from includes/SpecialBoardvote.php to extensions/BoardVote.php

20 years agoAdd categorylinks table to separately list category relationships. Actual
Brion Vibber [Sat, 15 May 2004 00:29:39 +0000 (00:29 +0000)]
Add categorylinks table to separately list category relationships. Actual
_page_ links to category pages like [[:category:Some cat]] will stay in
links/brokenlinks and not be listed in the category page list anymore.

A link can optionally specify a sort key like this: [[category:cat|Sort me]].
The page will then be sorted in category lists according to the given text
instead of the page name; thus categories may be sorted arbitrarily, by
last name or whatever.

There is also a timestamp field included on gwicke's request; this is not
used yet. Also it will currently be updated at every edit of the page,
this can be changed by implementing differential updating for the cat links.

TODO:
* Make sure that automatic sort keys are updated on page rename.
* Make sure cateory pages get cache-invalidated and purged
* Use proper text sorting instead of raw binary sort
* Allow specification of the display style on category pages: comma list
  or bullet list or number list; by sortkey or by timestamp; etc

20 years agodon't create a pre for a whitespace-only line
Gabriel Wicke [Fri, 14 May 2004 22:09:33 +0000 (22:09 +0000)]
don't create a pre for a whitespace-only line

20 years agoforgot the ='' part
Gabriel Wicke [Fri, 14 May 2004 15:07:03 +0000 (15:07 +0000)]
forgot the ='' part

20 years agostrip out urlencoded \  (inserted for french spaces, e.g. first space in 'someth...
Gabriel Wicke [Fri, 14 May 2004 13:38:33 +0000 (13:38 +0000)]
strip out urlencoded \  (inserted for french spaces, e.g. first space in 'something : something') for section anchors

20 years agoSmall tweak to section editing- try to generate a section (toc-)anchor from the edite...
Gabriel Wicke [Fri, 14 May 2004 13:03:57 +0000 (13:03 +0000)]
Small tweak to section editing- try to generate a section (toc-)anchor from the edited section
and append that anchor to the url redirected to, so just edited section is shown by default

Shortcomings:
* won't append a number to duplicate headlines on a page (result: will go to first header with that content)
* doesn't actually parse the headline, headlines with [\\['{<>] in them will just fall back to the old behaviour

20 years agoaccidentially removed nl fix
Gabriel Wicke [Fri, 14 May 2004 01:18:12 +0000 (01:18 +0000)]
accidentially removed nl fix

20 years ago"tokipona" prefix
Tim Starling [Fri, 14 May 2004 00:57:28 +0000 (00:57 +0000)]
"tokipona" prefix

20 years agoMade strong/em handling more forgiving against unbalanced ticks
Gabriel Wicke [Fri, 14 May 2004 00:18:43 +0000 (00:18 +0000)]
Made strong/em handling more forgiving against unbalanced ticks
* close any open em's or strong tags before each heading
* close any open em's or strong's at the end of the text

20 years agofixed '''Caesar''''s bug where 4 ticks where not properly handled.
Jens Frank [Thu, 13 May 2004 20:48:34 +0000 (20:48 +0000)]
fixed '''Caesar''''s bug where 4 ticks where not properly handled.

20 years agoRepaired rendering of ''emph ''' bold emph '' bold ''' to produce valid HTML.
Jens Frank [Thu, 13 May 2004 19:47:09 +0000 (19:47 +0000)]
Repaired rendering of ''emph ''' bold emph '' bold ''' to produce valid HTML.

20 years ago* New functions makeUrlDetails, makeTalkUrlDetails and so on in Skin.php that return...
Gabriel Wicke [Thu, 13 May 2004 19:44:13 +0000 (19:44 +0000)]
* New functions makeUrlDetails, makeTalkUrlDetails and so on in Skin.php that return an array with keys 'href' (url) and 'exists' (boolean)
* User page link and User talk page link in red if pages don't exist

20 years agorestore feature which loads all subsections of a section during section
Erik Moeller [Thu, 13 May 2004 17:25:34 +0000 (17:25 +0000)]
restore feature which loads all subsections of a section during section
editing

20 years agofix duplicate TOC problem again, which is independent of section folding
Erik Moeller [Thu, 13 May 2004 17:16:50 +0000 (17:16 +0000)]
fix duplicate TOC problem again, which is independent of section folding
feature (occurred when template contained more than three headlines).

20 years agoAfter a longer phone call Erik and me agreed on working on an equivalent feature...
Gabriel Wicke [Thu, 13 May 2004 14:17:44 +0000 (14:17 +0000)]
After a longer phone call Erik and me agreed on working on an equivalent feature most likely based on categories that interacts better with caching. More discussion on to follow.
Removed with Erik's agreement.

20 years agorestore section folding
Erik Moeller [Thu, 13 May 2004 12:20:59 +0000 (12:20 +0000)]
restore section folding

20 years agoSilenced this, $token["pos"] was undefined when parsing '''hi'''''hi'' which created...
Gabriel Wicke [Thu, 13 May 2004 12:08:02 +0000 (12:08 +0000)]
Silenced this, $token["pos"] was undefined when parsing '''hi'''''hi'' which created a notice. Output is fine, so silencing it should be ok.

20 years agoremoved section folding
Gabriel Wicke [Thu, 13 May 2004 11:54:19 +0000 (11:54 +0000)]
removed section folding

20 years agofix collapsing problem with templates (templates would be expanded and
Erik Moeller [Wed, 12 May 2004 22:01:25 +0000 (22:01 +0000)]
fix collapsing problem with templates (templates would be expanded and
formatted first and thus cause a duplicate TOC, the internal parser now has
an isMain parameter to specify whether it is called from the main article
text, or from a template.

20 years agothat was unintentional
Erik Moeller [Wed, 12 May 2004 21:40:59 +0000 (21:40 +0000)]
that was unintentional

20 years agofix a couple of section collapsing bugs
Erik Moeller [Wed, 12 May 2004 21:38:01 +0000 (21:38 +0000)]
fix a couple of section collapsing bugs

20 years agodisabled blockquote rule
Gabriel Wicke [Wed, 12 May 2004 18:46:21 +0000 (18:46 +0000)]
disabled blockquote rule

20 years agotweaks to tidy comments
Gabriel Wicke [Wed, 12 May 2004 14:30:35 +0000 (14:30 +0000)]
tweaks to tidy comments

20 years agofix a =/== typo
Erik Moeller [Wed, 12 May 2004 13:55:40 +0000 (13:55 +0000)]
fix a =/== typo

20 years agoNew feature:
Erik Moeller [Wed, 12 May 2004 13:26:36 +0000 (13:26 +0000)]
New feature:
Automatic or manual collapsing and expanding of long pages.
Pages can be collapsed automatically according to a size threshold
set in the user preferences. Pages can be collapsed manually by clicking
the "Collapse" link in the TOC.

When a page is collapsed, only the intro & TOC are displayed. The
individual TOC lines link to section views, which can be individually edited
(classic section editing).

Section editing/viewing behavior has also been improved. When a section
with subsections is viewed or edited, all subsections are also loaded.

Known issues:
- After saving a section, we return to the full article view
rather than the section view, even if we previously were in section view
mode.
- Should work with Standard and Monobook, not tested with Cologne Blue yet.
- In Monobook, no backlink to the mother article is shown during section
viewing (Gabriel, can you fix that?)

20 years agodon't unescape preview text (made things like \&lt;pre\&gt; a plain \<pre\> in previe...
Gabriel Wicke [Wed, 12 May 2004 13:05:00 +0000 (13:05 +0000)]
don't unescape preview text (made things like \&lt;pre\&gt; a plain \<pre\> in preview mode). Not sure if this has any side effects (and why it was unescaped in the first place).

20 years agopreserve newline before braced variables
Gabriel Wicke [Wed, 12 May 2004 12:48:36 +0000 (12:48 +0000)]
preserve newline before braced variables

20 years agosome documentation
Erik Moeller [Wed, 12 May 2004 01:17:05 +0000 (01:17 +0000)]
some documentation

20 years agoWhitelist and diff fixes:
Brion Vibber [Tue, 11 May 2004 09:47:41 +0000 (09:47 +0000)]
Whitelist and diff fixes:
* Enforce whitelist on oldid and diff specifiers (bug 950911)
* Show the titles given for oldid and diff if they differ (UI change related to bug 622636)
* Use canonical text form in $wgWhitelistRead

20 years agoprefixing require_once statements- previous version worked only for for a few minutes...
Gabriel Wicke [Tue, 11 May 2004 02:28:15 +0000 (02:28 +0000)]
prefixing require_once statements- previous version worked only for for a few minutes until php checked mod times again

20 years agophptal doesn't require ini_set anymore
Gabriel Wicke [Tue, 11 May 2004 01:42:58 +0000 (01:42 +0000)]
phptal doesn't require ini_set anymore

20 years agofrom meta
Tim Starling [Tue, 11 May 2004 01:22:55 +0000 (01:22 +0000)]
from meta

20 years agomake phptal available even if ini_set can't be set
Gabriel Wicke [Tue, 11 May 2004 01:14:01 +0000 (01:14 +0000)]
make phptal available even if ini_set can't be set

20 years agoquote in separate function as well
Gabriel Wicke [Mon, 10 May 2004 19:16:50 +0000 (19:16 +0000)]
quote in separate function as well

20 years agoDon't forget to escape things in regexps
Brion Vibber [Mon, 10 May 2004 18:53:26 +0000 (18:53 +0000)]
Don't forget to escape things in regexps

20 years agoshorter message while previewing
Gabriel Wicke [Mon, 10 May 2004 18:45:15 +0000 (18:45 +0000)]
shorter message while previewing

20 years agotypo
Gabriel Wicke [Mon, 10 May 2004 17:28:23 +0000 (17:28 +0000)]
typo

20 years agodon't show when previewing
Gabriel Wicke [Mon, 10 May 2004 17:17:39 +0000 (17:17 +0000)]
don't show when previewing

20 years agopreview note
Gabriel Wicke [Mon, 10 May 2004 17:14:01 +0000 (17:14 +0000)]
preview note

20 years agowork around the horizontal scrollbar khtml bug
Gabriel Wicke [Mon, 10 May 2004 15:34:29 +0000 (15:34 +0000)]
work around the horizontal scrollbar khtml bug

20 years agokhtml fix stylesheet
Gabriel Wicke [Mon, 10 May 2004 15:33:28 +0000 (15:33 +0000)]
khtml fix stylesheet

20 years ago* user css/js preview
Gabriel Wicke [Mon, 10 May 2004 13:15:28 +0000 (13:15 +0000)]
* user css/js preview
* utility functions in title to test for user css/js, some weird php bug prevents those from working in most places though

20 years agocomment out entries that are the same as in en, use wfMsgNoDb( )
Gabriel Wicke [Mon, 10 May 2004 13:08:51 +0000 (13:08 +0000)]
comment out entries that are the same as in en, use wfMsgNoDb(  )

20 years agoPHP 4.1.2 compatibility fixes (based on patch submission by Asheesh Laroia)
Brion Vibber [Mon, 10 May 2004 01:54:56 +0000 (01:54 +0000)]
PHP 4.1.2 compatibility fixes (based on patch submission by Asheesh Laroia)
Also, urlencode anchor names for non-ascii compatibility. This is the
recommendation of HTML 4.01 standard in B.2.1, as far as I can tell.
Works in UTF-8 at least for IE6/win, Firefox, Safari.

20 years agoanother tweak to the thumb centering
Gabriel Wicke [Sun, 9 May 2004 22:05:51 +0000 (22:05 +0000)]
another tweak to the thumb centering

20 years agoreally centered now
Gabriel Wicke [Sun, 9 May 2004 21:12:16 +0000 (21:12 +0000)]
really centered now

20 years agocentered thumb image
Gabriel Wicke [Sun, 9 May 2004 20:56:37 +0000 (20:56 +0000)]
centered thumb image

20 years agolimit parameter
Tim Starling [Sun, 9 May 2004 14:28:21 +0000 (14:28 +0000)]
limit parameter

20 years agoAdd $wgUserHtml option; set to false to disable use of user-supplied HTML
Brion Vibber [Sun, 9 May 2004 12:04:59 +0000 (12:04 +0000)]
Add $wgUserHtml option; set to false to disable use of user-supplied HTML
in wiki markup. Note that <nowiki>, <pre>, <math> etc are counted as wiki
markup. That <pre> looks like HTML's <pre> is a coincidence; they behave
differently (<pre> also disables other wiki markup like <nowiki> does).

Also, escape the <math> tag when $wgUseTeX is off.

20 years agomake image width an integer, not a real number
Jens Frank [Sun, 9 May 2004 10:55:47 +0000 (10:55 +0000)]
make image width an integer, not a real number

20 years agoImage bounding box can be specified instead of width, e.g. as
Jens Frank [Sun, 9 May 2004 10:52:50 +0000 (10:52 +0000)]
Image bounding box can be specified instead of width, e.g. as
100x100px, making the image not wider than 100px and not higher
than 100px, keeping aspect ratio.

20 years agoAllow installing and running the wiki on a server where ini_set has been
Brion Vibber [Sun, 9 May 2004 10:37:00 +0000 (10:37 +0000)]
Allow installing and running the wiki on a server where ini_set has been
disabled via disable_functions in php.ini (bug #928168)

The PHPTal skin doesn't function unless the PEAR bits are in include_path,
so it's disabled if ini_set can't be used. If the files are manually placed
or a real PEAR installation is available with the right stuff, one can
use $wgUsePHPTal = true;

There are likely other things that need to be taken into account for
restricted environments. Maintenance scripts haven't been tweaked for
such an environment yet either.

20 years agoproper handling of users with no contributions
Tim Starling [Sun, 9 May 2004 06:20:46 +0000 (06:20 +0000)]
proper handling of users with no contributions

20 years agobug fixes
Tim Starling [Sun, 9 May 2004 06:03:54 +0000 (06:03 +0000)]
bug fixes

20 years agoAdd an objectcache table for limited caching when memcached isn't
Brion Vibber [Sun, 9 May 2004 05:12:55 +0000 (05:12 +0000)]
Add an objectcache table for limited caching when memcached isn't
available. Currently using for the message cache to avoid reading
every message separately. This now is only slightly slower than
memcached in my tests when $wgUseDatabaseMessages is enabled, so
it's a bit of a speedup for common hosts.

20 years agotable definitions for board vote
Tim Starling [Sun, 9 May 2004 04:10:01 +0000 (04:10 +0000)]
table definitions for board vote

20 years agoBoard of Trustees vote
Tim Starling [Sun, 9 May 2004 02:32:04 +0000 (02:32 +0000)]
Board of Trustees vote

20 years agoReplace ugly abuse of log pages to store cached results of query pages
Brion Vibber [Sun, 9 May 2004 01:30:34 +0000 (01:30 +0000)]
Replace ugly abuse of log pages to store cached results of query pages
with a table that stores up to 1000 rows for each 'expensive' special
page. This can be paged through, reducing the annoyingness of 50 result
limits on the old system.

Rebuilding the cache can be forced by adding "recache=1" URL parameter,
but this will need to be refined with some sort of controls to prevent
abuse.

Added the user realname update to the installer's updater list, also.

20 years agoMoved image history retrieval function to Image.php.
Jens Frank [Sat, 8 May 2004 18:55:22 +0000 (18:55 +0000)]
Moved image history retrieval function to Image.php.
Variable names in Skin::imageHistoryLine() changed.

20 years agoMore translations, from Alwin Meschede
Jens Frank [Sat, 8 May 2004 18:11:22 +0000 (18:11 +0000)]
More translations, from Alwin Meschede

20 years agoFix $wgLogo to new location, for standard and nostalgia skins
Brion Vibber [Sat, 8 May 2004 04:43:32 +0000 (04:43 +0000)]
Fix $wgLogo to new location, for standard and nostalgia skins

20 years agoSuppress PHP warnings on failure to create thumbnail subdirectories. This should...
Brion Vibber [Sat, 8 May 2004 04:41:54 +0000 (04:41 +0000)]
Suppress PHP warnings on failure to create thumbnail subdirectories. This should be checked at file save time and a human-friendly error message listed instead

20 years agoUser interface images have been moved to stylesheets/images. Removing the
Brion Vibber [Sat, 8 May 2004 02:55:21 +0000 (02:55 +0000)]
User interface images have been moved to stylesheets/images. Removing the
now duplicate files from images, and fixing GNU FDL icon URL.

20 years agoAdd $wgDefaultSkin setting.
Brion Vibber [Sat, 8 May 2004 02:15:50 +0000 (02:15 +0000)]
Add $wgDefaultSkin setting.
Remove redundant options array in bn

20 years agoRemove never-used half-implemented framed skin. yuck, frames\!
Brion Vibber [Sat, 8 May 2004 01:37:01 +0000 (01:37 +0000)]
Remove never-used half-implemented framed skin. yuck, frames\!

20 years agoDocumentation fix for wgWhitelistRead
Brion Vibber [Fri, 7 May 2004 23:47:46 +0000 (23:47 +0000)]
Documentation fix for wgWhitelistRead

20 years agoinclude_once -> require_once
Tim Starling [Fri, 7 May 2004 13:43:10 +0000 (13:43 +0000)]
include_once -> require_once

20 years agoadd encoding option
Gabriel Wicke [Fri, 7 May 2004 09:06:45 +0000 (09:06 +0000)]
add encoding option

20 years agoseriousxhtmlerrors message
Gabriel Wicke [Thu, 6 May 2004 21:10:57 +0000 (21:10 +0000)]
seriousxhtmlerrors message

20 years agopipe for stderr was troublesome on pages with many errors (buffer filled up), generic...
Gabriel Wicke [Thu, 6 May 2004 21:06:23 +0000 (21:06 +0000)]
pipe for stderr was troublesome on pages with many errors (buffer filled up), generic message now

20 years ago* simpler html strip function if tidy is used
Gabriel Wicke [Thu, 6 May 2004 19:01:05 +0000 (19:01 +0000)]
* simpler html strip function if tidy is used
* error reporting if tidy doesn't honour force-output option *and* html is severely broken (if unknown elements are encountered), never return uncleaned version

20 years agoslightly larger indent for dd's
Gabriel Wicke [Thu, 6 May 2004 15:40:47 +0000 (15:40 +0000)]
slightly larger indent for dd's

20 years agoone unclosed br partisan
Gabriel Wicke [Thu, 6 May 2004 15:30:05 +0000 (15:30 +0000)]
one unclosed br partisan

20 years agoreturn the uncleaned text if tidy isn't there or if nothing is returned
Gabriel Wicke [Thu, 6 May 2004 13:38:23 +0000 (13:38 +0000)]
return the uncleaned text if tidy isn't there or if nothing is returned

20 years agoNew tidy function that uses html tidy (http://tidy.sf.net) to make sure the output...
Gabriel Wicke [Thu, 6 May 2004 12:50:04 +0000 (12:50 +0000)]
New tidy function that uses html tidy (tidy.sf.net) to make sure the output is valid xhtml/xml
Disabled by default, set $wgUseTidy = true to enable
Possible improvements:
* Tweaking it to work on windows (don't know if that's possible)
* use the php5 built-in tidy module if available, that seems to allow a fine-grained config on which tags are allowed as well (see http://www.php.net/manual/en/ref.tidy.php)

20 years agosettings for tidy extension
Gabriel Wicke [Thu, 6 May 2004 12:41:31 +0000 (12:41 +0000)]
settings for tidy extension

20 years agofixing wa
Tim Starling [Thu, 6 May 2004 06:46:27 +0000 (06:46 +0000)]
fixing wa

20 years agoMerged wfImagePath into Image class
Jens Frank [Thu, 6 May 2004 06:31:35 +0000 (06:31 +0000)]
Merged wfImagePath into Image class

20 years agosome id name updates, some things in the footer hidden as well, black line on top...
Gabriel Wicke [Wed, 5 May 2004 21:22:30 +0000 (21:22 +0000)]
some id name updates, some things in the footer hidden as well, black line on top of the footer

20 years agono javascript: of course
Gabriel Wicke [Wed, 5 May 2004 20:56:06 +0000 (20:56 +0000)]
no javascript: of course

20 years agoMore translations
Jens Frank [Wed, 5 May 2004 19:50:00 +0000 (19:50 +0000)]
More translations

20 years agoopen edit help in separate window to work around IE data loss bug
Gabriel Wicke [Wed, 5 May 2004 12:03:12 +0000 (12:03 +0000)]
open edit help in separate window to work around IE data loss bug

20 years agoremoved makeUrl functions, now in Skin.php
Gabriel Wicke [Wed, 5 May 2004 12:02:25 +0000 (12:02 +0000)]
removed makeUrl functions, now in Skin.php

20 years agoadded makeUrl functions to make them available in other skins as well
Gabriel Wicke [Wed, 5 May 2004 12:01:54 +0000 (12:01 +0000)]
added makeUrl functions to make them available in other skins as well

20 years agonoticed this is added as html attribute to the body
Gabriel Wicke [Wed, 5 May 2004 00:58:09 +0000 (00:58 +0000)]
noticed this is added as html attribute to the body

20 years agomake sure there's a contrast between text and bg
Gabriel Wicke [Wed, 5 May 2004 00:55:15 +0000 (00:55 +0000)]
make sure there's a contrast between text and bg

20 years agoset default background to white (make sure there's a contrast between text and bg)
Gabriel Wicke [Wed, 5 May 2004 00:53:21 +0000 (00:53 +0000)]
set default background to white (make sure there's a contrast between text and bg)

20 years agofloating left option in cologneblue, patch by thetorpedodog (bug #941620)
Gabriel Wicke [Tue, 4 May 2004 23:42:09 +0000 (23:42 +0000)]
floating left option in cologneblue, patch by thetorpedodog (bug #941620)

20 years agomoved some more functions from GlobalFunctions to Image
Jens Frank [Tue, 4 May 2004 20:35:37 +0000 (20:35 +0000)]
moved some more functions from GlobalFunctions to Image

20 years agoon Windows, you can't use a hard-coded directory. Getting temp directory from the...
Tim Starling [Tue, 4 May 2004 14:38:21 +0000 (14:38 +0000)]
on Windows, you can't use a hard-coded directory. Getting temp directory from the environment instead