[02:22:20] Is there a steward I can talk to about not closing my wiki pages for inactivity? [02:31:37] You can request a Dormancy Policy exemption on the [[Stewards' noticeboard]], though it may take a few days to get a response, as we're light on Stewards at the moment [02:31:37] https://meta.miraheze.org/wiki/Stewards%27_noticeboard [02:31:38] [02:35:22] Thank you! [02:35:33] You're welcome! [02:51:46] Why dont new parameters for infoboxes show up if you add them to the Template page? [02:52:50] For example, I was looking at other wikis and they seem to have the ability to add parameters to their infoboxes, but when I import the infobox from that exact wiki, it won't let me add them. Or if I copy the syntax, it won't let me wrap the line below, but instead, places it directly next to the existing line [02:54:41] the left is from the original wiki, the right is from mine [03:00:43] the only way I could do this is this gross edit. Is there a way to make the Patron saint and National ideology show up like the Motto and Royal Anthem do? [05:25:03] How do I export templates from wikipedia to my wiki? [05:25:15] I got this [05:25:21] But then idc what should I do next [05:29:44] first of all, you better not importing templates from Wikipedia lol [05:30:26] be ready to suffer w/ errors [05:30:41] errors always happen w/ WP imports [05:31:11] depending on what template you want to have, there are always alternatives [05:38:47] [1/3] now, onto my own question [05:38:47] [2/3] I'm having pages in main namespace w/ prefixes [05:38:47] [3/3] if I create custom namespace of the prefix, I'll still will have to manually convert those existing pages? [05:39:32] I would recommending moving said pages elsewhere before creating the namespace [05:39:39] Then moving into the namespace [05:40:03] fair [05:40:12] Iirc if you dont it could break the pages [05:40:24] got it [05:40:43] I believe ManageWiki runs the right script automatically [05:40:44] thanks [05:45:12] Apparently not [05:45:28] If anything breaks, ask SRE to run namespaceDupes.php [05:47:01] [1/3] the big music related MH wiki I looked at as example has big chunk of same type articles w/ dates, all in main namespace w/ normal articles, but the problem was w/ sorting and I decided to use "prefixes" [05:47:01] [2/3] now I realised that it doesn't look good in AllPages, there's gonna a lot of such articles and they will take a big chunk of the list [05:47:01] [3/3] so I thought, maybe give them custom namespace w/ content flag? [05:47:58] will have to add some sort of note in AllPages tho [05:59:46] I poked around general UI styling and it made ManageWiki tolerable for my eyes lol [06:07:22] [1/2] silly question, because I don't know anything about DPL but like [06:07:22] [2/2] say I want to have dynamic list page which should show all content pages [06:07:47] those include main namespace and couple of custom ones [06:08:17] can I have flags/checkboxes which will hide show pages by namespaces? [06:08:57] like, can this actually be done w/ DPL/3 or will require some additional hoops like js? [07:08:50] You can show all pages by namespace with DPL3, yeah [07:08:57] You can also filter by category [07:09:39] You could show all pages from "Fruits" category that are in the main and Character: namespace for example [07:10:18] Keep in mind the maximum results it will show are 500 iirc, for more you need pagination [07:15:13] or doing it the evil way and using multiple dpl calls [07:16:32] Oh like dynamically? [07:16:57] Then you'd need to add some js I'm afraid [07:17:59] hmmm [07:18:45] A simplier way would be to have each namespace in its own collapsible section [07:20:02] and pagination, it's not simple? [07:20:25] Not sure, haven't had a reason to try it yet [07:21:18] I know `@`Michael.S has more experience with that if you need [07:22:13] I just tried to only combine pages by namespaces and the list isn't even alphabetical [07:22:27] You can sort with a separate parameter [07:22:39] I can't seem to find it [07:23:29] I use this [07:23:50] There was also a similar guide on Miraheze but it moved to WikiForge it seems [07:23:56] yeah I'm here <:ThinkerMH:912930078646730792> [07:24:07] on fandom [07:24:21] Controlling output order? [07:25:18] `ordermethod=title` [07:25:32] And `order=ascending/descending` [07:25:54] The guide is an odd format, takes a while to find anything at first haha [07:26:51] ah [07:26:54] thanks [07:28:25] what if in tabs? [07:29:04] Should work [07:52:31] yeah, seems to look fine, but something in my css breaks tabber lol [07:57:05] that's another evening for extensive css poking <:pupCoffeeMH:766487840694599711> [09:08:22] how do i fix this [09:08:25] its really annoying [09:08:36] it shows the name of the page as the page it redirects to [09:09:04] so "please make a flag for this area" redirects to Please make a flag for this area and it shows up as the page it redirects to [09:19:40] is anyone else having trouble with what seem like random images becoming unavailable? [09:22:49] https://discord.com/channels/407504499280707585/407537962553966603/1128052936610689325 [09:23:21] More if you scroll down a bit [09:25:08] help? [09:25:54] hm. is there a rough eta on how long there will be jiccups? [09:26:52] it's most likely something w/ display title [10:11:01] We can't help without a link <:pupCoffeeMH:766487840694599711> [10:11:53] Not any right now, you'd have to ask paladox [10:50:14] Speaking of space, I've mentioned this before but TimedMediaHandler transcode defaults don't make much sense to me and seem like a waste of cpu time and time (even if all the transcoded files are a fraction of the source file size). TMH includes a shim to play ogg files so transcoding .ogg audio to mp3 seems entirely superfluous. [10:50:53] For a single basic soundless vp9 video file, TMH generates almost double its space in extra transcodes in horrible quality, most of which are impractical for any viewing anyway [11:10:29] worth of noting in #tech-community I think [12:43:19] Then uh how do I create a military conflict box [12:53:33] [1/5] easiest way is PortableInfobox extension [12:53:33] [2/5] you enable it and then code templates w/ its code, or create a simple infobox w/ visual builder [12:53:33] [3/5] basically you try to make the same thing as WP infobox but w/ other means [12:53:34] [4/5] if it has fancy things, like several images together, that will require fancier coding - it's possible to do w/ guides, but still requires some knowledge/experience/practice [12:53:34] [5/5] I personally think that other wikis don't have to replicate WP one to one, they can make things simpler and still understandable [12:55:48] [1/2] visual infobox builder will be available at `Special:InfoboxBuilder` page after you enable the extension [12:55:49] [2/2] bear in mind that its functionality is limited, it creates a simple infobox, but it can be enhanced later w/ manual coding [12:55:59] [1/2] for coding guides check links here [12:55:59] [2/2] https://discord.com/channels/407504499280707585/407537962553966603/1048292890050318427 [13:04:26] Does anyone here use the TwitterTag extension and have it still working? [13:06:46] Geez that’s hard and confusing my small brain can’t understand [13:09:23] It's nested tag grouping. Dive in, and it'll become apparent how it works. [13:25:13] it seems scary when you just look at it [13:25:28] HTML, the very basic of the web, works like that [13:26:10] on my opinion, any wiki admin should get hold of some coding sooner or later [13:26:30] this includes other types of templates as well [14:20:55] Twitter API itself has been broken for a while, the issue isn't on plugin/wiki side. Even their own documentation has demo feeds broken. https://developer.twitter.com/en/docs/twitter-for-websites/timelines/overview [14:23:42] Yeah, I figured as much. Just didn't know if there was an update or something that'd have fixed it. Although, the next update to the extension wants to force me to update mediawiki, which I really don't wanna do. I'm not on miraheze, but the wiki originally was so I figured I'd ask here. [14:25:53] Keep an eye out on https://publish.twitter.com, once it works (and if you wiki feed still doesn't then), it might be worth looking for options. For now I've taken twitter feed off my wiki mainpage and replaced it with just a link [14:27:04] Mind boggles that such, uh, fundamental functionality can be broken at a billion dollar corp and nobody bats an eye for over a week, but here we are 🤡 [14:56:35] i mean i imported infoboxes from wikipedia i had to go through all the errors and fix em but apart from that i personally dont think it matters how you solve it importing and making your own are just two solutions for 1 problem [15:51:43] what are the measures being taken to accommodate so many images on Miraheze? [15:59:31] Sounds like additional storage was setup for swift (not sure if that means an additional instance or what) [16:00:16] One thing I would like to maybe do is go through (as a personal project of mine) is cleanup mh commons and see if theres unused files that wouldnt be missed [16:01:00] And maybe do similar for meta (as I’m sure theres old files there that wouldnt be missed) [16:01:36] I mean it probably wouldnt make a dent, but im of the mindset every little bit helps [16:06:53] [1/2] That could help. But i'm not sure people use Mh Commons that much. [16:06:53] [2/2] Wikis from people of the community have the majority of files [16:07:20] why was mh commons ever created? [16:08:33] IIRC the idea was to make it easier to use files on multiple wikis without having to upload on several wikis locally easier (but i could be wrong) [16:25:55] There is a category on there with unlicensed images most of which can likely be deleted [16:27:44] I’ve done that some, but there are a lot of images [16:40:46] yes, I was about to ask the same question... [16:41:27] All wikis are facing it I believe [16:43:16] so it's gonna be fixed along the day right? [16:43:47] see #announcements [16:44:09] no eta was stated currently, please be patient <:pupCoffeeMH:766487840694599711> [16:44:10] thanks 😄 [18:46:56] So Miraheze is moving files to new servers? [18:47:16] Yep [19:24:06] bump [19:25:56] better make thread in #support , because thing get lost here quickly, and better drop links, I don't really get what you might mean by parameters here, etc [19:26:15] My wiki is private so i dont know if youd be able to see it [19:26:34] Basically, how can I make infoboxes say whatever I want, where I want them? [19:27:09] A loaded question, especially given the fickle nature of infoboxes, but if I change the syntax in the template, why wouldn't the parameter be universal like Population or Area? [19:27:34] [1/2] what kind infobox you are having (table, portable, Lua) [19:27:35] [2/2] which editor you are using (visual, source) [19:28:13] this might take a lot of looking so I still suggest to create support thread [19:28:37] Template: Infobox country [19:28:44] nope [19:28:59] well, did you imported from Wikipedia? [19:29:11] Originally but I got rid of it and got it from iiwiki [19:29:20] I use both editors, but mainly visual [19:29:32] idk what is iiwiki [19:29:38] is it on Miraheze? [19:29:47] https://iiwiki.us/wiki/Main_Page [19:29:52] It uses mediawiki [19:31:08] well, it's Lua, same stuff as WIkipedia [19:31:26] Ah well [19:31:34] I like their styling [19:31:44] I didn't know it was strictly for wikipedia [19:31:46] styling can be achieved just w/ CSS [19:32:22] well, you can make WP templates work on another wiki, it just takes a lot of time chassing up errors [19:32:35] and beraly possible to maintain in the long run [19:32:47] in case something breaks [19:33:39] I guess you skipped mine, Rhinos' and Xena's reasoning why we advice people use alternatives [19:33:53] however [19:35:48] [1/2] if you don't get serious errors, I still don't quite get what you want to achieve [19:35:48] [2/2] `infobox country` uses a basis template `infobox` [19:36:18] you want to give `infobox country` new parameter? or change something w/ values? [19:37:09] If you see on the bumped image [19:37:33] The new parameters - National ideology and Patron saint, are smushed into the original parameters of the infobox [19:37:47] I want to create a whole new section for the aforementioned new parameters [19:38:12] You see how motto and anthem are nice and neat? [19:38:21] That's because the styling lets those parameters have their own sections [19:38:28] I want to do that with custom parameters [19:40:02] [1/2] did you read documentation here? [19:40:03] [2/2] [19:41:28] I have but I'm going to be honest, it's very confusing. I don't have extensive knowledge on CSS [19:41:41] it's not about CSS [19:42:00] Ok, well I don't understand like half of the documentation haha. [19:42:50] (fellas, CSS is just design thing, you don't to call any web coding CSS lol) [19:43:05] no offense, but I see people doing this often lol [19:44:50] ok [19:45:01] I still don't know how to add custom parameters [19:45:05] lemme check [19:48:26] do you copy all the stuff (pictured) of that moto/anthem blog and change words to what you want? [19:51:04] I copied what the original wiki had for their infobox, which had the line added to the motto section but displayed nicely [19:51:14] and i imported this exact infoxbox from this wiki onto min [19:52:09] look [19:52:22] this is a code you do on article [19:53:04] if you want to change how infobox works you should edit the template itself, i.e. `Template:Infobox country` [19:53:29] That's literally what I was asking [19:53:39] On how I can change the template [19:53:52] the code in my screenshot is fragment of how that anthem is actually code [19:53:54] So it populates and adds the paraneter whenever I need it [19:54:12] you keep bringing up article code [19:54:42] you see all those red, green and orange highlighted code? [19:54:49] You might need to read [19:55:02] If you aren't sure how templates work [19:55:27] Those docs are written super complicated. [19:55:58] Is there no way I can just go into the syntax of the template and add the parameter? I don't get how I can edit it so it gets to the color code? [19:56:04] man, I wish I could bookmark my old messages [19:58:42] you should go to `Template:Infobox country`, open it in source code, find where that anthem/moto block starts and ends, copy it - paste it right under it, then change words for parameters + rearrange the `class`/`data` parameters (which belong to the basis, `Temaplte:Infobox`), so your infobox funstion properly [19:59:43] Ok, I can do that until you mentioned rearranging numbers. What do you mean by that [20:01:25] [1/3] it's the order of parameters [20:01:25] [2/3] anthem belongs to class2/data2 [20:01:26] [3/3] it's followed by data3, data4, and so on [20:01:53] when you copy/past that blog, logically, it should become class3/data3 [20:02:19] and then numbers of all next classX/dataX should be updated too [20:02:46] that's how these infoboxes work [20:03:03] [1/2] ok, so in my code data 1 is for motto and class2 is anthem [20:03:03] [2/2] if the two new parameters follow, it should be data2 and so on? [20:04:09] example [20:05:05] you got data2 for idealogy already, anthem should be class3/data3 [20:06:01] and the next parameters, which already existed, should be updated as +1 [20:06:23] +1 from the last existing data/class in the infobox? [20:06:24] you can't have two different parameters w/ the same number [20:07:06] So if it goes to 135, it should be 136 [20:07:10] like, whatever is data3 should be changed to 4 [20:07:13] yeah [20:10:48] Doesn't work. It doesn't show up in the visual editor for the infobox [20:13:37] I'm on mobile [20:14:21] if you want templates to work in VE it requires additional coding w/ TemplateData extension [20:14:39] Ok, so for it to work I have to only use the source editor for the time being [20:14:48] idk if this infobox already had it, if it does then it has to be updated too [20:15:34] Alright well it doesnt even work with source editor [20:15:47] Why these things cant just be modular is beyond me [20:15:55] But it literally just makes me want to rip my hair out [20:20:28] that's why experienced admins like me and Xena suggest people use different means of infobox coding [20:20:42] PortableInfobox [20:21:35] Can portableinfobox be stylized to look identical to the ones on Wikipedia [20:21:42] yes [20:22:19] at this point I'll give a go and ask Agent to share whatever he made of it [20:22:32] So, I have to delete the original template infobox country, and get the Portableinfobox version of it? [20:22:39] And that one is modular? [20:22:41] I doubt Cosmis will implement WP styling in extension itself soon [20:23:21] you'll have to code it from scratch [20:23:24] i have portable infobox apparently [20:23:30] in my extensions [20:24:03] [1/2] it's easier code wise [20:24:03] [2/2] but implementing fancy formatting still requires some knowledge [20:24:16] like that moto/anthem block [20:24:25] Are there any presets or pre made versions that I can use? [20:24:41] I basically know nothing when it comes to programming [20:24:55] I'm an author, not a programmer. [20:26:06] you might try to find something and import from FANDOM [20:26:25] the majority of infoboxes over there are made in PI [20:26:36] Nothing on that iiwiki site is anything I can use right? [20:26:38] because of Lua [20:27:09] maybe some wikis on Miraheze done that too, but that's probably harder to find [20:27:43] infoboxes over there are 100% Lus [20:27:55] they aren't independent [20:28:08] they all use the basis called simply Infobox [20:28:38] and it's still not easy to build w/ [20:35:28] [1/2] today's intro about PI btw [20:35:28] [2/2] https://discord.com/channels/407504499280707585/407537962553966603/1128308094561173646 [20:42:17] there is a fix [20:42:43] disgussing yourself as googles crawler in your own software makes you able to grab stuff from twitter [20:42:55] lmao [20:43:43] it's incredibly funny how they didn't account for that but like why would they [20:54:17] might need to add mention of #support in this channel's description [21:43:38] maybe we could benefit from an infobox channel with the PortableInfobox guide pinned [21:53:05] we really need to add "do not import from wp" section in big bold letters in faq lol [21:55:10] I wanted to make some stuff on dev wiki but gonna be honest, I don't have energy for that atm, I haven't touched my own wiki for a month probably [21:56:15] aside from adding news snippets [21:57:21] is there a way to make a "if (thing) or (thing2) or (thing3)" with the parser function? im skimming through the mediawiki page but dont see anything like it [22:08:10] The `{{#ifexpr:` parser funcrion can use "OR" and "AND" [22:08:45] It's not in the documentation though <:ThinkerMH:912930078646730792> [22:08:54] Does anyone known of a fancy way to generate a link using the {{PAGENAME}} magic word? [22:08:54] https://meta.miraheze.org/wiki/Template:PAGENAME [22:09:53] e.g. you are on the mh version of this page, for the wikipedia version see [[w:{{PAGENAME}}]] is what I'm trying to create as baseline text [22:09:53] https://meta.miraheze.org/wiki/Template:PAGENAME https://en.wikipedia.org/wiki/%7b%7bPAGENAME%7d%7d [22:10:22] Could be internal or external links, whatever's possible [22:10:46] Hmm, a regular [[{{PAGENAME}}]] works just fine for me [22:10:46] https://meta.miraheze.org/wiki/Template:PAGENAME https://meta.miraheze.org/wiki/%7b%7bPAGENAME%7d%7d [22:11:01] So does transcluding break it? [22:12:01] yeah, the regular ``#if`` is more like [22:12:04] "if not empty" [22:12:59] That works. `[[w:{{PAGENAME}}]]` that is [22:12:59] https://meta.miraheze.org/wiki/Template:PAGENAME https://en.wikipedia.org/wiki/%7b%7bPAGENAME%7d%7d [22:14:54] Alright, hrmmmm [22:15:07] something like this? im not sure how to format it (and however i wrote it givees me an expression error so i def did something wrong) [22:15:08] I think I might just need to wait for my local interwiki entry to catch up then [22:16:09] [1/4] Yeah, but ifexpr can be used for the OR. So it would be like [22:16:09] [2/4] ``` [22:16:10] [3/4] {{#ifexpr: {{#if: {{{thing1|}}} |1|0}} OR {{#if: {{{thing1|}}} |1|0}} OR {{#if: {{{thing1|}}} |1|0}} | result if yes | result if no }} [22:16:10] https://meta.miraheze.org/wiki/%23ifexpr:Template:_%7b%7b%23if:_%7b%7b%7bthing1 [22:16:10] [4/4] ``` [22:17:04] Or actually, you need to check if any parameters are set correct? [22:17:53] [1/5] Then [22:17:53] [2/5] ``` [22:17:53] [3/5] {{#if: {{{thing1|}}}{{{thing2|}}}{{{thing3|}}} | answer if yes | answer if no }} [22:17:53] https://meta.miraheze.org/wiki/%23if:Template:_%7b%7b%7bthing1 [22:17:54] [4/5] ``` [22:17:54] [5/5] Will do [22:18:21] This would be required for more complicated logic though [22:18:51] You can nest #ifs by the way, but that requires copy-pasting the results for each [22:21:24] yep! this is it and it worked. ty for your help :-] [22:22:30] D'oh, my prefix fell into interlanguage reserved space, that's why it continued to fail