1,756
edits
Leucosticte (talk | contribs) |
Leucosticte (talk | contribs) |
||
Line 245: | Line 245: | ||
For populating the [[mw:Manual:interwiki table|interwiki table]], it would also be useful to have parameters for [[mw:Manual:Interwiki_table#iw_prefix|iw_prefix]], [[mw:Manual:Interwiki_table#iw_url|iw_url]], and [[mw:Manual:Interwiki_table#iw_api|iw_api]]. iw_url can probably be inferred in many cases from the recentchanges URL, or maybe there is some other way that an automated script can figure it out. iw_api could be a bit trickier in some cases, since some people store it in /w/, others store it in /mediawiki/, and others don't use any subfolder. There are any number of possibilities. But there might be a way to figure that out too using automated scripts. | For populating the [[mw:Manual:interwiki table|interwiki table]], it would also be useful to have parameters for [[mw:Manual:Interwiki_table#iw_prefix|iw_prefix]], [[mw:Manual:Interwiki_table#iw_url|iw_url]], and [[mw:Manual:Interwiki_table#iw_api|iw_api]]. iw_url can probably be inferred in many cases from the recentchanges URL, or maybe there is some other way that an automated script can figure it out. iw_api could be a bit trickier in some cases, since some people store it in /w/, others store it in /mediawiki/, and others don't use any subfolder. There are any number of possibilities. But there might be a way to figure that out too using automated scripts. | ||
There is quite a lot of data that can be harvested from wikis using [[mw:API:Meta]], and which could be pushed into this template or into another template. That extra data need not even be visible when the template is rendered; in other words, those parameters don't need to actually be used by that template. It could just be there for the benefit of those who use bots to obtain data about wikis. An alternative is that I could just store it in the interwiki whitelist. Perhaps it's better if WikiIndex mostly just have data that requires human intervention to gather, leaving the bot-gathered stuff for other wikis. [[User:Leucosticte|Leucosticte]] ([[User talk:Leucosticte|talk]]) 22:45, 21 November 2012 (PST) | There is quite a lot of data that can be harvested from wikis using [[mw:API:Meta]], and which could be pushed into this template or into another template. That extra data need not even be visible when the template is rendered; in other words, those parameters don't need to actually be used by that template. It could just be there for the benefit of those who use bots to obtain data about wikis. An alternative is that I could just store it in the interwiki whitelist. Perhaps it's better if WikiIndex mostly just have data that requires human intervention to gather, leaving the bot-gathered stuff for other wikis. | ||
I'm thinking that stuff like extensions and namespaces, if they're to be included, should be stored in serialized form. Or there could be an extensions template with extension1, extension2, etc. as parameters, and this could put wikis in categories such as [[:Category:Wikis that use the ViewFiles extension]]. Likewise, there could be a namespaces template that could put pages in categories such as [[:Category:Wikis that have a Debate namespace]]. | |||
It all depends on how you want to store data, and whether you want users to be able to edit it. My guess is that you probably don't want users to edit data that is retrieved by bots, because they'll likely degrade its accuracy rather than improve it. [[User:Leucosticte|Leucosticte]] ([[User talk:Leucosticte|talk]]) 22:45, 21 November 2012 (PST) |
edits