I just hacked up a new special page for listing the deleted
contributions of a user. This has been a commonly requested feature for
over a year, but for various reasons nothing much has been done about it
before.
The code is in svn: see
<http://svn.wikimedia.org/viewvc/mediawiki?view=rev&revision=17968>. As
of this writing, it's not live on Wikimedia servers yet.
The page is accessible to users with deletedhistory privileges, i.e.
normally sysops. There is no link to the page anywhere (except
Special:Specialpages) yet; what I'd like now is some testing, review and
improvements before the feature is officially announced.
So, have at it!
(P.s. see also <http://bugzilla.wikimedia.org/show_bug.cgi?id=1699>.)
--
Ilmari Karonen
Is there a way to pass variables into pages?
For all my wiki articles, I have included some sort of a {{:navigationbar}}
on the left.
There is a page linked from many different places and depending on how the
page is called I want different page to be included as {{:navigation}}
For example,
I have two navigation articles (page1nav and page2nav) and two regular
articles (page1 and page2)
page1's content is
{|
|{{:page1nav}}
|some content
|}
page2:
{|
|{{:page2nav}}
|some content
|}
Both pages have links to a different page - page3.
{|
|{{:dynamicnav}}
|some content
|}
When page3 is called from page1, it passes in "page1nav" and inserts it into
the dynamicanav...
Is this possible in wiki?
Thanks!
An automated run of parserTests.php showed the following failures:
Reading tests from "/home/brion/src/wiki/phase3/maintenance/parserTests.txt"...
Running test TODO: Table security: embedded pipes (http://mail.wikipedia.org/pipermail/wikitech-l/2006-April/034637.html)... FAILED!
Running test TODO: Link containing double-single-quotes '' (bug 4598)... FAILED!
Running test TODO: Template with thumb image (with link in description)... FAILED!
Running test TODO: message transform: <noinclude> in transcluded template (bug 4926)... FAILED!
Running test TODO: message transform: <onlyinclude> in transcluded template (bug 4926)... FAILED!
Running test BUG 1887, part 2: A <math> with a thumbnail- math enabled... FAILED!
Running test TODO: HTML bullet list, unclosed tags (bug 5497)... FAILED!
Running test TODO: HTML ordered list, unclosed tags (bug 5497)... FAILED!
Running test TODO: HTML nested bullet list, open tags (bug 5497)... FAILED!
Running test TODO: HTML nested ordered list, open tags (bug 5497)... FAILED!
Running test TODO: Parsing optional HTML elements (Bug 6171)... FAILED!
Running test TODO: Inline HTML vs wiki block nesting... FAILED!
Running test TODO: Mixing markup for italics and bold... FAILED!
Running test TODO: 5 quotes, code coverage +1 line... FAILED!
Running test TODO: dt/dd/dl test... FAILED!
Running test TODO: Images with the "|" character in the comment... FAILED!
Running test TODO: Parents of subpages, two levels up, without trailing slash or name.... FAILED!
Running test TODO: Parents of subpages, two levels up, with lots of extra trailing slashes.... FAILED!
Running test TODO: Don't fall for the self-closing div... FAILED!
Running test TODO: Always escape literal '>' in output, not just after '<'... FAILED!
Reading tests from "/home/brion/src/wiki/phase3/extensions/Cite/citeParserTests.txt"...
Passed 449 of 469 tests (95.74%)... FAILED!
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
nikerabbit(a)svn.wikimedia.org wrote:
> * Don't mess up diff link when revision is not deleted
>
> - if( $rev->userCan( Revision::DELETED_TEXT ) ) {
> - $difftext = '(' . $sk->makeKnownLinkObj( $page, $messages['diff'], 'diff=prev&oldid='.$row->rev_id ) . ')';
> - } else {
> - $difftext = '(' . $messages['diff'] . ')';
> +
> + if( $rev->isDeleted( Revision::DELETED_TEXT ) ) {
> + if ( $rev->userCan( Revision::DELETED_TEXT ) ) {
> + $difftext .= '(' . $sk->makeKnownLinkObj( $page, $messages['diff'], 'diff=prev&oldid='.$row->rev_id ) . ')';
> + } else {
> + $difftext .= '(' . $messages['diff'] . ')';
> + }
This change is... very very wrong, breaking all diff links.
Has been reverted.
For reference, Revision->userCan() checks whether the current user has
permission to see the requested item on that particular revision. In
this case checking for text, so it'll return true if either:
* the text is not marked as hidden/deleted
- -or-
* the text is marked as hidden/deleted, and the user has permission to
view revision-deleted text
Changing it to Revision->isDeleted() means that the link doesn't get
displayed if the text isn't marked as hidden/deleted... which ain't
right. :)
Further note: revision deletion markings currently aren't used as there
are some as-yet-unsolved problems.
- -- brion vibber (brion @ pobox.com)
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2.2 (Darwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iD8DBQFFa8ARwRnhpk1wk44RAtrYAJ9hhaJGU+FTFwTkA4AX7oG5TjIrYwCgkEaP
q4C9nwBPKu7w9LWLkApkDas=
=cnok
-----END PGP SIGNATURE-----
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Let's say example.com and example.net are blacklisted, but
subsite.example.com is whitelisted.
Then, subsite.example.com.example.net is allowed. Isn't this incorrect
behavior? Too tired to file/check for a Bugzilla report...
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iD8DBQFFaR1yqTO+fYacSNoRAoNeAJ91tOJiwZHOxFpIkI6rn6TuPb3JiACcCjEG
he0UxEL21cG3iEe75F5iePA=
=+SdR
-----END PGP SIGNATURE-----
RC> There's a script to rebuild recent changes, isn't there?
Well, it, rebuildrecentchanges.php, says:
* Rebuild link tracking tables from scratch. This takes several
* hours, depending on the database size and server configuration.
Therefore, one is forced to use Special:Import, lest one face hours of
rebuilding from scratch as the price for just importing one or two
pages. Therefore if one would like to do things in batch mode instead
of being chained to a GUI, one must make a LWP::UserAgent script to
interact with Special:Import.
Hello.
There seems to be a problem with the pages-meta-history dumps:
The latest complete .7z dump seems to be several months old and the .bz2
dump (which is labelled with "done" on
http://download.wikimedia.org/dewiki/20061105/) yields a corrupted
(truncated) .bz2 file with a size of only 729 MB (instead of > 20 GB)
when downloaded. In case the error was a networking problem on my side,
I tried the download three times and compared the files with cmp - they
were all identical.
Does someone know of any problems regarding these dumps? Is there a
place where to get a reasonably up-to-date page-meta-history dump of dewiki?
Thanks in advance and best regards,
Johannes Beigel
An automated run of parserTests.php showed the following failures:
Reading tests from "/home/brion/src/wiki/phase3/maintenance/parserTests.txt"...
Running test TODO: Table security: embedded pipes (http://mail.wikipedia.org/pipermail/wikitech-l/2006-April/034637.html)... FAILED!
Running test TODO: Link containing double-single-quotes '' (bug 4598)... FAILED!
Running test TODO: Template with thumb image (with link in description)... FAILED!
Running test TODO: message transform: <noinclude> in transcluded template (bug 4926)... FAILED!
Running test TODO: message transform: <onlyinclude> in transcluded template (bug 4926)... FAILED!
Running test BUG 1887, part 2: A <math> with a thumbnail- math enabled... FAILED!
Running test TODO: HTML bullet list, unclosed tags (bug 5497)... FAILED!
Running test TODO: HTML ordered list, unclosed tags (bug 5497)... FAILED!
Running test TODO: HTML nested bullet list, open tags (bug 5497)... FAILED!
Running test TODO: HTML nested ordered list, open tags (bug 5497)... FAILED!
Running test TODO: Parsing optional HTML elements (Bug 6171)... FAILED!
Running test TODO: Inline HTML vs wiki block nesting... FAILED!
Running test TODO: Mixing markup for italics and bold... FAILED!
Running test TODO: 5 quotes, code coverage +1 line... FAILED!
Running test TODO: dt/dd/dl test... FAILED!
Running test TODO: Images with the "|" character in the comment... FAILED!
Running test TODO: Parents of subpages, two levels up, without trailing slash or name.... FAILED!
Running test TODO: Parents of subpages, two levels up, with lots of extra trailing slashes.... FAILED!
Running test TODO: Don't fall for the self-closing div... FAILED!
Running test TODO: Always escape literal '>' in output, not just after '<'... FAILED!
Reading tests from "/home/brion/src/wiki/phase3/extensions/Cite/citeParserTests.txt"...
Passed 449 of 469 tests (95.74%)... FAILED!
werdna(a)svn.wikimedia.org schrieb:
> Revision: 17935
> Author: werdna
> Date: 2006-11-26 02:54:01 -0800 (Sun, 26 Nov 2006)
>
> Log Message:
> -----------
> * (bug 6295) Add a 'revision patching' functionality, where an edit can be undone (with a functionality similar to diff rev1 rev2 | patch -R rev3 -o rev3). This is triggered by including &undo=revid in an edit URL. A link to a URL that will undo a given edit is shown on NEW NON-CURRENT revision headers on diff pages.
It's bug 6925.
Raymond.