[02:04:14] It's nice to see some activity in this channel. [02:20:28] How can localhost have random edits: https://de.wikipedia.org/wiki/Spezial:Beitr%C3%A4ge/127.0.0.1 ??? [02:21:33] MGC: there have been some bugs over the years that caused this, i think. sorry, i don't have any documentation handy [02:22:19] MGC: apparently https://en.wikipedia.org/wiki/User:127.0.0.1 links to some docs [12:21:41] hi [12:22:21] i have this for images /f/f9/image how do i check the hash that made f+f9 [12:22:22] ? [17:20:37] is there a way to add markup to wikitables to specify what data type is each of the columns? [17:21:54] phiofx: If you mean for the point of sorting, see https://www.mediawiki.org/wiki/Help:Sorting#Specifying_a_sort_key [17:27:09] bawolff: no, I mean to add metadata to specify eg. column 1 is datetime, column 2 is numeric etc. so that when a client gets the data they have some idea how to process it. I can add my own but was wondering whether there is a canonical way linked to the wikibase or maybe semantic wiki projects [17:28:03] No, nothing like that. Maybe in something like SemanticMediaWiki there would be [17:28:21] Perhaps, something with mircodata (that's not really on a MW level though) [17:29:29] bawolff: hmm, yes, havent been able to find something pure mediawiki. the semantic extension seems to handle that if you compile a table from individual records, but I already have a standard wikitable [17:29:52] SMW is a fairly heavy solution to the problem [17:31:53] bawolff: ha ha, yes. but I have it installed already, the problem is that I'd have to decompose the (long) table into new records and I don't want to do that unless I absolutely have to :-) [17:34:18] bawolff: I think I will go with a hack for now [21:33:35] how to check if any named parameter was used in template [21:34:18] for example "anyparameter=anything" [21:35:10] {{{anyparameter}}} [21:35:21] will get replaced by "anything" in your example [21:35:36] or you can {{{anyparameter|default value if anyparameter is missing}}} [21:35:53] anyparameter in meaning i don't know the name [21:36:13] you'll need some way to calculate the name though, no? [21:37:08] i'm about case {{template|my content=good content}} and template handle {{1}} [21:37:55] {{template|1=my content=good content}} [21:38:11] will work as expected with {{{1}}} [21:40:00] it's how it works curently, but sometime people adding content like {{template|1=my content | good content}} and it's going to 1st parametr [21:40:47] i like to write {{template|content}} and if {{2}} exist then warn [21:43:13] probaly best sulution is write it like {{template|2=}} or content= and check {{1}}, but there billion pages.... [21:51:44] or mediawiki can check if 1 already assigned :) [21:56:12] {{#if:{{{2|}}}|Some warning here [[Category:You can also categorize such pages]]}} [21:56:23] requires Extension:ParserFunctions [21:57:26] if tests for whether or not the first thing passed to it (after the colon) is blank or not. So you can have a parameter with a default value of blank, to see if that parameter was given [21:59:33] https://wiki.gentoo.org/wiki/User:Cronolio/test_for I already done it [22:03:38] without 1= [22:05:12] right, the 1= is only required if the content contains an equals sign in it [22:05:17] and you want to use {{{1}}} [22:07:58] historically it's use {{{1}}} :)