[01:22:30] Is there an easy way to move the logo on the sidebar above it for the theme "Vector"? [01:23:09] I want to blend it with the background image I set and not the sidebar [01:23:57] Or do I need to edit VectorTemplate.php? [01:27:55] https://pastebin.com/WyB6h60K [01:28:37] I tried moving lines 164-168 but had no success in getting it above the sidebar [09:49:37] Hi all, where can I find the code of "File List" https://www.mediawiki.org/wiki/Special:ListFiles ? [10:00:19] simo27: mostly under "pagers" [10:04:23] Nemo_bis mywiki/includes/pager ? [10:08:57] OK I found it, includes\specials\SpecialListFiles.php [14:40:20] Hi all, hope you can help me again. On https://www.mediawiki.org/wiki/Special:ListFiles you can search uploaded files by username. Is it possible to search also by id? So by username and id? Or is it only possible to search by username? [14:41:16] Only ID [14:41:18] Uh, username [14:41:36] While userid is exposed in various places, it's generally not expected to be used for general usage [14:41:46] The API for that might accept an ID with no problem [14:53:40] Reedy so the code needs to be edit [17:04:07] I'm trying to edit the sidebar but can't figure it out. I want a section called Categories, and below that to list the categories. [17:04:23] So * Categories [17:04:24] ** Special:Categories|Categories [17:04:58] ... But this gives a section called Categories, then a subsection called Categories that is linked to the categories. [17:05:18] But I want the actual categories to be listed there instead. [17:06:06] And I don't understand this syntax: ** mainpage|mainpage-description [17:06:23] How do I change mainpage-description? [17:08:03] https://www.mediawiki.org/wiki/MediaWiki:Mainpage-description [17:08:17] quantum, the syntax you see there is based on Messages, so it can be localized. You can see the translation for english by opening the page MediaWiki:Mainpage-description and for any other language by putting the language code behind it, e.g. for german MediaWiki:Mainpage-description/de [17:08:44] quantum, the same goes for the mainpage (the first part), which is used as the link target. [17:09:33] quantum, what do you mean with "I want the actual categories to be listed there"? If I understand you cotrrectly, and you mean showing all the categories of your wiki in the sidebar: That's not possible as of my knowledge. Out of curiosity: Why do you want to do that? [17:11:10] Agh, now I've changed mainpage-description to Home, and it doesn't take me to the main page anymore. [17:11:27] Just a blank page named Home. [17:11:35] then you didn't change mainpage-description [17:11:44] but instead you changed mainpage, maybe? [17:11:53] I thought the first operand is the directive and the second only a description. [17:12:33] The second is the displayed string in the left sidebar, the first one is the name of the page you want to link to (or an absolute URL). [17:12:38] This is what I used: MediaWiki:Mainpage-description&action=edit [17:13:30] Yeah, then it should only change the displayed string, not the target you link to. [17:13:43] do you've a link to your wiki? [17:13:43] I did not modify MediaWiki:Mainpage [17:13:56] https://unofficial-tesla-tech.com [17:14:34] https://unofficial-tesla-tech.com/index.php?title=MediaWiki:Mainpage [17:14:38] The content is "Home" [17:14:53] edited by "Carl": https://unofficial-tesla-tech.com/index.php?title=MediaWiki:Mainpage&action=history [17:15:09] Right. But hitting Home now gives a blank home page rather than the mainpage. [17:15:11] change it back to "Main page" (or whatever page you lik) and it will change the target of the link ;) [17:15:23] Yes, what did you expect otherwise? [17:15:27] But I want it to be called Home. [17:15:37] It is called Home ;) [17:15:49] Agh. [17:15:51] https://unofficial-tesla-tech.com/index.php?title=MediaWiki:Mainpage-description This one names the link on the left sidebar [17:16:02] https://unofficial-tesla-tech.com/index.php?title=MediaWiki:Mainpage This one is the target page it links to [17:16:11] Someone changed both to be "Home" ;) [17:16:37] where should it link to instead? Neither Home, nor Main page seem to exist (anymore) [17:18:01] The original default page. [17:18:37] The original default page (Main_page) does not exist either. [17:18:50] However, to do so, just delete the page https://unofficial-tesla-tech.com/index.php?title=MediaWiki:Mainpage [17:19:30] I only have a link to Create it. [17:20:05] More has only Protect. [17:21:16] Ok, I see. [17:21:25] quantum, sorry, but are you the only one editing the wiki? The page was already deleted now ;) [17:21:47] Yes. Just did that. But Mainpage is still names Main page. [17:21:49] Hi, I'm on the way to migrate an old MediaWiki 1.20.3 (db MySql) on windows to 1.23.1 running MySQL/MariaDB hosten in the cloud where I'm only have access over ftp and the db (no command line access). Any suggestions on how to best do this migration? [17:23:09] quantum, do you mean the name of the page? So, the title when you're on the page? [17:23:19] Yes [17:23:31] That you can only change if you move the page to another title (including changing the link with https://unofficial-tesla-tech.com/index.php?title=MediaWiki:Mainpage). [17:23:46] Or by using https://www.mediawiki.org/wiki/Manual:$wgAllowDisplayTitle [17:24:45] Just did the first, and again I've lost the default page. [17:25:48] Doesn't make sense. [17:27:02] Ok deleted it again and back to default. There has to be some way to rename the main page. [17:27:31] Yes, there is: First, move the main page to the desired page name [17:27:50] Then, create the https://unofficial-tesla-tech.com/index.php?title=MediaWiki:Mainpage page and put the name of the new page into it ;) [17:29:34] How do I do the first step? [17:30:36] Go to the main page and on the top right you've the "More" section, there should be a "Move" action [17:31:55] b_nny, you could upload the new MediaWiki and run the installer again. It will see that there's a schema and a LocalSettings.php already and will upgrade the schema. See also the upgrade guide and especially the db schema update part: https://www.mediawiki.org/wiki/Manual:Upgrading#Web_browser [17:32:34] However, 1.23 is already quite old and out of support for a long time as well (since April 2017), see https://www.mediawiki.org/wiki/Version_lifecycle [17:32:43] FlorianSW: Ok I've done that now but when I click on Home in the sidebar I get: "There is currently no text in this page." [17:32:50] b_nny, So probably, upgrading to this version is not your last upgrade you really should do ;) [17:33:20] quantum, you need to create the page "MediaWiki:Mainpage", not "Mainpage". [17:33:34] You created https://unofficial-tesla-tech.com/index.php?title=Mainpage but you should create https://unofficial-tesla-tech.com/index.php?title=MediaWiki:Mainpage [17:34:43] Agh, I think I've finally got it. [17:35:24] What's the diff between Mainpage and Main_Page? [17:35:50] Some capitalisation and an underscore [17:36:01] Ar ar ar... [17:36:18] Main_Page is the default mainpage [17:36:25] But you can change it to any other page, if you want [17:36:26] no, these are complete different pages :P [17:36:40] https://www.wikidata.org/wiki/MediaWiki:Mainpage [17:36:56] MediaWiki:Mainpage is in the MediaWiki namespace and serves special purposes. [17:37:54] Oh God... [17:42:55] what happens if I change the main page to Mediawiki:Mainpage [17:43:19] You'll just get a mainpage that display Mediawiki:Mainpage [17:44:12] Now I've lost the default page. I renamed MediaWiki:Mainpage to Default. [17:45:10] I want to move what's in the MW default Main Page down under Tools, but I've lost it now.. [17:46:44] Starting to look like I can't figure this out. [17:47:14] No idea of the mechanism, nor the relation of Mainpage to Main_Page. [17:47:46] https://unofficial-tesla-tech.com/index.php?title=Main_Page doesn't exist [17:47:51] https://unofficial-tesla-tech.com/index.php?title=Mainpage just says home [17:48:15] ... and I've lost the MW normal default home page. [17:48:19] https://unofficial-tesla-tech.com/index.php?title=MediaWiki:Mainpage says the latter is defined as your home [17:48:35] 17:30, 13 January 2020 Carl talk contribs moved page Main Page to Home without leaving a redirect [17:48:39] https://unofficial-tesla-tech.com/index.php?title=Home [17:48:51] Yup. [17:49:12] I want to move the normal MW default page, to under Tools. [17:49:24] ... but it's lost now. [17:50:10] It's at https://unofficial-tesla-tech.com/index.php?title=Home [17:50:17] It's missing from the sidebar [17:50:26] Though, Home is at the top? [17:50:47] https://unofficial-tesla-tech.com/index.php?title=MediaWiki:Sidebar&action=history tells you what you've changed [17:51:15] Yes I want to move https://unofficial-tesla-tech.com/index.php?title=Home to down under Tools. [17:51:28] ... named Default. [17:51:57] What I've changed doesn't help ssince I have no idea of the structure of this. [17:52:10] What is Special:Mainpage? [17:52:12] It doesn't exist [17:52:24] Something I tried. [17:52:26] The docs are at https://www.mediawiki.org/wiki/Manual:Interface/Sidebar [17:52:45] ... flopping around. [17:53:18] This action should be straightforward and sensible. But it seems I'm caught in a tarbaby. [17:53:53] I've already fscked up my wiki. [17:54:51] Back to what I think you were originally trying to do... [17:55:04] You'll probably need to manually list the categories [17:55:16] AFAIK no function exists (without writing it) to list all categories automatically in the sidebar [17:55:53] Ok. But no sense in going on, with the fundamental problem that doesn't make any sense. [17:56:38] No wonder Wikipedia doesn't mess with the sidebar. [17:57:22] I suspect there'd be feature requests if Wikipedia wanted to do these thigns [17:59:20] hm [17:59:52] is the listing of the site structure needed? [18:02:02] quantum: if you need something like https://archive.blender.org/ than there is naiad skin and the assorted extension [18:02:07] ...extensions [18:02:19] Why the hell doesn't MediaWiki:Home not the title page for the Home default page? [18:02:47] saper: I'm pretty much dead at this point. [18:10:12] MediaWiki:home is a mediawiki "message" called "home", this namespace is pretty special. Mediawiki:Mainpage is the title of the home page [18:12:32] I wanted to rename the normal MW default Main Page, to Default and move it down under Tools. [18:12:52] Reedy: Got me completely messed up. [18:14:01] I don't understand how confused ppl can hold down a job. [18:15:40] pages in the MediaWiki namespace (e.g. MediaWiki:Mainpage) are special "metadata" pages that control how your wiki appears or operates [18:16:12] so the *content* of MediaWiki:Mainpage determines what page name MW views to be your "main page" or "home page" [18:16:32] e.g. if MediaWiki:Mainpage has the content "Default", then a page named "Default" is defined to be your main page [18:16:50] O [18:16:54] other pages in the MediaWiki namespace control what text is shown in the various tabs, or the order of the sidebar, etc. [18:17:27] I just wanted to move the normal MW default Main Page, to Default and move it down under Tools. [18:17:54] you can move the page and update MediaWiki:Mainpage to have "Default" [18:18:02] yep, so move Main Page to Default, then edit MediaWiki:Mainpage and change the contents to Default [18:19:13] to move it down the sidebar, edit MediaWiki:Sidebar article and move "** mw-mainpage-url|mainpage-description" wherever needed [18:19:39] Ok I've moved Home to Default. [18:19:42] the contents of MediaWiki:mw-mainpage-url and MediaWiki:mainpage-description pages will be the actual link and the description in the sidebar [18:20:23] quantum: for the sidebar, you might need to add an explicit "* TOOLBOX" entry to define where the toolbox shows up (if it's not already present) [18:20:32] after that, you can move the link for the mainpage below [18:21:38] https://unofficial-tesla-tech.com/index.php?title=MediaWiki:Mw-mainpage-url has no contents. [18:22:01] quantum: for your wiki, the mainpage link is "** mainpage|mainpage-description" [18:22:31] this says that the contents of MediaWiki:Mainpage is the target of the link, and the contents of MediaWiki:Mainpage-description is what is shown as the link text in the sidebar [18:23:04] quantum: sorry, Skizzerz is right, use "mainpage" not "mw-mainpage-url" [18:23:24] by moving that below TOOLBOX, you can reorder it in the sidebar. Note that the sidebar has a two-tier structure: "* heading" is used for headings, and "** target|linktext" is used for links [18:23:46] so you'll need to define a new heading for the mainpage, and then have the mainpage link itself be a ** sub-item under that new heading [18:28:07] Ok https://unofficial-tesla-tech.com/index.php?title=MediaWiki:Mainpage contains Default like it should.. [18:29:29] So editing the sidebar the * items SEARCH, TOOLBOX, etc don't seem to be in the sidebar. [18:30:58] quantum: those are special items. SEARCH only functions on certain skins (like monobook) and displays a search bar in the sidebar [18:31:06] TOOLBOX is that "Tools" section with all the links underneath it [18:31:37] LANGUAGES only appears if you have multiple wikis with different languages set up in a farm [18:31:43] Ok so I've made the mods, but Default now is under Home rather than Tools. [18:31:54] Ah. [18:32:41] I've managed to figure Categories out. [18:32:41] since they're special, you can't directly nest links under them [18:32:49] O [18:32:57] so you need to create a new top-level heading if you want to move the mainpage below toolbox [18:34:26] Ok so I've created DEFAULT and put mainpage there. But it's called Home and resides both there and under Home. [18:34:45] right. So to remove it from the top, delete the first mainpage entry under navigation [18:34:57] to change Home into something else, edit MediaWiki:Mainpage-description [18:38:50] Ok done. But now I don't have a Home page at the top. This will be a new one which I construct. [18:39:10] quantum: the way the fragments (** mainpage|mainpage-description has two fragments: "mainpage" and "mainpage-description") in the sidebar works is: 1) The wiki checks to see if a page MediaWiki:Fragment is defined, e.g. MediaWiki:Mainpage and MediaWiki:Mainpage-description. If so, it uses that. 2) If such isn't defined, it uses the text as-is [18:39:43] if you did all of this just to change the contents of the landing page, you did a ton of work for no real benefit. You can just edit the default main page and replace it with other content [18:39:53] I'm looking for some tips on running browser tests (ruby Selenium) on my computer and also how to update those test to reflect changes I've made. I'm working on a fix in MediaViewer extension. [18:40:13] Can anyone help in that matter? [18:41:05] Skizzerz: No doubt. But I was led on a ring-around-the-rosie by another member. [18:41:47] well at least you have a better understanding of how to *rename* the landing page to something better for your wiki, as well as how to edit the sidebar :) [18:42:15] Skizzerz: Mah, I need to create a Home page so searched on it, and got the Mainpage. [18:42:47] Somehow Mainpage is still associated with Home. [18:42:52] it's a wiki, everything is editable [18:43:07] so that "MediaWiki has been installed page" -- just edit it to say what you want it to say instead [18:43:29] But won't that molest the Default page? [18:44:51] that page is meant to be the home page of your wiki (where they go if they visit your URL directly or click on your logo) [18:44:58] so it should be something relevant to your wiki [18:45:12] It's a redirect from Home to Default. [18:46:29] Ugh, I seem to have fixed the redirect. But need to do the magick to get Hom into Sidebar. [18:46:45] I am scared sh*tless of this sidebar now. [18:47:40] so there's this "History" tab on each page, including the sidebar page. If you mess up, you can click on an "undo" link to revert your changes [18:47:58] play around and see how your edits interact, and check the manual page linked to earlier for more info [18:49:26] So the fragments url:description... How do I construct the URL? Home:Home doesn't appear in the sidebar at all. [18:50:59] home-url:Home doesn't appear either. [18:51:17] quantum: url|description you mean? both are meant to be pages in the MediaWiki namespace. so in that example, you'd edit MediaWiki:Home-url [18:51:25] and the contents of that page will determine what page is linked to [18:51:47] I have to head off for a while, but I'll be back on later (bout an hour or so) [18:52:23] No text on this page. [18:52:33] (MediaWiki:Home-url) [18:52:40] right, you can edit it to add text [18:53:22] Like https://unofficial-tesla-tech.com/index.php?title=Home ? [18:53:34] quantum: it's an internal link, so just "Home" [18:53:42] (without the quotes) [18:54:00] Home|Home doesn't show up in the sidebar. Tried that a while back. [18:54:14] To ask technical (developer) questions should I join #wikimedia-tech channel? [18:54:36] if you're familiar with wiki markup, the sidebar construction of "** home-url|home" is effectively generated as [[{{int:Home-url}}|{{int:Home}}]] [18:55:05] (it's more complex than that in practice, but I don't want to overcomplicate things) [18:55:48] AronMan: chances are nobody here right now knows the answer to your question. This is the right channel [18:56:16] k thx [18:56:30] * Skizzerz afks [19:01:56] home-url:home doesn't show in the sidebar. MediaWiki:home-description whisks me to MediaWiki:Home-description which I've deleted several times. For all common sens, if I create MediaWiki:Home-url and MediaWiki:Home-description as Home, in the sidebar I should be able to write * Home|Home. But it doesn't appear. [19:05:13] With that, I should also be able to say * home-url|home-description since each redirects to Home-url|Home-description but that doesn't show in the sidebar either.