User:Khono

Here's my wiki: Wild Edible Plants.

(resolved) Problem with a template, I want empty/unused variables to leave blank spaces not

 * MediaWiki version: 1.14.0
 * PHP version: 5.2.6 (apache2handler)
 * MySQL version: 5.0.67-0ubuntu6-log
 * URL: http://wildedibleplants.wikia.com/wiki/Template:Bigsitelinks http://wildedibleplants.wikia.com/wiki/Taraxacum_officinale

I'm trying to write a simple template which will create a table. Each variable is to contain only the URL to a link which is to go into the table. All the other formatting is to be done by the template (putting the link in square brackets and giving it a name). I can get all that to work so long as all the variables are filled in at on the wiki using the template. What I haven't been able to do, and I've been trying to use parser functions to do it, is to have empty cells in the table (instead of or whatever) when a variable is empty. I tried using the #if function and I think I used it correctly, but it doesn't seem to work with variables.

The reason I'm doing this instead of just doing it manually is that there will potentially be many links per page when this wiki I started gets going (*crosses fingers*) and I want to start organizing the common, big sites now, keeping them in the same order.

There's probably a simple answer to this but I haven't found it in the help pages I've read...

Thanks for your time

—Khono 00:33, 22 June 2009 (UTC)


 * Problem was resolved by [User:Goldbishop] with examples of parser function extension: #ifeq: Khono 15:32, 9 July 2009 (UTC)