Template talk:Wiki: Difference between revisions
Jump to navigation
Jump to search
no edit summary
No edit summary |
|||
Line 76: | Line 76: | ||
Why not one of the extensions. [http://meta.wikimedia.org/wiki/ParserFunctions Parser Functions] has the If, Ifeq, and Switch functions which could be used to allow the Wiki template to be edited so that things show up under only certain circumstances. The Ifs would show up in neater code, and the size, and statistics could be added to the template in a way that they only act when about wikis with certain WikiEngines. [[User:Dantman|Dantman]] 18:01, 26 October 2006 (EDT) | Why not one of the extensions. [http://meta.wikimedia.org/wiki/ParserFunctions Parser Functions] has the If, Ifeq, and Switch functions which could be used to allow the Wiki template to be edited so that things show up under only certain circumstances. The Ifs would show up in neater code, and the size, and statistics could be added to the template in a way that they only act when about wikis with certain WikiEngines. [[User:Dantman|Dantman]] 18:01, 26 October 2006 (EDT) | ||
: Seems good, I use the [http://meta.wikimedia.org/wiki/ParserFunctions parser functions] already in my 1.8.1 MediaWiki in a few cases (#ifexist for subpages). For this 1.6.x version MediaWiki we have to make little changes to the extension. I'm not so experienced with templates and extensions as to decide wich technique would be better. --[[Wolf Peuker|Peu]] | <small>[[User talk:Peu|talk]]</small> 09:38, 27 October 2006 (EDT) | : Seems good, I use the [http://meta.wikimedia.org/wiki/ParserFunctions parser functions] already in my 1.8.1 MediaWiki in a few cases (#ifexist for subpages). For this 1.6.x version MediaWiki we have to make little changes to the extension. I'm not so experienced with templates and extensions as to decide wich technique would be better. --[[Wolf Peuker|Peu]] | <small>[[User talk:Peu|talk]]</small> 09:38, 27 October 2006 (EDT) | ||
::I use 1.7.x at The Gaiapedia on wikia, and I plan to expand that to our own server sometime. But the parserfunctions have allowed me to create templates that I could never create otherwise. Ifexist could be used to make the specified logo only display when it is there. Actually, the Google Analytics extension would be nice to see so that possibly wikis who use it could track the productivity of them listing on WikiIndex, Or externally embeding a logo so that it stays up to date or it's viewage on the page could be tracked to understand how much the page is viewed. | |||
::Templates call a function that calls another page, and parserfunctions call a function that handles the content. So efficiency wise parserfunctions are better than a if template. Also the Switch function can be used to create content on the template that would only appear for certain circumstances, such as special sections for different WikiEngines. Also parserfunctions code is a lot less messier than code using the if template. [[User:64.180.238.162|64.180.238.162]] 01:08, 28 October 2006 (EDT) |