[00:51:33] ReferenceError: importScript is not defined [01:13:12] importScript is deprecated, I think. [01:13:22] mw.loader.something() maybe? [01:58:59] https://en.wikipedia.org/w/index.php?search=importScript&title=Special:Search&profile=advanced&fulltext=1&ns2=1 <-- 31,296 results... [01:59:04] ok [02:02:17] Sveta, just because stuff on wikipedia is referring to it, doesn't mean every wiki will have it defined at the top of the page [02:02:34] i'd like to define it at mine 1.30 [02:03:02] why? [02:04:07] or if you tell me what mw.loader.something to use, i'd be ok with that [02:04:13] to not keep 2 scripts in 1 file [02:05:31] mw.loader.load will probably do the trick [02:08:10] otherwise you can depend on the mediawiki.legacy.wikibits module which should give you importScript - it's only included by default if your wiki has $wgIncludeLegacyJavaScript on [02:32:51] ok [02:35:18] is mw.loader.load also quicker? [02:38:46] and is there a unique article identifier, which is available in a gadget, which does not change when a page is moved? [02:38:54] Checked https://www.mediawiki.org/wiki/Manual:Interface/JavaScript but don't see any. [03:02:16] http://dpaste.com/1HZ4Z30.txt in special:mypage/common.js produces a table that's not sortable, presumably whatever script that makes tables sortable runs before my script? [03:02:27] how to work around that? [04:23:18] For unique article identifier, I was told it is wgArticleId. that works. [08:13:51] I had a working local instance of the mediawiki core till yesterday but today, i am getting the following error with apache2: https://dpaste.de/mMa4. Can someone pls help? [08:56:51] I had a working local instance of the mediawiki core till yesterday but today, i am getting the following error with apache2: https://dpaste.de/mMa4. Can someone pls help? [10:11:52] Hello [10:12:11] How could I search for signs like = and / [10:12:50] Trying to search for template variable contents with variable=/, so all the pages that have that variable and begin with a forward slash [10:21:25] harmaahylje: using cirrussearch? [10:25:36] Sveta: don't have that [10:26:44] Think I will export all the pages as xml and parse it from there [10:30:35] i just put {{template|variable=/}} on my user page, and a search for "variable=/" in double quotation marks returned it [10:30:45] harmaahylje: ^ [10:38:24] Sveta: doesn't work for me, it returns everything [10:38:36] public wiki? link? [10:38:43] it specifically bolds the "variable" part but not =/ [10:38:50] not public atm [10:39:31] so if I search for "variable=/" with quotation marks, I get everything, like: variable=asdfsafsd [10:40:13] however, if I search for "variable=/a" I get everything that begin with /a [10:40:34] but I specifically need something like /* [10:40:48] so everything that begins with / [10:57:54] ok [10:58:59] if i use variable=asdfsafsd, then "variable=/" says no results [10:59:16] need more info about your setup, your mediawiki version, what extensions you have installed ([[Special:Version]]) [10:59:25] will be able to come back tomorrow i think [10:59:40] evening time here [11:29:42] Sveta: no need, I don't think that there is a sane way [11:29:52] And I already solved that by exporting the data as XML and parsing it from there [11:30:16] Sveta: but thanks a lot for your help, once again! [12:47:10] where mediawiki stores passwords? [15:34:56] hey there! i'm trying to include template parameters like {{{1}}} inside a on my wiki, but they're not being substituted. any ideas why that is, or if theres another way i can make a citation template? [15:35:57] lemonlake: what does a citation template do? [15:36:35] well i have some auto generated pages on my wiki, and instead of having to do {{SERVER}}/A/B/C, i'd like to make a template that automatically inserts the given some fields [15:36:55] like {{MyCite|A|B|C}} [15:38:02] what does the ref tag do? [15:38:45] https://www.mediawiki.org/wiki/Help:Cite [15:39:30] footnote [15:39:31] right [15:41:02] could you replace the 1 etc with something meaningful [15:41:14] I don't understand why mediawiki promotes things like using numbers for 'variables' [15:41:22] it was just an example [15:41:26] nobody knows the heck they are supposed to input in them [15:41:27] the issue still occurs [15:41:36] regardless of using named paramters or not [15:41:37] maybe you could show your template? [15:41:48] my example shows the problem just fine [15:44:17] but if you insist: https://hastebin.com/tepicudine.vbs [15:44:27] anywhere else in the template, {{{team}}} etc are dispalyed as intended [15:44:46] but inside the tag (even inside the name attribute) they are shown exactly as {{{team}}}, as if they were in [15:44:47] how about the template you are using that in? [15:44:54] ? [15:45:14] maybe the ref tag doesn't allow showing template variables [15:45:26] well thats exactly my question..i already figured that out [15:45:32] my question is, what should i do instead [15:45:37] to create a citation template [15:46:41] I don't really know, tried to do a similar thing with some extension using tags, and nothing worked inside [15:46:46] don't think there is a solution [15:46:55] but I don't know about your problem really [15:46:59] then dont answer [15:47:01] does anybody else know? [15:48:08] right, will not answer to you by your request [15:52:50] ah, after digging through some helps on some old wikis i foudn the solution [15:53:28] {{#tag:ref [15:54:09] is #tag provided by core or some extension? [15:54:17] wouldn't have a clue [15:54:33] gotta try that myself [15:54:53] ahh here we go, [15:54:55] > Since Cite's tag is parsed before MediaWiki's parser functions (e.g. {{#ifexpr:…}}) or variables (e.g. {{PAGENAME}}) or before subst:, these will not work inside of citation references. Instead, you have to use the magic word {{#tag:…}}. [15:55:16] https://www.mediawiki.org/wiki/Help:Magic_words [15:55:19] #tag is listed here [15:56:40] thank you [19:08:28] Hello [19:29:21] Tuju: mediawiki stores passwords in the user table: https://www.mediawiki.org/wiki/Manual:User_table [19:52:34] Has someone a hint, how to setup the database on a bananapi? (similar to a raspberry pi)? It fail althoug the credits are correct [19:53:45] Not familar with bananapi, but setting up db shouldnt differ very much between platforms. What errors are you getting? [19:54:36] I really don't know much about dbs, mediawiki tells me, it can't connect [19:55:51] I'm using bananian, which is very similar to raspbian (a debian-derivat) and tried mariadb [19:58:26] Make sure the db is started, make sure you are using the right server address for db [19:59:28] if you are using 127.0.0.1 as db server address try using localhost instead (or vice versa. Theres some weird special casing that sometimes happens with php and localhost as db server) [19:59:39] It says the service is running and as an address it already suggested localhost [19:59:59] Ok, try 127.0.0.1 instead [20:00:31] also test that you can access db from command line with mysql command line tool [20:00:35] Just reeinstalling the db right now [20:01:23] Going to try that now [20:01:33] usually "localhost" means connect to mariadb through a unix socket (on the default location), while 127.0.0.1 (or another IP) means connect to a IP and port [20:02:10] Do i need to a a db to mysql [20:05:35] Im not sure i understand [20:06:34] *to add a [20:06:37] Somehow missed the d [20:07:29] I've tried both, simply setting up and already creating a db called "wiki" [20:08:38] cryptkiddie[m]: If you already have a database server and know the root password for it, the MediaWiki installation script can create a new database for you. [20:08:49] cryptkiddie[m]: just run the installation script. [20:08:55] cryptkiddie[m]: If you don't know the root password, for example if you are on a hosted server, you will have to create a new database by hand. [20:09:05] cryptkiddie[m]: https://www.mediawiki.org/wiki/Manual:Installing_MediaWiki#Create_a_database [20:09:35] No, it's fully selfhosted [20:10:19] And the installation script is to copy the files to the webserver's folder and visit then it prompts me some steps [20:11:10] Mediawiki can create the db for you automatically [20:12:18] if you're getting connection error, that happens before tge create db step. If its choking on creating a db, you will get a different error [20:12:41] Ok. [20:13:13] But why doesn't it connect? [20:13:19] Using Mysql from bananian-repo [20:15:29] Did you try using 127.0.0.1 as the server instead of localhost? [20:15:50] I tried, made no difference [20:16:19] other possibilities would be maybe if you have something like SELinux setup or some sort of firewall, but i doubt thats true in a bananapi [20:16:58] are you able to connect from the command line with the mysql command? [20:36:06] Not to shure, but I will have to stop now, thanks for your help [20:55:16] see you later cryptkiddie[m]