[01:04:54] https://en.wikisource.org/wiki/Template:St-ie [01:05:15] Usual problem of Mediawiki templates getting confused about what's a null and whats an empty text string [01:05:32] Suggestions? [02:00:11] I am trying to use VisualEditor but clicking on edit throws "Error loading data from server: error. Would you like to retry?" error. Please help me to figure it out what went wrong [03:48:31] about that license actually i dont even know that kind.and who made that.all that i think and do was searching for my husband and look what his doing in internet. [03:54:38] before anything i just want to say that dont judge me for all they sent although i didnt say i did that and im not good in this field i dont even know where to ask about this...all just i want is to tell my side...they hacking my phone...and lots of things happen... [03:57:21] just binvestigate before anything else thankyou.all i know is that they`ve done this in their own purpose...thanks [05:11:38] Senator, I knew the Cisco Kid. I served with the Cisco Kid. The Cisco Kid, he was a friend of mine! [06:30:57] got a basic newbie question: i just recently installed mediawiki and i've created 2-3 pages in my wiki, but they don't appear in the left sidebar. Do I need to configure something so that they appear in the left sidebar? I checked the documentation but couldn't find anything. Thanks. (apologies if I should post this somewhere else). [06:32:56] simplesyntax: The left sidebar is configurable at MediaWiki:Sidebar [06:33:54] Oh okay, let me give that a whirl. Thanks [06:34:17] this is Wikipedia's sidebar, for example: https://en.wikipedia.org/wiki/MediaWiki:Sidebar [06:35:37] So do I need to create a sidebar page? [06:35:57] e.g., MyWiki:Sidebar? [06:37:13] simplesyntax, go to MediaWiki:Sidebar [06:37:16] it should already be there [06:38:24] oh ok, cool. Thanks! [06:39:16] The namespaces are already pre-defined. You can change them, but you cannot arbitrarily make a page in a 'MyWiki:Sidebar' and expect MW to know to look for it. [06:40:11] Most projects rename 'Project', eg it's 'Wikipedia' on wikipedia, but I'd say it's a very bad idea to rename the Mediawiki namespace. Users will be looking for it. See simplesyntax, see https://www.mediawiki.org/wiki/Help:Namespaces for more info [06:41:07] Very helpful. Thanks! [08:48:49] hi [08:49:16] thedj: how we are doing with the porblem of jumping style in VE? [10:01:55] Nikerabbit: hey, can you have a look at https://phabricator.wikimedia.org/T87061 [10:02:01] I am wondering what could cause it? [10:02:06] bug in translatewiki? [10:02:23] if apostrophes were really a problem, why some language files are ok and some were not? [10:02:53] it should be already fixed at least in repository but idk what is needed to be done on twn [10:41:56] petan: I replied [10:59:11] Although I'm not sure I rephrased the bug summary in a clear way [12:27:54] is there a canonical way to pass extension's config variables to js? [12:41:20] kynlem_: you might find this helpful-https://www.mediawiki.org/wiki/Manual:OutputPage.php#JavaScript_and_CSS [12:42:45] kynlem_: I believe, if the variable is static configuration (ie Doesn't change depending on use), then use the ResourceLoaderGetConfigVars hook, otherwise use the MakeGlobalVariablesScript [12:43:29] s/depending on use/depending on user [13:13:12] Hi all. Images don't seem to be working as expected on my wiki [13:13:12] http://wiki.project-tamriel.com/wiki/Template:People_Detailed [13:13:12] Any ideas whats happening? [13:16:16] Same here http://wiki.project-tamriel.com/wiki/File:Karthwasten.jpg [13:18:41] Well that's weird [13:19:17] SGMonkey: Do you have $wgGenerateThumbnailOnParse set to false for some reason? [13:19:41] Not that i know of, that in the localsettings file? [13:20:07] or transformVia404 set to true in $wgLocalFileRepo [13:20:13] yes, in LocalSettings.php [13:20:58] $wgGenerateThumbnailOnParse = false; So i should just set this to true yeah? Bam! Problem solved? [13:22:08] yes [13:22:37] Yeah that got it, cheers bro! [13:22:38] When $wgGenerateThumbnailOnParse is set to false, it requires additional setup in your .htaccess [13:22:56] Why would you want that? [13:23:25] Its more efficient if you're a really busy site [13:23:57] And allows you to more easily separate rendering thumbnails and normal wiki access to different servers [13:24:49] Its not something I'd worry about unless you're a really big site [13:25:08] Ahh ok [13:26:02] Sorry to be a pain. I've made use of this template, and i cant figure out how to make its image use a thumbnail instead [13:26:08] http://wiki.project-tamriel.com/wiki/Template:People_Detailed [13:26:46] !image [13:26:46] There are multiple keys, refine your input: imageauth, imagelink, imagemagic, imagemap, images, [13:26:50] !images [13:26:50] For instructions to use images in MediaWiki, see . For more technical details about image uploads, see and . Note that uploads are disabled per default (see !uploads). [13:27:23] but basically - [[File:name_here.png|100px]] makes an image the size of 100px [13:27:37] and [[File:filename_here.png|thumb|Caption text here]] makes a thumbnail [13:29:37] So in that template, you'd probably replace the part that says [[File:{{{image|}}}|frameless|center]] with something like [[File:{{{image|}}}|300px|frameless|center]] [13:30:36] Ahh i get ya, awesome. Thanks bawolff [13:39:55] what is the canonical way to throw an error from a MW extension? [13:41:26] That depends a lot on the context and what type of error it is [13:41:50] If its for some circumstance that should never happen, and you just want to crash and die, you can do [13:41:56] throw new MWException( " [13:42:00] throw new MWException( "error here" ); [13:42:11] (or maybe its just Exception now a days...) [13:43:24] if you're making a parser hook, commonly people output something like
error here
(ideally so {{#iferror: can detect it) [13:49:03] it's from onResourceLoaderGetConfigVars() hook [13:49:33] it checks if the config vars are defined; and if they're not, extension can't proceed [13:51:27] General practise is that all config variables have some sane default, and should always be defined [13:51:45] But if there really is no sane default, I'd reccomend just throwing an exception [14:18:06] hello [14:18:18] I have a question about mediawiki hooks [14:19:01] I'd like to modify raw wiki content of an article before parser add html tags like

and so on… is it possible? [14:19:11] (mediawiki 1.20) [14:21:48] Ok, I killed him [14:23:54] erwyn: yes, that's possible [14:26:06] bawolff: seems I can't find the right hook. any clue for me on how to proceed [14:26:56] erwyn: Sorry, I should have said that instead of just mysteriously saying "yes" [14:27:00] erwyn: Try ParserBeforeStrip [14:27:13] however keep in mind, that includes everything parsed, not just pages [14:27:25] Lots of small little pieces of the interface get parsed too [14:28:15] hacky way around that is to look at $parser->getOptions()->getEnableLimitReport() (since its mostly articles with that set), but that's still rather hacky [14:28:28] bawolff: what do I have to do to get temporary admin bit on MediaWiki wiki to work on the couple hundred pages in Category:JavaScripts using deprecated elements [14:29:05] bawolff: I already tried this one, but I only caught "This page has been accessed 26 times." with a var dump. Not the article content… [14:29:17] Ask Fiona, he'll give it to you (permanently even) [14:29:30] Fiona: ^ [14:29:58] T13|mobile: alternatively, https://www.mediawiki.org/wiki/Project:Requests is the official method, but the cabal of Fiona is easier ;) [14:30:48] * bawolff not a crat, or I'd give you the rights myself [14:32:22] This user is now online in #wikimedia-dev. I'll let you know when they show some activity (talk, etc.) [14:32:22] @notify Fiona [14:45:14] bawolff: Am I doing something wrong? Cause even with just a var_dump it seems that I just have the "This page has been accessed 26 times." [14:45:24] which is quite the footer of the page [14:45:51] erwyn: That hook will get a lot of things, it will get that, but also the full page [14:46:04] But if you have caching, the full page won't get parsed every request [14:46:14] So most of the time you'll only get interface messages [14:46:28] if you put ?action=purge on the end of the url it will force the page to be reparsed [14:47:32] oh thanks. [14:49:26] but I don't have any way to just get the article content to modify it? (sorry, newbie in Mediawiki) [15:26:19] HI all, I was looking to create autolinks that link to pages within a name space [15:26:56] http://wiki.project-tamriel.com/wiki/Template:Settlement_Detailed [15:27:03] But I can't seem to get it to work [15:27:43] I have a quick n00b question. My database wasn't set up properly. Which script do I need to run to make sure it gets initialized properly? [15:30:26] The installer? [15:34:48] Howdy everybody! Google's failed me. I can't figure out which Mediawiki: page holds the content that gets displayed on Special:UserLogin [15:34:51] Where is it?! [15:35:16] bawolff: I'd like something scriptable actually. Also, I'm on a CentOS system [15:35:30] There's a command line installer [15:35:47] Ulfr__: try using ?uselang=qqx on the special:userlogin page [15:36:22] I did! Didn't see anything immediately helpful. I'll try again :| [15:37:19] bawolff: ... I'm not that bright at times. Thanks! [15:37:30] :) [15:48:47] bawolff: that is the installer? php maintenance/install.php [15:49:18] yes [15:49:52] do --help for info [15:50:35] looks good. And it will force the DB to be initalized too? [15:55:35] It should [15:56:11] although I'll note the cli installer doesn't get tested quite as much as the normal installer, so it might be a little beta-ish [15:59:25] If there are any bugs about it, I'll know very soon and report :) [16:00:21] excellent :) [16:36:13] Hi, I had a question about the mediawiki sidebar. On the wiki I edit, one of the sidebar links is in bold. It seemed as if it was because it was linking to the current page (as would a [[ ]] link), but the same occurs on subpages of the linked page. [16:36:35] I'm wondering if there's a way to prevent it from being in bold or prevent it from being in bold on the subpage. [16:37:19] darkid: you should link to it as external page, perhaps [16:37:50] that is, with the full URL rather than the wikilink (though, with normal syntax, wikilink shouldn't be an issue) [16:38:13] You can't control according to which title the sidebar is going to be rendered, because it's heavily cached [16:38:27] It's not currently using a wiki link, it's using the standard sidebar protocol [16:38:51] Can you link your wiki? [16:38:52] Carrot|Carrot but it appears as '''Carrot'''. [16:38:54] Sure. [16:39:01] https://wiki.teamfortress.com/wiki/Main_Page [16:39:03] That's not the normal wya [16:39:08] Ah, I remember this wiki :) [16:39:13] :P [16:39:20] I may be explaining it poorly. [16:40:04] This is quite a mess https://wiki.teamfortress.com/wiki/MediaWiki:Sidebar [16:40:15] Yeah sounds about right. [16:40:25] recentchanges-url|recentchanges [16:40:28] That's ok. [16:40:35] It's the langlink-en stuff [16:40:42] Team Fortress Wiki:FAQ|FAQ [16:40:46] This might be ok or not [16:41:02] darkid/Nemo_bis: its possible to disable sidebar caching if you want to do that sort of thing [16:41:06] there's a config variable [16:41:28] that sort of thing being per page different sidebars [16:41:52] This is a big wiki and valve Corp. wikis are not particularly fast. Probably not a good idea. [16:42:09] Yeah it takes like 1-2 wk to purge right now [16:43:41] * bawolff doesn't understand how that works at all [16:43:47] poorly [16:43:49] with the wrong external links [16:44:19] The external links work fine, it's automatically turning the | into %7C, which breaks the links [16:44:29] Or hell, maybe it's magic. [16:44:33] oh i see [16:44:47] I got confused because sidebar syntax is so horrible [16:44:56] What would you suggest to clean it up :P [16:45:37] Ugh. https://wiki.teamfortress.com/w/index.php?title=MediaWiki:Langlink-ar&action=edit [16:45:40] bawolff: can I bother you a few more seconds ? :) http://weknowmemes.com/wp-content/uploads/2012/02/help-me-obi-wan.jpg [16:47:04] The core template is http://wiki.tf/Template:Mw-langlink [16:50:26] darkid: in MediaWiki 1.24 (or 1.25?) you can just replace the content of that template with [[Special:MyLanguage/{{FULLPAGENAME}}//{{{1|}}}|{{#language:{{{1|}}}]] [16:50:41] Or even in 1.23 if you install the Translate extensions. [16:50:45] * extension [16:50:49] That would involve moving a lot of pages [16:51:08] Since we don't use [[es:page]], we use [[page/es]] [16:51:22] That's precisely what Special:MyLanguage does [16:51:39] of course it's '/', not '//' [16:51:45] ya [16:52:06] I guess we can petition valve to upgrade the wiki again [16:52:10] it took 2 years last time [16:52:31] That should "solve" the bold links for sure, no idea about the caching... this is really not the way to do a language selector :) [16:53:06] Again, without moving pages, what would be a good way to do the languages? [16:54:31] The only system properly supported now is the one where you keep a "master" version in one language and translate in all the others with https://www.mediawiki.org/wiki/Extension:Translate [16:54:52] Because you have a multilingual wiki, you should ask to install MLEB https://www.mediawiki.org/wiki/MLEB [16:55:15] erwyn: I have to go pretty quickly, but what issue are you having [16:55:23] I would like to invalidate cache of an article when a user submit it or edit it so that the parser cache is not used at the next first view of it [16:56:11] darkid: after that, there is a configuration that automatically sends users to the subpage in their language if available, but I don't remember whether it works for non-Translate-powered translations as well (probably yes) [16:56:47] The problem is that users may want to view pages in a lot of languages, i.e. if they're trying to synchronize data. [16:56:53] Or if they know multiple languages. [16:56:58] darkid: and most people would use some site JavaScript to switch languages, as e.g. Wikimedia Commons [16:57:15] erwyn: Try $title->invalidateCache(); [16:57:24] assume $title is the appropriate title object [16:57:31] that will make the page be re-rendered on next view [16:57:32] darkid: yes, the automatic switch is only when you change interface language [16:58:02] darkid: try the language selector at the top of https://www.mediawiki.org/wiki/MediaWiki [16:58:03] erwyn: Parser cache should be auto-invalidated on a page save [16:58:22] erwyn: But if you need it "double parsed" check out the vary-revision flag [16:58:35] darkid: if you have to do a lot of syncing, then you should probably use Translate. Then syncs would be automatic [16:59:18] We have to do an occasional sync, and each case tends to be rather unique. [16:59:26] bawolff: ok I'll take a look at it [16:59:37] thanks btw for helping me :) [16:59:44] erwyn: vary-revision flag is set by doing $parser->getOutput()->setFlag( 'vary-revision' ); [17:00:19] and it basically causes the first time the page is rendered to be thrown away, and then re-render it a second time (whenever someone saves) [17:00:24] Hi there! I have an ancient wiki with moderate amount of personal stuff in it (100 pages or so). Probably due to it being ancient and unmaintained, the mysql files now take many gigabytes. I find it hard to permanently destroy unwanted users/pages. I want to recover all of my important pages. Any ideas on what to do? [17:00:40] its meant for {{REVISIONID}}, since on the first parse, there is no revision id (as its not been inserted in db yet) [17:00:51] Nemo_bis: I'll look into Special:MyLanguage, since it seems less intrusive, but I'll also check out Extension:Translate. [17:00:59] Aldaron: did you already delete spam (with action=delete)? [17:01:04] darkid: ok [17:01:06] Aldaron: first thing first, delete everything in objectcache [17:01:48] bawolff: okay, sounds good [17:02:21] Nemo_bis: no (and identifying all spam, probably about a million pieces of it judging by mysql row counts, seems daunting) [17:03:25] bawolff: parser is provided by article object am I right? [17:03:36] bawolff: do I need some extension for that? (just googled for it) [17:03:46] no, not from article [17:04:03] Parser may be available if your doing something from a hook that is called in the parser [17:04:06] otherwise you can't use it [17:04:40] Aldaron: if you can list your 100 pages, you should also be able to list the others [17:05:47] Nemo_bis: All of my pages form a tree that is accessible from the front page. The spam pages seem to be unlinked. I was hoping I could use this somehow [17:06:02] bawolff: okay thank you. I have to go, but I'll try it tomorrow. Thank you for you support [17:06:09] Aldaron: if all the "good" pages were created by you, for instance, you could make a list of all titles *not* created by you (with a SQL query), then run php maintenance/deleteBatch.php, then run php maintenance/deleteArchivedRevisions.php [17:06:14] good luck [17:06:51] Aldaron: before you start deleting stuff, see if there's some way you could break down how much space is used by each table (I'm sure mysql must have a command to do that) [17:07:03] Nemo_bis: okay, that sounds good. There were some created by others, but very few actual authors [17:07:10] then you'll be in a better positon to know what you need to delete [17:07:12] Aldaron: well, if all else fails I can teach you a trick to export those pages [17:07:30] ok [17:07:50] Aldaron: what wiki is this? [17:08:36] bawolff: "show table status". Seems most data is in wiki_externallinks, wiki_objectcache, wiki_revision, wiki_searchindex and wiki_text (all with Data_length of 100000000 or more) [17:09:24] Nemo_bis: random scribblings for me and friends - we used it much like we'd use google docs today [17:09:42] wiki_objectcache is entirely ephemeral cache. Everything in it can be deleted [17:09:59] delete * from objectcache? :) [17:10:16] wiki_text can also potentially be compressed (there's a script to do it) if you're short on space [17:10:26] I usually do truncate objectcache; [17:12:10] Aldaron: "we used it much like we'd use google docs today" that hurts so much [17:12:17] Because it's so true. [17:12:57] Nemo_bis: what does this trick do? I'd be happy to export the pages to static html (but mirroring a mediawiki seems to be hard, as wget follows all menu links), or to create a blank new mediawiki thing and pull those pages over [17:13:02] Nemo_bis: heh :) [17:13:38] Nemo_bis: Ah, so just like WMF? [17:13:58] OTOH Finland has always been ahead, most other countries didn't switch from wikis to GDocs because they never used wikis [17:14:25] bawolff: yeah; and also many others if WMF manages to further reduce MediaWiki usage ;) [17:14:31] :D [17:37:06] i use mediawiki vagrant. i simply do cd vagrant and then vagrant up. then i open 127.0.0.1:8080 that opens my mediawiki. I want to know how do i get admin panel or password so that i be confirm that i m a sysop. Coz of this i m not able to use translate extn [17:37:36] Probably i m not a sysop now. [17:40:27] Abhi_: use user admin with password vagrant [17:43:49] valhallasw`cloud: i dont get any interface to enter these credentials. [17:44:33] Abhi_: use the login link on the top right? [18:41:19] @seenrx Fiona [18:41:19] T13|mobile: Fiona is in here, right now (multiple results were found: RedFiona) [18:42:14] Huh. Thought that use to include a time since last message. [18:42:28] @seen Fiona [18:42:28] T13|mobile: Fiona is in here, right now [18:50:43] This user is now online in #wikimedia-dev. I'll let you know when they show some activity (talk, etc.) [18:50:43] @notify Fiona [18:59:51] https://www.change.org/p/lila-tretikov-remove-new-superprotect-status-and-permit-wikipedia-communities-to-enact-current-software-decisions-uninhibited?after_sign_exp=member_sponsored_donation] [19:05:19] Hola? [19:08:34] leoms: Hola [19:08:43] leoms: te puedo ayudar en algo? [19:15:17] Hi! I am trying to get a table centered and without borders (both around of the table and inside). [19:15:32] I used: class="wikitable" style="margin: auto; border: 2px solid white;" [19:16:01] However, this produces "vertical grey borders". [19:16:12] How to remove the internal borders? [19:43:52] heh, purgeOldText.php gives "packet bigger than 'max_allowed_packet' bytes [19:44:08] How could I find a hostname for cleanupSpam.php ?! [19:48:47] ahhh, it's not the hostnames of spamming users, but hostnames listed in spam [19:49:05] I can click random pages (will always be spam), pick an address, .. [23:16:20] What is the special page which allows one to pass a pageid and it redirects to the target page? [23:16:27] [[Special:Foo/somepageid]] [23:19:39] never mind... I found [[Special:Redirect/user/123]]