[03:26:37] I have .wiki files with me how do I convert them into xml format? [03:26:38] My end goal is to import them into my local mediawiki application [03:26:38] One way I know is importing them using XML format [03:26:39] Not sure another way is there any other ways where I can import this .wiki files into my wiki? [03:26:39] please help? [04:25:23] not sure when the next "batch" of experienced users wake up. but i am pretty sure one batch has gone to bed by now. if you don't get a response by a few hours from now, politely ask again. beep boop [05:32:32] Ramu: by .wiki files do you mean just files with wikitext in them? if so, you can use the API to create pages with that text [05:32:50] Ramu: see https://www.mediawiki.org/wiki/API:Edit [07:42:50] Ramu: the .wiki extension is not particularly standard, what do you have in there? just wikitext? [07:43:15] If so you can use pagefromfile.py https://www.mediawiki.org/wiki/Manual:Pywikibot/pagefromfile.py [07:44:20] The XML import is mostly useful if you want to import revision metadata like the author and timestamp, which is necessary to transfer contribution history from one wiki to another. [07:44:44] For bulk creation of pages there are easier options, [07:45:27] Nemo_bis Yeah, just wiki text [07:50:39] Ramu: did that answer your question? [07:51:05] (How many pages are we talking about?) [07:58:54] Nemo_bis I think yeah need to go through pywikibot documentation [07:58:55] around 5000 pages are there [11:26:16] legoktm if page exists in wiki it is appending the text again , how can i override and replace new text rather than appending again to previous text? [11:26:30] https://www.mediawiki.org/wiki/API:Edit [11:28:37] nothing but undo all revisions and add new one [11:31:15] Got it [17:30:24] Hello. So, I am really struggling with infoboxes on my miraheze mediawiki. I have spent 3 days reading help guides, manuals and exporting and importing things as per instructions, and am getting absolutely no where. I'm just trying to set up a simple wiki for a roleplaying game group, but I'm really just about at the point of giving up. Can someone [17:30:24] help? [17:31:23] EnsleyG: hello, infoboxes aren't a native part of mediawiki. I'm not sure which wiki you base the infoboxes on - and what do they do on your wiki. Can you clarify that? [17:34:21] Way back in the day, I created an infobox template on Fandom for characters in the game. Fundamentally, the infobox has the character name as the header/title, the option to put in an image, and then fillable fields, for things like "Affiliation" "Rank," "Current Assignment," etc. Basically all I need are two types of infoboxes, or even just [17:34:22] fillable table templates: one for characters, and one for ships. Does that help? [17:42:06] EnsleyG: not really, as mediawiki (w/o any extensions) doesn't have any support for "infoboxes". It only knows templates. In another words, I'm wondering how did you implement the infoboxes and how do they behave (ie. what's the bug). [17:42:09] does it make sense? [17:46:04] urbanecm that's the thing, nothing I've tried has had any effect, or implemented anything. I've tried my best to figure it out with other resources and have finally broken down to asking here. If I could figure out how to create a template for a fillable table that would emulate an infobox, I'd be golden, but I can't seem to find any how-tos on [17:46:04] creating a template for a fillable table. [17:46:32] wht did you do? [17:46:44] I suspect you may be importing infobox templates from elsewhere [17:46:48] EnsleyG: what exactly did you do and what does "no effect" mean exactly, please? 🙂 [17:46:49] which require some extension [17:46:54] such as Lua [17:50:07] urbanecm Okay, forget the infoboxes. Getting actual infoboxes up and running is too complex for me. I don't like it, but that's how it is. Can you point me to a how to for making a table with fillable elements, and for making such a table an insertable template for the wiki? [17:50:50] EnsleyG: that's quite simple [17:51:00] create a page which begins with Template: [17:51:01] I'd love to help, but it's very hard for me to do without knowing what exactly is the issue 🙂 [17:51:05] the documentation for tables is at https://www.mediawiki.org/wiki/Help:Tables [17:51:22] for example Template:EnsleyG_test [17:51:28] there, you make a table [17:51:34] as you would anywhere else [17:51:43] and place at some pont something like {{{name}}} [17:52:05] when you call {{EnsleyG_test|name=John}} [17:52:11] it will show that same table you wrote [17:52:15] but {{{name}}} [17:52:20] replaced with John [17:52:21] urbanecm yes, but that documentation doesn;t tell me how to make tables with fillable elements, so if cell a had "Name:" cell B woudl allow you to input the character name. [17:52:31] EnsleyG: see above [17:52:34] yes [17:52:43] by the way, this is actually how Wikimedia infoboxes are done [17:52:56] the table has some CSS applied (via mediawiki:common.css) to make it look better [17:53:05] but it's actually done how Platonides described it [17:53:15] and parserfunctions for optional rows, probably [17:53:22] yup [17:53:24] but the basics are just those [17:54:04] Okay, but how does this look from the user end. I need something that doesn't require to user to do more than fill things in on a visual editor friendly table or infobox [17:54:29] if you want the template to be visual-editor friendly, you need to add template data there [17:54:37] via https://www.mediawiki.org/wiki/Extension:TemplateData [17:55:10] if you enable that extension, there should be a button when you try to edit a template [17:55:18] that will allow you to define template data in an user-friendly way [17:55:27] is that what you were asking, EnsleyG ? [17:58:46] I've enabled TemplateData. So, when I go to the Template: page (I've created several in my blunderings) I need to create the table in wikitext/CSS and it will then show up in the visual friendly template insert menu? And fillable cells in tables are created with triple {{{example}}} brackets? [18:02:59] EnsleyG: pretty much so. All templates show in the insert menu. In order for the form to show more information, you need to fill the templatedata (not only enable the extension, but actually tell mediawiki what each parameter means) [18:03:04] but that should be the basics of it [18:04:15] Okay. I'll play around some more, but I begin to suspect that I lack the knowledge-base to work with raw mediawiki. This is disheartening. Thanks for your help.