Template talk:Wiki: Difference between revisions

From WikiIndex
Jump to navigation Jump to search
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)

Revision as of 05:08, 28 October 2006

Parameters

How about an ontolgy of this metadata - expressed in RDF it could be harvested from the wikis so people don't always have to update the pages at WikiIndex?

wiki_logo
URL of an image
wiki_URL
URL
wiki_recentchanges_URL
URL
wiki_wikinode_URL
URL
wiki_status
tag (Category:Wiki Status) - selected set
wiki_language
tag/ISO-code (Category:Wiki Language) - selected set
wiki_editmode
tag (Category:Wiki Edit Mode) - selected set
wiki_engine
tag (Category:Wiki Engine) - relatively open set
wiki_maintopic
tag (Category:Wiki Topic) - open
wiki_name
tag (Category:Wiki) - open (this is an optional parameter. If not set the article name is used as wiki name.)

In MediaWiki it could be expored this way but also RDFa is possible. -- Nichtich 09:31, 22 August 2006 (EDT)

link to about instead of RC?

...wouldn't a link to an about page and an author page be WAY more handier than a recent changes? --Smiddle 18:41, 26 August 2006 (EDT)

actually no, a link to RecentChanges shows someone immediately what is happening at the wiki. MarkDilley

boilerplate

Hi Smiddle. Great idea to have the boilerplate info closer at hand when looking at this template. I linked to our actual boilerplate as an alternative to what you did so that way things will always be up to date (no duplication that can become unsynchronized). TedErnst | talk 18:08, 28 August 2006 (EDT)

Seems I manged to figure out how to include the boilerplate here afterall. TedErnst | talk 11:24, 2 October 2006 (EDT)

if template

I notice since the if template was added, there are extra blank lines between the link to the site, the link to RC and the link to the WikiNode. Can we take those blanklines out? TedErnst | talk 11:24, 2 October 2006 (EDT)

Also, now that I think about this more, the entry for "No RecentChanges" or "No WikiNode" can serve as an encouragement for readers of this site to become editors, or editors at those other wikis to create wikinodes. I think that's important. Maybe if a site actually doesn't have a recentchanges page or has choosen to opt-out of the WikiNodes network explicitly (could be explained in comments on their page here), then eliminating those entries in their structured data here makes sense. Otherwise, I think it's still good to show "No WikiNode" and "No RecentChanges." TedErnst | talk 11:30, 2 October 2006 (EDT)

I edited it so that it says "No WikiNode/RecentChanges" instead of just blank. – Smiddle / T·C·S·A 11:34, 2 October 2006 (EDT)

Great - thanks! TedErnst | talk 11:49, 2 October 2006 (EDT)

Now it says [No WikiNode], with squared parentheses, which looks weird. That's kinda why I created the template, to make it with round parentheses. Just an opinion. – Smiddle / T·C·S·A 09:46, 3 October 2006 (EDT)

Author and about pages?

I know not all wikis have namespaces, but I'm sure most would have articles about the wiki and their author. Agree? – Smiddle / T·C·S·A 14:58, 16 October 2006 (EDT)

I agree, it could be the same kind of thing as RecentChanges and WikiNode, where it is optional Minun 15:13, 16 October 2006 (EDT)
Hope the admins agree, too. – Smiddle / T·C·S·A 15:40, 16 October 2006 (EDT)

Here's one person's opinion (not meant to lay down the law): adding a field to the structured data is a real pain in the rear. Wikis without that field end up with a broken entry and then there's a whole lot of data entry to fix everything up. See the Size issue for one way around the problem, making a new template that itself is optional. If you know something I don't about how templates work and can add the fields without breaking all of the entries that don't have those fields, then I'd say go for it. Otherwise, maybe just put links to that info in the body text for the wikis you most care about and see if it catches on as a concept. TedErnst | talk 17:58, 16 October 2006 (EDT)

wiki_name

Smiddle, can you tell me what this edit does? Thanks! TedErnst | talk 17:56, 16 October 2006 (EDT)

If you don't want the link to show as the page name. Example: The page's name is "A", but you want to show the link as "B". then, you enter "|wiki_name=B". 85.30.155.6 09:53, 17 October 2006 (EDT)
Sorry, forgot to login. – Smiddle / T·C·S·A 09:54, 17 October 2006 (EDT)

Ah, very cool! Thanks. TedErnst | talk 16:10, 17 October 2006 (EDT)

wiki_size

If we add a new named (optinal) parameter to the wiki template, we can display a readable default text and can easyly detect size-uncategorized wikis. See my Wiki/suggestion --Peu 18:43, 18 October 2006 (EDT)

Sure wish we'd known this trick about a year ago! I say go for it and make the /suggestion version live. I updated it to include all the fields as optional, the way you have Size. Very good! TedErnst | talk 19:11, 18 October 2006 (EDT)
By the way, what about the link to that wiki's statistics. What are you going to do with that? TedErnst | talk 19:12, 18 October 2006 (EDT)
I think with the other criteria, it will be the same trick, maybe the old pages than need to be purged (sidename?action=purge), that depends on the MediaWiki version and could be done using Wikipedia:Wget . have a good day. --Peu 01:05, 19 October 2006 (EDT)
Sorry, not sure what you're saying here. What I'm saying is that the Size template has not only the link to the size category, but also a link to the place on that wiki where the statistics can be found. If we get rid of the size template, where will we put the link to the statistics? Also, please remember that the whole world isn't running MediaWiki. There are lots and lots and lots of other engines, and we want to make sure they get fair treatment here at WikiIndex. TedErnst | talk 14:10, 19 October 2006 (EDT)
...oh, yes I'm working on it, my first reaction was too quick. Now I'm studying on MediaWiki-Templates on a localhost XAMMP installation, templates are so hard to understand
{{{ {{{ {{ |know |what ||I |mean }} }}} }}} - but I think it could be done in a generic way. The problem is now that given weblink-parameters do not concern to categories, right? --Peu 14:57, 19 October 2006 (EDT)
Sorry, I'm still not understanding. TedErnst | talk 15:47, 19 October 2006 (EDT)
(maybe my english is too poor:)
  • it seems the MediaWiki-Software changed its templating behavior from version to version (I have 2 mediawiki installations for testing: one is version 1.8.1 and one is version 1.5.6). I think i have to install mediawiki 1.6.5. The documentation of templates with default parameters is difficult to understand to me. Smiddle experimanted with templates too. He had added Template:If. I remember my own exercises before 1.8.1...
...My goal was to make a wiki-template that can be used to track (also future) Unknowns automatically, but the technical side is "verflixt zickig"de --Peu 16:22, 19 October 2006 (EDT)
I don't think I'm asking a technical question. Maybe that's our confusion. The current size template has two fields of interest.
  1. The link to the statistics page of that particular wiki. This link depends very much on the wiki engine of that wiki.
  2. The size category.
My understanding of what you're attempting to do is to add #2 to the wiki template, but I'm asking about #1. What will happen with this link? TedErnst | talk 16:50, 19 October 2006 (EDT)
Oh, that I did not mention it: I targeted the Wiki-Template itself, because I think wiki size is important for wikiindex visitors. I would not be here if it wasn't so...The main criteria for each wiki should contain size and the corresponding weblink statistics. I think the layout of Template:Wiki should change therefor. But I have the tech. problems to contribute a working new template. (As I begun to add the Template:Size wiki by wiki, I felt to become confused about the question is a given wiki page size-categorized or not. That's why I stopped adding size tags and began work on a improved wiki template) --Peu 17:23, 19 October 2006 (EDT)

Why not one of the extensions. 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. Dantman 18:01, 26 October 2006 (EDT)

Seems good, I use the 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. --Peu | talk 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. 64.180.238.162 01:08, 28 October 2006 (EDT)