River Tarnell | 1 Oct 08:00 2009

Welcome to mediawiki-l (weekly posting)

Welcome to mediawiki-l.  This mailing list exists for discussion and questions 
about the MediaWiki software[0].  Important MediaWiki-related announcements 
(such as new versions) are also posted to this list.

	Other resources.

If you only wish to receive announcements, you should subscribe to 
mediawiki-announce[1] instead.

MediaWiki development discussion, and all Wikimedia technical questions, should 
be directed to the wikitech-l[2] mailing list.

Several other MediaWiki-related lists exist:
  - mediawiki-api[5] for API discussions,
  - mediawiki-enterprise[6] for discussion of MediaWiki in the enterprise,
  - mediawiki-cvs[7] for notification of commits to the Subversion repository,
  - mediawiki-i18n[8] for discussion of MediaWiki internationalisation support,
  - wikibugs-l[9] for notification of changes to the bug tracker.

	List administrivia (unsubscribing, list archives).
	
To unsubscribe from this mailing list, visit [12].  Archives of previous postings 
can be found at [3].

This list is also gatewayed to the Gmane NNTP server[4], which you can use to 
read and post to the list.  

	Posting to the list.

Before posting to this list, please read the MediaWiki FAQ[10].  Many common 
(Continue reading)

André Meunier | 5 Oct 16:30 2009
Picon

[Fwd: Re: uploads permissions]

Well, I still can't find what's going wrong..
Here is part of my localsettings.php file :

## To enable image uploads, make sure the 'images' directory
## is writable, then set this to true:
$wgEnableUploads       = true;
$wgFileExtensions = array( 'png', 'gif', 'jpg', 'jpeg', 'pdf', 'txt' );
##$wgUploadDirectory = "{$IP}/uploads";

# $wgUseImageMagick = true;
# $wgImageMagickConvertCommand = "/usr/bin/convert";

## If you use ImageMagick (or any other shell command) on a
## Linux server, this will need to be set to the name of an
## available UTF-8 locale
# $wgShellLocale = "en_US.UTF-8";

## If you want to use image uploads under safe mode,
## create the directories images/archive, images/thumb and
## images/temp, and make them all writable. Then uncomment
## this, if it's not already uncommented:
$wgHashedUploadDirectory = false;

## If you have the appropriate support software installed
## you can enable inline LaTeX equations:
$wgUseTeX           = false;

$wgLocalInterwiki   = strtolower( $wgSitename );

$wgLanguageCode = "fr";
(Continue reading)

David Price | 5 Oct 21:44 2009

Gallery - Centre Text

Dear All,

We currently use the "Gallery" function to show pictures in a gallery page.  After uploading the images the
image and image text are added, as per below

<gallery border perRow="5">
Image:LMDC_elevation 1.jpg|Elevation to Carlisle Road
Image:LMDC_corridor.jpg|Main Corridor
Image:LMDC_store 1.jpg|Storage Racking
Image:LMDC_store 2.jpg|Storage Racking
Image:LMDC_elevation 2.jpg|Elevation to Carlisle Road
</gallery>

I cant centre the text within a gallery, does anyone know how to do this.

Many Thanks

David

________________________________________________________________________
This e-mail has been scanned for all viruses by Star. The
service is powered by MessageLabs. For more information on a proactive
anti-virus service working around the clock, around the globe, visit:
http://www.star.net.uk
________________________________________________________________________
David Price | 5 Oct 22:48 2009

Header Centre Text

Dear All,

We currently use the "Gallery" function to show pictures in a gallery page.  After uploading the images
the image and image text are added, as per below

<gallery border perRow="5">
Image:LMDC_elevation 1.jpg|Elevation to Carlisle Road
Image:LMDC_corridor.jpg|Main Corridor
Image:LMDC_store 1.jpg|Storage Racking
Image:LMDC_store 2.jpg|Storage Racking
Image:LMDC_elevation 2.jpg|Elevation to Carlisle Road
</gallery>

I cant centre the text within a gallery, does anyone know how to do this.

Many Thanks

David

________________________________________________________________________
This e-mail has been scanned for all viruses by Star. The
service is powered by MessageLabs. For more information on a proactive
anti-virus service working around the clock, around the globe, visit:
http://www.star.net.uk
________________________________________________________________________
Brian J Mingus | 5 Oct 23:00 2009
Picon

Branching the vector skin in skins/

I made a bunch of modifications to the vector skin but I would like to keep
the original skin available and not get svn conflicts so it makes sense to
copy my new skin over to a new name. I changed all the obvious variables and
made sure to get the things mentioned in the manual (which appears to be for
mediawiki 1.14, but I am using wmf-deploy) but all I get is monobook. Here
are the basic renaming steps I did:

cp -r vector vector_emergent
cp Vector.php Vector_emergent.php
cp Vector.deps.php Vector_emergent.deps.php

SkinVector -> SkinVectorEmergent
VectorTemplate -> VectorEmergentTemplate
$skinname = 'vector_emergent'
$stylename = 'vector_emergent'

You can see the modified skin here (an in-place modification of the vector
skin): http://grey.colorado.edu/emergent
And my attempt to rename it here:
http://grey.colorado.edu/emergent/index.php?title=Main_Page&useskin=Vector_emergent

Any tips greatly appreciated!

/Brian
Trevor Parscal | 6 Oct 00:38 2009
Picon

Re: Branching the vector skin in skins/

On 10/5/09 2:00 PM, Brian J Mingus wrote:
> I made a bunch of modifications to the vector skin but I would like to keep
> the original skin available and not get svn conflicts so it makes sense to
> copy my new skin over to a new name. I changed all the obvious variables and
> made sure to get the things mentioned in the manual (which appears to be for
> mediawiki 1.14, but I am using wmf-deploy) but all I get is monobook. Here
> are the basic renaming steps I did:
>
> cp -r vector vector_emergent
> cp Vector.php Vector_emergent.php
> cp Vector.deps.php Vector_emergent.deps.php
>
> SkinVector ->  SkinVectorEmergent
> VectorTemplate ->  VectorEmergentTemplate
> $skinname = 'vector_emergent'
> $stylename = 'vector_emergent'
>
>
>
> You can see the modified skin here (an in-place modification of the vector
> skin): http://grey.colorado.edu/emergent
> And my attempt to rename it here:
> http://grey.colorado.edu/emergent/index.php?title=Main_Page&useskin=Vector_emergent
>
> Any tips greatly appreciated!
>
> /Brian
> _______________________________________________
> MediaWiki-l mailing list
> MediaWiki-l <at> lists.wikimedia.org
(Continue reading)

Don Krause | 6 Oct 02:27 2009
Picon

Re: Header Centre Text

Search for "gallerytext" in the css files your skin uses. (In ours,  
it's in main.css in our custom skin directory)

Find the entry for "gallerytext"

Add "text-align: center;" to the definition of div.gallerytext.

Save, refresh, enjoy!

FWIW, our div.galleytext definition:

div.gallerytext {
	overflow: hidden;
	font-size: 94%;
	padding: 2px, 4px;
	text-align: center;
}

Regards,

--
=Don=
"This message represents the official view of the voices in my head"

On Oct 5, 2009, at 1:48 PM, David Price wrote:

> Dear All,
>
> We currently use the "Gallery" function to show pictures in a  
> gallery page.  After uploading the images the image and image text  
(Continue reading)

Caitlin Dempsey | 6 Oct 17:15 2009

SVG Error

I am trying to enable SVG on my wiki but I keep getting the error  
message pasted below.  I have the following in my localsettings.php  
and my image/thumb directory is set to 777:

$wgEnableUploads		= true;
$wgUseImageResize		= true;
$wgUseImageMagick = true;
$wgImageMagickConvertCommand = "/usr/bin/convert";
$wgImageMagickTempDir = true;

$wgUseCommaCount 		= true;

$wgFileExtensions[] = 'svg';
$wgAllowTitlesInSVG = true;

$wgSVGConverter = 'ImageMagick';

ERROR MESSAGE:

Error creating thumbnail: sh: wmf2eps: command not found
convert: Delegate failed `"wmf2eps" -o "%o" "%i"'.
convert: unable to open image `/tmp/magick-XXgCofEd': No such file or  
directory.
convert: unable to open file `/tmp/magick-XXgCofEd': No such file or  
directory.
convert: missing an image filename `PNG:/home/thecatho/public_html/w/ 
images/thumb/b/bd/Test.svg/462px-Test.svg.png'.

________________________________
Caitlin Dempsey
(Continue reading)

Alessandra | 6 Oct 19:04 2009
Picon

Javascript and Permissions?

Hi all,

I created a form with extension:Simple Forms. I use
extension:ExtAuthDB and extension:AdminWhiteList to read users and
their permission.
I'm using mediawiki 1.14 release. I created a javascript code that I
added into index.php so that it is always loaded.
Well, I tested that with admin this js code works instead, with simple
user this js code does not work.

I have got other mediawiki site with 1.14 release with wiki user and
permission system; so that I tested form with extension:Simple Forms
and javascript code. js code works with admin and simple user.

I tested form with extension:Simple Forms and javascript code (plus
extension:ExtAuthDB and extension:AdminWhiteList to read users and
their permission) in 1.15.1 release and js code works only with
administrator..

js code works with admin with $wgUseAjax = true; line and $wgUseAjax =
false; line.
Can you help me about where I could search error about permissions/js?

My js code is simple:

function multrtpcr(f,i) {
 var A, B, C;
 if (i == 0) {
  A = document.forms[f].a.value;
  B = document.forms[f].b.value;
(Continue reading)

sebastien bracq | 6 Oct 16:14 2009
Picon

Re: [Fwd: Re: uploads permissions]


> Date: Mon, 5 Oct 2009 16:30:28 +0200
> From: ameunier <at> ulg.ac.be
> To: mediawiki-l <at> lists.wikimedia.org
> Subject: [Mediawiki-l] [Fwd: Re:  uploads permissions]
> 
> Well, I still can't find what's going wrong..
> Here is part of my localsettings.php file :
> 
> ## To enable image uploads, make sure the 'images' directory
> ## is writable, then set this to true:
> $wgEnableUploads       = true;
> $wgFileExtensions = array( 'png', 'gif', 'jpg', 'jpeg', 'pdf', 'txt' );
> ##$wgUploadDirectory = "{$IP}/uploads";
> 
> # $wgUseImageMagick = true;
> # $wgImageMagickConvertCommand = "/usr/bin/convert";
> 
> ## If you use ImageMagick (or any other shell command) on a
> ## Linux server, this will need to be set to the name of an
> ## available UTF-8 locale
> # $wgShellLocale = "en_US.UTF-8";
> 
> ## If you want to use image uploads under safe mode,
> ## create the directories images/archive, images/thumb and
> ## images/temp, and make them all writable. Then uncomment
> ## this, if it's not already uncommented:
> $wgHashedUploadDirectory = false;
> 
> ## If you have the appropriate support software installed
(Continue reading)


Gmane