I have checked in a dead-simple extension "TemplateLink". It should
solve the ISSN issue (and maybe become a replacement for ISBN as
well?), and potentially many more.
Linking to Special:TemplateLink, you can pass a template with
parameters as parameter. The separators "|" of the template have to be
replaced with "::", otherwise the parser will mess up (or I'll have to
mess up the parser;-)
Example:
[[Special:TemplateLink/test::param1=value1::param2=value2]]
links to a special page that will display "Test" (variation
configurable in i18n) as title and
{{test|param1=value1|param2=value2}}
as content.
Potential problems:
* "::" might be confusing. Then again, this will mostly be hidden in
templates like {{ISSN}} anyway
* Limits on template parameters: short, no wiki or HTML markup. Not
fixable unless we move from the [[Special:]] link to tags.
* Loss of page-specific parameters like page title. These can be
passed as an extra parameter to the "stand-alone" template, though.
Magnus
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
brion(a)svn.wikimedia.org wrote:
> Revert r26056 for the moment -- schema change which I don't want to have to run around and apply this second
[snip]
> + # Limit cap made to stop nasty timeouts
> + $sql = "SELECT cuc_ip, cuc_timestamp
> + FROM $cu_changes FORCE INDEX(cuc_user_time) WHERE cuc_user = $user_id
> + ORDER BY cuc_timestamp DESC LIMIT 5000";
Note also that the schema change wasn't back-compatible; after applying
the schema change, the cuc_user_time index would be removed, breaking
the old code above which would continue running until all schema changes
were applied everywhere and the code update got applied as well.
As much as possible, schema updates should apply cleanly onto old code
without breaking, for maximum flexibility in painless upgrades.
- -- brion vibber (brion @ wikimedia.org)
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iD8DBQFG+A57wRnhpk1wk44RAoeEAJ9oxeB01bsUYiPkAKKXqGz0A6NKZQCgrRwH
Ihp/9FCtjvhyGnIdnPGCgkE=
=scFk
-----END PGP SIGNATURE-----
An automated run of parserTests.php showed the following failures:
This is MediaWiki version 1.12alpha (r26060).
Reading tests from "maintenance/parserTests.txt"...
Reading tests from "extensions/Cite/citeParserTests.txt"...
Reading tests from "extensions/Poem/poemParserTests.txt"...
Reading tests from "extensions/LabeledSectionTransclusion/lstParserTests.txt"...
17 still FAILING test(s) :(
* URL-encoding in URL functions (single parameter) [Has never passed]
* URL-encoding in URL functions (multiple parameters) [Has never passed]
* Table security: embedded pipes (http://lists.wikimedia.org/mailman/htdig/wikitech-l/2006-April/022293.html) [Has never passed]
* Link containing double-single-quotes '' (bug 4598) [Has never passed]
* message transform: <noinclude> in transcluded template (bug 4926) [Has never passed]
* message transform: <onlyinclude> in transcluded template (bug 4926) [Has never passed]
* BUG 1887, part 2: A <math> with a thumbnail- math enabled [Has never passed]
* HTML bullet list, unclosed tags (bug 5497) [Has never passed]
* HTML ordered list, unclosed tags (bug 5497) [Has never passed]
* HTML nested bullet list, open tags (bug 5497) [Has never passed]
* HTML nested ordered list, open tags (bug 5497) [Has never passed]
* Inline HTML vs wiki block nesting [Has never passed]
* Mixing markup for italics and bold [Has never passed]
* dt/dd/dl test [Has never passed]
* Images with the "|" character in the comment [Has never passed]
* Parents of subpages, two levels up, without trailing slash or name. [Has never passed]
* Parents of subpages, two levels up, with lots of extra trailing slashes. [Has never passed]
Passed 527 of 544 tests (96.88%)... 17 tests failed!
An automated run of parserTests.php showed the following failures:
This is MediaWiki version 1.12alpha (r26024).
Reading tests from "maintenance/parserTests.txt"...
Reading tests from "extensions/Cite/citeParserTests.txt"...
Reading tests from "extensions/Poem/poemParserTests.txt"...
Reading tests from "extensions/LabeledSectionTransclusion/lstParserTests.txt"...
17 still FAILING test(s) :(
* URL-encoding in URL functions (single parameter) [Has never passed]
* URL-encoding in URL functions (multiple parameters) [Has never passed]
* Table security: embedded pipes (http://lists.wikimedia.org/mailman/htdig/wikitech-l/2006-April/022293.html) [Has never passed]
* Link containing double-single-quotes '' (bug 4598) [Has never passed]
* message transform: <noinclude> in transcluded template (bug 4926) [Has never passed]
* message transform: <onlyinclude> in transcluded template (bug 4926) [Has never passed]
* BUG 1887, part 2: A <math> with a thumbnail- math enabled [Has never passed]
* HTML bullet list, unclosed tags (bug 5497) [Has never passed]
* HTML ordered list, unclosed tags (bug 5497) [Has never passed]
* HTML nested bullet list, open tags (bug 5497) [Has never passed]
* HTML nested ordered list, open tags (bug 5497) [Has never passed]
* Inline HTML vs wiki block nesting [Has never passed]
* Mixing markup for italics and bold [Has never passed]
* dt/dd/dl test [Has never passed]
* Images with the "|" character in the comment [Has never passed]
* Parents of subpages, two levels up, without trailing slash or name. [Has never passed]
* Parents of subpages, two levels up, with lots of extra trailing slashes. [Has never passed]
Passed 527 of 544 tests (96.88%)... 17 tests failed!
in the function isValidPassWord the if condition on wfRunHooks is wrong, at
least it seems a bit strange to me that your hook function should return
false for it to evaluate the $result parameter you return...
this is in the current trunk version of MediaWiki (1.12 alpha), possibly in
earlier versions too...
anyway:
function isValidPassword( $password ) {
global $wgMinimalPasswordLength, $wgContLang;
$result = null;
if( !wfRunHooks( 'isValidPassword', array( $password, &$result,
$this ) ) )
return $result;
should be:
function isValidPassword( $password ) {
global $wgMinimalPasswordLength, $wgContLang;
$result = null;
if( !wfRunHooks( 'isValidPassword', array( $password, &$result,
$this ) ) )
return $result;
Cheers,
Peter.
Hi,
the in mediawiki integrated ajax framework, ist not the one i usually
prefer. Well, I wanna check if atitle exists. If so, return true, else
false.
else if (elem1.value != '')
{
sajax_do_call("wfAjaxValidateTitle", [elem1.value], validateTitel);
//if the article exists, type return false; else return true;
}
function validateTitel(request)
{
if (request.status != 200)
{
alert("Error: " + request.status + " " + request.statusText +
": " + request.responseText);
return;
}
var result = request.responseText;
if (result == 1)
{
$("naw_title").focus();
$("naw_title").className = 'focus';
$("naw_title").value = 'Title already exists';
return false;
}
}
But doing it in this way, it don't work.
regards
mic
An automated run of parserTests.php showed the following failures:
This is MediaWiki version 1.12alpha (r26019).
Reading tests from "maintenance/parserTests.txt"...
Reading tests from "extensions/Cite/citeParserTests.txt"...
Reading tests from "extensions/Poem/poemParserTests.txt"...
Reading tests from "extensions/LabeledSectionTransclusion/lstParserTests.txt"...
17 still FAILING test(s) :(
* URL-encoding in URL functions (single parameter) [Has never passed]
* URL-encoding in URL functions (multiple parameters) [Has never passed]
* Table security: embedded pipes (http://lists.wikimedia.org/mailman/htdig/wikitech-l/2006-April/022293.html) [Has never passed]
* Link containing double-single-quotes '' (bug 4598) [Has never passed]
* message transform: <noinclude> in transcluded template (bug 4926) [Has never passed]
* message transform: <onlyinclude> in transcluded template (bug 4926) [Has never passed]
* BUG 1887, part 2: A <math> with a thumbnail- math enabled [Has never passed]
* HTML bullet list, unclosed tags (bug 5497) [Has never passed]
* HTML ordered list, unclosed tags (bug 5497) [Has never passed]
* HTML nested bullet list, open tags (bug 5497) [Has never passed]
* HTML nested ordered list, open tags (bug 5497) [Has never passed]
* Inline HTML vs wiki block nesting [Has never passed]
* Mixing markup for italics and bold [Has never passed]
* dt/dd/dl test [Has never passed]
* Images with the "|" character in the comment [Has never passed]
* Parents of subpages, two levels up, without trailing slash or name. [Has never passed]
* Parents of subpages, two levels up, with lots of extra trailing slashes. [Has never passed]
Passed 527 of 544 tests (96.88%)... 17 tests failed!
Hi,
I'd like to get some statistics about english
wikipedia database in terms of tables and their sizes.
Can a wikipedia admin give some informations about all
tables and currents sizes in KB,MB or GB for example
the english wikipedia and also commons.
I'd like to know also where are the hooks that make
links between language-based wikipedias and commons.
Which extension is used for this purpose.
Thanks,
Pppswing
_____________________________________________________________________________
Ne gardez plus qu'une seule adresse mail ! Copiez vos mails vers Yahoo! Mail
Hi@All,
I#m not sure this is the right list. I will describe my problem hitting
me over the last days.
I created a specialpage for a kind of wizard. This leeds users to scribe
their articles step by step.
Title -> Categories -> Patterns -> Finally write article.
This information are stored in a wizard-session. In the last step i need
now the editor and put these selections automatically in the textform.
To implement this I took some functions from the editpage.php. But the
great problem: The system tells me I need sysop and show a long long
list toolbarbuttons. Only a few are displayed coorect, the others are
undefinied.
So what' going wrong! I really need some support
regards
mic
Hello,
if you look at for example <http://hy.wikinews.org/wiki/Main_Page> you
get a "Wiki does not exist" page, which has a list of 'Active
Wikipedias'. Obviously this list is not generated through the default
language names like they are provided by the "{{#language:}}" syntax.
Cause the language name of the Low Saxon Wikipedia (nds) is miswritten
"Platdüütsch" instead of "Plattdüütsch". Would be nice if somebody could
correct the standard "Wiki does not exist" template and use the language
names used on the active Wikimedia projects too. There are other wrong
names too.
Thanks
Marcus Buck