"Wikitravel has a speed and convenience the books' publishers can only envy." Time Europe

Tech:ParserFunctions

From Wikitravel Shared
Jump to: navigation, search

Moved from en:Wikitravel:Feature requests by Evan

Hi Evan, allthing is right with Wikitravel:it. I'd like to use some "if" conditions in the wiki code. I asked in the Italian Wikipedia and they say I have to installa an extension for MediaWiki... This http://meta.wikimedia.org/wiki/ParserFunctions is the link they gave me. The "if" condition would be great for some templates... maybe is already possible to use it, I tried but I didn't obtain what I wanted: http://wikitravel.org/it/Template:Citta . Dennis 17:36, 18 June 2006 (EDT)

Hey, Dennis. Feature requests need to go on en:Wikitravel:Feature requests. My understanding of the parser functions extension -- from its authors! -- is that it considerably slows down performance of the server. Is there any way you can work around not having the parser functions? It seems like parameter defaults should work fine for what you're doing. --Evan 17:49, 18 June 2006 (EDT)
I'm not big expert. I'd like to crete a common Template for cities. But there could maybe be some cities which don't have something the others have (for ex: the name of their inhabitants). I'd like to make this parametere ("name of inhab.") optional. Is there some other way then the parser funcions, then? Dennis 12:54, 19 June 2006 (EDT)
I've added this extension and tested it on my test system. It's rolled out on wikitravel.org live right now (again, it's a tool, community can make decisions about what to do with them). I'm a little nervous about it (when the author of some software discourages its use, you have to wonder...), but let's see how it works. --Evan 22:08, 2 July 2006 (EDT)

Variants

Actions

In other languages