Hi all, I've been trying to get Infoboxes to work on my MW (1.10) for some time now, and got most everything working-- templates, parserfunctions extension, and so on. I was trying to get HTML Tidy, but because I'm on a shared server, my host won't enable the PHP version of Tidy. They keep suggesting I get a VPS or dedicated client, but I'm just a single end-user, so that option's not really financially feasible for me.
They said: Unfortunately we cannot offer any sort of special PHP support if the cPanel/WHM system which is installed on the shared server does not support the option. This is our policy as custom software configurations cause several issues for our shared hosting clients down the road.
Because of this, we can only offer such support to you if you decide to go with VPS or dedicated hosting, as we allow any customizations which are possible for such hosting environments which are your own and not shared with others.
I know that the Sourceforge release of Tidy is multi-platform and is a C library, but I wouldn't have the first idea of what to do with the files after downloading. Do they need compiling into a specific format? Is there a particular way of uploading them (a certain place) or way of executing a particular file/files from MW? I know my server runs Linux, but I don't want to run the risk of damaging anyone else's portion on the server, if that's the concern my host has with me using an external version of Tidy. Of course, if that's not a risk at all, I'd like to see if I can get it working, just so I can get my infoboxes up and running.
Is it doable, or should I just give up on ever having infoboxes? Is there a way to get them working without Tidy? -Azurite
Azurite wrote:
I know that the Sourceforge release of Tidy is multi-platform and is a C library, but I wouldn't have the first idea of what to do with the files after downloading. Do they need compiling into a specific format?
C files use to need compiling :)
Is there a particular way of uploading them (a certain place) or way of executing a particular file/files from MW? I know my server runs Linux, but I don't want to run the risk of damaging anyone else's portion on the server, if that's the concern my host has with me using an external version of Tidy. Of course, if that's not a risk at all, I'd like to see if I can get it working, just so I can get my infoboxes up and running.
It shouldn't risk anyone other's server portion. In fact, you shouldn't be able to. What could happen is that the restrictions in place block you from adding tidy.
Is it doable, or should I just give up on ever having infoboxes? Is there a way to get them working without Tidy? -Azurite
Tidy shouldn't be needed for most infoboxes :S
Hi again, So C files don't need compiling now, and there's no risk of my uploading them (somewhere) damaging other people's websites on our same shared server... but Tidy might not even be necessary to fix my problem? I guess I'll just refer back to my original post at this point-- my one infobox (on http://seventh-star.net/wikific/index.php?title=Yu-Gi-Oh) apparently isn't parsing the #if function correctly, even though I have all the necessary templates for it and I have the ParserFunctions extension installed and (apparently) working correctly. It displays whatever follows a particular #if function declares with raw HTML, both at the start and the end of the infobox. Is this a bug, or is it somehow fixable? -Azurite
<snip>
C files use to need compiling :)
<snip> It shouldn't risk anyone other's server portion. In fact, you shouldn't be able to. What could happen is that the restrictions in place block you from adding tidy.
<snip> Tidy shouldn't be needed for most infoboxes :S
Azurite wrote:
Hi again, So C files don't need compiling now,
I said they do.
and there's no risk of my uploading them (somewhere) damaging other people's websites on our same shared server...
Not if it's correctly configurated.
but Tidy might not even be necessary to fix my problem?
Right, read on.
I guess I'll just refer back to my original post at this point-- my one infobox (on http://seventh-star.net/wikific/index.php?title=Yu-Gi-Oh)
It's always helpful.
apparently isn't parsing the #if function correctly, even though I have all the necessary templates for it and I have the ParserFunctions extension installed and (apparently) working correctly. It displays whatever follows a particular #if function declares with raw HTML, both at the start and the end of the infobox. Is this a bug, or is it somehow fixable?
It's a feature. This template mixes Wikitable syntax with html table syntax... And works! I thought Brion disabled this mixing time ago, but it seems tidy mode let it through.
I've updated http://en.wikipedia.org/wiki/Template:Infobox_animanga/Header to use wiki tables instead of html ones. Now it should work for you.
Hi again,
So C files don't need compiling now,
I said they do.
Actually, you said "C files use to need compiling," which I read as "used to" (as in, they don't anymore). Sorry I misunderstood.
So from what I'm understanding, it's the Infobox animanga/Header template which is causing the problem, in particular, this line: #if: {{{image|}}} | <tr><td colspan="2" style="background: #fff; text-align: center;">[[Image:{{{image}}}|{{#if: {{{size|}}} | {{{size}}} | 250px}}|{{{caption|}}}]]</td></tr>
I tried grabbing the code from Wikipedia, but it looks like it's been reverted by another user. I could grab the last one edited by you in history, though; is that the one you were referring to? Otherwise, perhaps you could just send me the altered code, since it looks like there's no significant difference between the current Wikipedia template and the one I have, which makes me wonder what it is (if not HTML Tidy) that Wikipedia has that allows their #if: statement to get parsed properly.
Thanks for your help! -Azurite
Azurite wrote:
Hi again,
Hi again.
Sorry I misunderstood.
Don't worry :-)
So from what I'm understanding, it's the Infobox animanga/Header template which is causing the problem, in particular, this line: #if: {{{image|}}} | <tr><td colspan="2" style="background: #fff; text-align: center;">[[Image:{{{image}}}|{{#if: {{{size|}}} | {{{size}}} | 250px}}|{{{caption|}}}]]</td></tr>
Right.
I tried grabbing the code from Wikipedia, but it looks like it's been reverted by another user. I could grab the last one edited by you in history, though; is that the one you were referring to? Otherwise, perhaps you could just send me the altered code, since it looks like there's no significant difference between the current Wikipedia template and the one I have, which makes me wonder what it is (if not HTML Tidy) that Wikipedia has that allows their #if: statement to get parsed properly.
Yes, i was referring to http://en.wikipedia.org/w/index.php?title=Template:Infobox_animanga/Header&a... It was that little space what was breaking my conversion. That worked for me (tm) on that article. I've left a message asking why the reversion.
mediawiki-l@lists.wikimedia.org