[00:57:05] hi, how can I add custom button to the Wiki editor? I tried to copy the example from Manual:Custom_edit_buttons to common.js (and of course I refreshed the browser) but it doesn't work [00:59:41] ah I managed to do it finally [16:58:33] Hi, I need some help with mediawiki and templates. The documentation says that I can export any template I want from en wikipedia, but when I try to export this https://en.wikipedia.org/wiki/Template:Cite_journal to put in in my mediawiki for Citoid, I only get this lol https://en.wikipedia.org/wiki/Special:Export/Template:Cite_journal [16:58:39] how do I export the whole list of the templates used and the CSS so I can import it in my MW and enable citoid? [17:11:54] GeorgiosMavropal: For starters, go to https://en.wikipedia.org/wiki/Special:Export, but the name of the page in the box text box, and check the button labled include templates [17:12:05] That won't get you all the CSS, but it will get you much closer [17:12:07] !wptemplates [17:12:08] To copy templates from Wikipedia, use Special:Export and check the "Include templates" option to get all the sub-templates, then upload the file with Special:Import on your wiki. You'll also likely have to install the ParserFunctions extension, Scribunto extension and install/enable HTML tidy. You also might need some CSS from Wikipedia's Common.css. You'll also need a lot of... [17:15:48] ty bawolff , however I when I put 'Template:Cite_journal' in the text box and either press add or export it doesn't do anything [17:16:17] does it work for you? [17:17:42] the only way to get it to work is to type the address manually, but then again it's empty, without the additional templates https://en.wikipedia.org/wiki/Special:Export/Template:Cite_journal [17:25:48] You're putting in the big textarea, and not the small textbox? [17:26:24] GeorgiosMavropal: I can confirm it works for me [17:28:40] ah thank you, sorry I should have tried that ! [17:28:43] all good [17:29:05] you say that won't export everything though? I will still need to add a lot of CSS manually? [17:29:55] It also says the template uses Lua, will the Lua code be exported as well or I need to add it manually? [17:33:02] Lua code is usually exported [17:33:58] If there are dynamic dependencies there is a possibility they could be missed [17:34:14] CSS is usually not exported (except mayb if its TemplateStyles css) [17:34:34] you have to poke through the MediaWiki:Common.css page to figure out what's relavent yourself unfortunately [17:34:38] I see, thank you bawolff [18:17:04] hi, is there a way how to export an image with locmap points into an image so that it's downloadable? [18:47:21] baruna: not sure i understand what you mean? [19:47:52] bawolff: I mean look at some Wikipedia page, for example https://en.wikipedia.org/wiki/Berlin - there's a map of Germany in the infobox and a red dot for Berlin. The red box is inserted via the Loc Map template/module. Is there a way how to export the Germany map and the dot into jpg/png/svg whatever map so that there's a map of Germany and the dot for Berlin directly in the image? [19:48:08] *the red dot [19:48:28] Not directly, i don't think. Of course you could take a screenshot [19:48:57] And the browser may have an api, to get a screenshot of just that element [19:50:51] at least I would like to show the image + dot on an external site outside the wiki [19:51:16] or it doesn't need to be external, I just want to have a really huge map [19:51:37] e.g. firefox has the take screenshot of element: https://developer.mozilla.org/en-US/docs/Tools/Taking_screenshots [19:51:50] If you just want it on a website, you can take the markup [19:53:29] baruna: e.g. you can just copy the html https://dpaste.org/trcW on to your site [19:58:15] bawolff: thank you. the position of the dot is shown via position:absolute;top:32.658%;left:79.05%" ? how did you get those numbers please? [20:00:03] I used the web developer tool in firefox (chrome has a similar feature) [20:01:14] you can right click on stuff and press inspect element [20:01:46] Then when it gives you kind of the collapsible view, you can right click, and press edit html, to be able to copy and paste [20:02:54] bawolff: thanks I'll try to take a look at it