Ekompute .info | 1 Apr 2009 01:28
Picon

Re: Upgrading Mediawiki

Hi Christensen, I do have access to the Cpanel which provides MySQL and
phpAdmin access. The database after upgrading says 152,714 records and 38.8
MB.

I was just wondering. If the database was written with UTF8 backward
compatibility, can I change it to binary during the Mediawiki installation?
I did that and wonder whether this could be the cause.

PM Poon

On Tue, Mar 31, 2009 at 9:22 PM, Christensen, Courtney <
ChristensenC <at> battelle.org> wrote:

> From Ekompute .info On Monday, March 30, 2009 5:59 PM
> >
> >Hi Christensen, thank you again for your response. When I changed
> permission
> >for LocalSettings.php to 644, it works but all my articles have
> mysteriously
> >disappeared. Maybe I ought to execute update.php, as has been mentioned
> many
> >times previously, although I set up using the Mediawiki installer. I have
> >asked my webhost to do it. Will have to wait and see after they have done
> it
> >to see if I have screwed up again.
> >
> >PM Poon
>
>
>
(Continue reading)

Kenneth Porter | 1 Apr 2009 19:39

Re: Leading or trailing spaces in template parameters

--On Tuesday, March 31, 2009 11:42 PM +0200 Jean-Marc van Leerdam 
<j.m.van.leerdam <at> gmail.com> wrote:

> Actually, calling {{Test| }} also correctly renders the space, so it's
> probably not the template parameter passing part that is causing your
> problem but the template code that processes the parameter value. Do
> you have more details about the template you are trying to use?

The wiki is a public wiki hosted by Wikia.

>From <http://www.wowwiki.com/Special:Version> it looks like they're running 
MediaWiki 1.13.4.

The template can be found here:

<http://www.wowwiki.com/Template:Guildbox>

Here's the content (the armory link at the bottom is the one I want to get 
working):

{{Talkpagedoc}}
[[Category:Infobox templates|{{PAGENAME}}]]

<includeonly><onlyinclude>{{Iconbox
|icon = {{{{{faction|Neutral}}} Icon}}
|name = {{#if:{{{name|}}}|{{{name}}}|{{PAGENAME}}}}
|body =
{{#if:{{{image|}}}|<div style="text-align: center; padding: 5px 
0">[[Image:{{{image}}}|200x300px|Image of {{{name}}}]]</div>}}
{{{!}} style="background-color: transparent; width: 100%"
(Continue reading)

Jean-Marc van Leerdam | 1 Apr 2009 21:49
Picon

Re: Leading or trailing spaces in template parameters

Hi,

> [http://eu.wowarmory.com/guild-info.xml?r={{urlencode:{{{server}}}}}&n={{urlencode:{{{name}}}}}&p=1
> {{{name}}} Armory] }}

You first have to find out if the {{{name}}} actually contains the
leading and trailing space. If it does, then the urlencode is your
problem, otherwise the problem lies in passing leading/trailing spaces
to named template parameters.

The following did not work?:

{{Guildbox
 | name =  &#32;M A&#32;
 | server = Bleeding Hollow
 | location = US
 | image =
 | leader = Deadhead {{RaceIcon|Human|Male|Small}}{{ClassIcon|Priest|Small}}
 | level = 1-80
 | type = PvP
 | faction = Alliance
 | accounts = 256
 | web = http://www.ma-wow.com/
 }}

--

-- 
Regards,

Jean-Marc
--
(Continue reading)

James Fitzgerald | 2 Apr 2009 01:12
Picon

If statements in templates not rendering correctly

Hey all,

I am trying to import some WikiPedia articles into a local instance of
MediaWiki and it seems as if the templates are not displaying correctly,
particularly when theres if statements or switch statements.  This can be
seen, for example in this page:
http://youversity.com/tmpwiki/index.php?title=Phish .  I'm using MediaWiki
version 1.13.3.  I believe this version should be equipped to handle
templates with conditional statements...does something need to be enabled in
a settings file somewhere or something?  Any help would be greatly
appreciated.

Thanks.
James
Matthias Korn | 2 Apr 2009 01:29

Re: If statements in templates not rendering correctly

You need to install ParserFunctions:
http://www.mediawiki.org/wiki/Extension:ParserFunctions

Best,
Matthias

Am Wed, 1 Apr 2009 16:12:50 -0700
schrieb James Fitzgerald <fitznd <at> gmail.com>:

> Hey all,
> 
> I am trying to import some WikiPedia articles into a local instance of
> MediaWiki and it seems as if the templates are not displaying
> correctly, particularly when theres if statements or switch
> statements.  This can be seen, for example in this page:
> http://youversity.com/tmpwiki/index.php?title=Phish .  I'm using
> MediaWiki version 1.13.3.  I believe this version should be equipped
> to handle templates with conditional statements...does something need
> to be enabled in a settings file somewhere or something?  Any help
> would be greatly appreciated.
> 
> Thanks.
> James
> _______________________________________________
> MediaWiki-l mailing list
> MediaWiki-l <at> lists.wikimedia.org
> https://lists.wikimedia.org/mailman/listinfo/mediawiki-l
> 

--

-- 
(Continue reading)

Kenneth Porter | 2 Apr 2009 01:52

Re: Leading or trailing spaces in template parameters

On Wednesday, April 01, 2009 9:49 PM +0200 Jean-Marc van Leerdam 
<j.m.van.leerdam <at> gmail.com> wrote:

> The following did not work?:
>
> {{Guildbox
>  | name =  &#32;M A&#32;

No, that definitely failed, passing the encoding string (not actual spaces) 
to the template.

I'll try to bake up a test template to see what's going on with the 
parameter.
Jean-Marc van Leerdam | 2 Apr 2009 07:22
Picon

Re: Leading or trailing spaces in template parameters

Hi Kenneth,

On 02/04/2009, Kenneth Porter <shiva <at> sewingwitch.com> wrote:
> On Wednesday, April 01, 2009 9:49 PM +0200 Jean-Marc van Leerdam
> <j.m.van.leerdam <at> gmail.com> wrote:
>
>> The following did not work?:
>>
>> {{Guildbox
>>  | name =  &#32;M A&#32;
>
> No, that definitely failed, passing the encoding string (not actual spaces)
> to the template.
>
> I'll try to bake up a test template to see what's going on with the
> parameter.
>

It's the {{urlencode: }} that strips the leading and trailing spaces,
according to the mediawiki help at meta [1].

I don't see how you fix that easily, so you may have to use a custom
template to get your preferred URL displayed.

[1]: http://meta.wikimedia.org/wiki/Help:Parser_function#URLENCODE
--

-- 
Regards,

Jean-Marc
--
(Continue reading)

River Tarnell | 2 Apr 2009 08:00

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)

Roland Achermann | 2 Apr 2009 15:18
Picon
Favicon

Re: Left aligned table and bullet list

Good hint, here is my solution (in MediaWiki:Common.css):

table[align=left] {
  margin-right: 20px;
}

This adds 20px margin to all left-aligned tables.

Roland

-----Original Message-----
From: mediawiki-l-bounces <at> lists.wikimedia.org
[mailto:mediawiki-l-bounces <at> lists.wikimedia.org] On Behalf Of Christensen, Courtney
Sent: Montag, 30. März 2009 14:30
To: MediaWiki announcements and site admin list
Subject: Re: [Mediawiki-l] Left aligned table and bullet list

> From: Roland Achermann
> Sent: Saturday, March 28, 2009 1:12 PM
>
> I could add "margin-right: 1.5em;" to the style "table" in file
> \skins\monobook\main.css as a quick fix. But the margin is not needed (not
> wanted) with not left-aligned table.
>
> Roland
>

You could also add this padding only to the left aligned tables.  You can do it in the page, or you can make a new
style in main.css (Or in MediaWiki:common.css if you have access to it.) called .left 

(Continue reading)

Kenneth Porter | 2 Apr 2009 20:17

Re: Leading or trailing spaces in template parameters

--On Thursday, April 02, 2009 8:22 AM +0200 Jean-Marc van Leerdam 
<j.m.van.leerdam <at> gmail.com> wrote:

> It's the {{urlencode: }} that strips the leading and trailing spaces,
> according to the mediawiki help at meta [1].

Thanks for researching that. I guess I could go look at the source for that 
and see what the reasoning for the stripping is. Perhaps it will hint at an 
alternate solution, or perhaps a variant of urlencode that doesn't strip.

Gmane