Hi all,
I have a small patch to submit. I got dev access. However, I'm getting a
"Permission denied (publickey)" error when attempting to clone the core. I
did look at
https://www.mediawiki.org/wiki/Gerrit/Advanced_usage#SSH_and_.22permission_…
and
I'm not quite sure what needs doing after doing "ssh-add ~/.ssh/id_rsa"
Do we need to put the fingerprint of the Gerrit server somewhere? How?
Thanks!
Below is the patch, the purpose of which is to have the HOLDS check match
"book", but not "bookworm" when the field that allows for multiple values
is "book".
--- CargoSQLQuery.php.old 2015-12-03 20:28:37.266335782 -0500
+++ CargoSQLQuery.php.new 2015-12-06 02:49:11.726587301 -0500
@@ -556,19 +556,19 @@
$fieldName = $virtualField['fieldName'];
$tableName = $virtualField['tableName'];
- $likePattern1 = "/\b$tableName\.$fieldName(\s*HOLDS
LIKE\s*)/";
+ $likePattern1 =
"/\b$tableName\.$fieldName".'[^0-9a-zA-Z$_](\s*HOLDS LIKE\s*)/';
$foundLikeMatch1 = preg_match( $likePattern1,
$this->mWhereStr, $matches );
$foundLikeMatch2 = $foundMatch1 = $foundMatch2 =
false;
if ( !$foundLikeMatch1 ) {
- $likePattern2 = "/\b$fieldName(\s*HOLDS
LIKE\s*)/";
+ $likePattern2 =
"/\b$fieldName".'[^0-9a-zA-Z$_](\s*HOLDS LIKE\s*)/';
$foundLikeMatch2 = preg_match(
$likePattern2, $this->mWhereStr, $matches );
}
if ( !$foundLikeMatch1 && !$foundLikeMatch2 ) {
- $pattern1 =
"/\b$tableName\.$fieldName(\s*HOLDS\s*)?/";
+ $pattern1 =
"/\b$tableName\.$fieldName".'[^0-9a-zA-Z$_](\s*HOLDS LIKE\s*)/';
$foundMatch1 = preg_match( $pattern1,
$this->mWhereStr, $matches );
if ( !$foundMatch1 ) {
- $pattern2 =
"/\b$fieldName(\s*HOLDS\s*)?/";
+ $pattern2 =
"/\b$fieldName".'[^0-9a-zA-Z$_](\s*HOLDS LIKE\s*)/';
$foundMatch2 = preg_match(
$pattern2, $this->mWhereStr, $matches );
}
}
- Ed
Oops! Please forgive that I included the entire digest in my response. I know better than that... :-(
:::: Every company in the industrialized world today, regardless of their product or service, is in some way selling goods created using repackaged oil. -- Thom Hartmann
:::: Jan Steinman, EcoReality Co-op ::::
Tim,
The MediaWiki Stakeholders' Group recently surveyed MediaWiki users with
regards to their use of the software. We summarized the results and the raw
anonymous data on MediaWiki.org
<https://www.mediawiki.org/wiki/2015_MediaWiki_User_Survey>. It might be
worth looking into.
Additionally, we did ask respondents if they would like to be contacted for
follow up discussions. We have yet to do so, but perhaps this question
would be a good time to engage these folks. Let us know if you'd like to
work together on figuring a way to best handle outreach.
Yours,
Chris Koerner
clkoerner.com
Hi I doubt there is away to do this, but anyone have any thoughts on making Media Files embedded on a wiki page responsive? I'm currently designing a site on the foreground skin, which is a responsive skin, but all files using the Mediawiki syntax [[File: ]] are by default not responsive. Of course one could allow the use of the html img tags, but it would nice if there's another solution. I was thinking it could be done by css, maybe something like:
<div class ="responsive">[[File: ]]</div>
But I'm not sure what to reference via css, or if it could be done this way (I think the File embed will ignore any css, but maybe I'm wrong). Anyone have any thoughts on this? Thanks
Sent from my iPad
Hi all,
Does anyone know whether there is a way to construct an SVG from
MediaWiki templates?
I'd like to include diagrams in my wiki pages, but to preserve the edit
history I'd like to have each diagram as a wiki page in its own right.
Rather than force people to use SVG code directly, I'd like to "hide"
it in templates, so that you can create a page like this:
{{Diagram Start}}
{{Diagram Object
| Type = Arrow
| X = 0
| Y = 0
| Direction = Left
}}
{{Diagram End}}
The templates would then expand into SVG code using the site's style,
and you could embed that SVG in the articles you want as if it's any
other image, e.g. with [[Image:Example.svg]].
Is there any way this could be achieved with existing extensions?
Many thanks,
Adam.