[04:24:53] Hey guys, quick question: I know there are some pre installed fonts with mediawiki.... but how do I get to know what they are? I know for sure: "Impact" and "Trebuchet MS" [04:30:28] Mario-WL: I don't think MediaWiki includes any fonts...the two you mentioned are typically installed with Microsoft stuff [04:31:20] legoktm thanks for answering! I am sure there was a list some while ago with fonts used by mediawiki per default. But yes, you are right, the os itself has to know and then display the font. [04:32:31] Mario-WL: I believe https://www.mediawiki.org/wiki/Typography_refresh/Font_choice is the current font stack [04:37:44] also it depends on which skin you use/install. e.g. Vector (lines 6 & 7) https://phabricator.wikimedia.org/source/Vector/browse/master/variables.less vs Monobook (none specified) https://phabricator.wikimedia.org/diffusion/SMNB/browse/master/resources/ [04:39:07] https://codesearch.wmflabs.org/skins/?q=font-family&i=nope&files=&repos= [04:39:19] Mario-WL, ^ [04:40:17] Thank you! [06:58:44] Taven @daegontaven posted in ResourceLoaderImage defaultColor option doesn't change color - https://discourse-mediawiki.wmflabs.org/t/resourceloaderimage-defaultcolor-option-doesnt-change-color/1040/1 [09:06:01] In my template I want to list up to N pages that are in a named category. [09:06:23] I am a beginner and I seem to be missing something. How can I query pages in a category from a template? [09:06:44] do I need a special extension to do this? [12:42:34] Any recommendations on tools/extensions to limit spam? I recently updated to 1.31.1, and now I see an increase in user pages with a link to strange websites in the bottom, and other new spam pages being created. [12:46:04] https://cleantalk.org/price#anti-spam has an extension but wfLoadExtension doesn't work with it, so I'm kinda relunctant to rely on something that's not maintained better when they ask money for it. [12:49:46] Wow, there are people selling mediawiki extensions! [12:49:52] that's interesting [12:49:54] !spam [12:49:54] For information about combating and handling spam in MediaWiki, see . [12:50:39] madsj: Honestly, the most bang for your buck is probably to install ConfirmEdit extension using a recaptcha backend [12:52:14] bawolff: well, the extension is free, but you sign up and get an access token. [12:52:26] * bawolff is reading their code at https://github.com/CleanTalk/mediawiki-antispam/tree/master/Antispam [12:53:10] madsj: Also installing spam blacklist is very helpful, as by default it uses wikimedia's blacklist, which gets a lot of common spam urls [12:53:41] I think I saw configuration the time before you can make your first edit? [12:54:47] There's configuration where you can have different user-rights depending on how long you have had the account (or other things like how many edits) [12:55:43] !wg Autopromote | madsj [12:55:43] madsj: https://www.mediawiki.org/wiki/Manual:%24wgAutopromote [12:56:07] So you could do something like you have to wait 24 hours before person is allowed to edit [12:57:47] madsj: see also https://www.mediawiki.org/wiki/Extension:ConfirmAccount [13:25:00] bawolff: I currently just activated the SpamBlacklist extension. The problem is not big, about 20 accounts and not all of them created pages. [15:42:47] hi, im having case like this: https://pastebin.com/aR7biWLm [15:43:30] and im trying to find who "calls" {{else}}, by calls i mean the page which writes "{{Else}}" and not anyone that includes that. how that can be done? [15:44:06] (I'm using What links here) [15:55:25] niso: in your else-section, put a category link. this will put all pages that use the else-case into that category. [15:56:47] that will put "my page" in the category, but im looking for the Template C, and moreover without code change (if possible) [18:43:05] hi. why {{#tag:source||lang=text}} is rendered as <hello> [18:44:58] cronolio: Escaping probably happens at a different part of the Parser. As always, #tag is a horrible hack and you should generally avoid it. [18:45:01] #tag and have all kinds of weird interactions [18:45:13] Yeah. [18:45:35] "Undefined behaviour" is the polite euphemism here. [18:47:08] exactly i have code like {{#tag:source|... ... |lang=xml}} It's because i want to add [18:48:38] cronolio: #tag and source are likely incompatible with each other [18:49:07] #tag means that the stuff inside is parsed, and the parser replaces < with < for security. Source on the other hand means that the stuff inside is *not* parsed [18:49:17] the solution is to just use directly instead of #tag:source [18:52:10] thank you, will try it and see what happen [19:15:42] is it possible to get an html template and add it to mediawiki? [19:16:04] what do you mean by "html template"? [19:16:15] what are you trying to accomplish? [19:17:23] Like grabbing the html files and css [19:18:28] and modify mediawiki with that html/css files [19:18:29] ? [19:19:24] I'm still not sure what you're actually trying to do, as in the actual end goal [19:21:07] Skizzerz: if i replace #tag:source with ...., i can't use there [19:22:37] you don't need if you use directly [19:22:45] it already doesn't process anything inside [19:25:16] template itself may handle "=" and "|" symbols; lets image we have code like comand | comand | .... which should be posted. then we should replase all |.... [19:25:42] Skizzerz: is it possible in someway have a skin [19:26:04] cronolio: thing | other=thing will render a literal "thing | other=thing" -- pipe and equals are not processed inside of [19:26:07] but in the html [19:26:08] ? [19:27:04] biberao: no, mediawiki intentionally doesn't let arbitrary pages change up skin html or inject arbitrary html. That is a gigantic security issue if enabled [19:27:18] Skizzerz: oh nice [19:28:01] i figured [19:28:32] you can theme your install using pages like MediaWiki:Vector.css (easyish but css only), or create your own skin (hard) [19:30:57] ya i figured thanks [19:52:40] Also is it possible to have bootstrap work from Commons.js ? [19:52:57] Common.css/Common.js? [19:57:43] biberao: no, none of the skins that ship with mediawiki are compatible with the bootstrap css library [19:57:52] you'd need a custom skin (some already exist which use bootstrap as a base) [19:59:53] i see [20:00:02] one last question if thats ok [20:00:42] i checked chameleon...currently is it the preferred way how they implement bootstrap components? [20:10:27] Has any testing been done to see if Visual Editor works on MediaWiki 1.31 (not just the alpha build)? It seems like https://www.mediawiki.org/wiki/Extension:VisualEditor#Set_up_a_Parsoid_service is out of date... [20:28:28] Tom12345: yes, it works with 1.31 [20:39:34] time to learn more php ;) [20:55:56] Skizzerz: and my last question how i can use in template like {{{1}}} :) [21:05:43] cronolio: {{#tag:source|{{{1}}}}} [21:05:56] if i have multiple upload folders can i still join the images in a single folder [21:06:11] and have a database metada? [21:06:16] and have a database metadata? [21:07:00] legoktm cool. it's first my queston ->> why {{#tag:source||lang=text}} is rendered as <hello> [21:07:13] *my first [21:07:39] you don't need the I think [21:08:49] whithout nowiki the same [21:23:28] ah sorry. it's works [21:24:53] issue was only with tag:source| [21:25:53] if anyone can help me thanks [21:25:53] :D [21:30:40] biberao: please explain your situation. On MediaWiki you only have one upload folder (except foreign repos that are read-only). Having a single upload folder makes no sense, since you would overwrite files with the same name from other installs [21:34:15] oneheart:--> might as well start by asking your question. I just joined here myself and don't know how active it is. [21:36:26] https://www.mediawiki.org/wiki/Manual:$wgSharedUploadPath < this or > https://www.mediawiki.org/wiki/Manual:$wgForeignFileRepos [21:36:42] if i can access the common db for all images in multiple wikis [21:39:48] duesen: ! [21:40:22] ping me if you see this, maybe it is too late :P [21:46:03] Vulpix: foreign repos is the best one for already existing images? [21:46:39] Already existing where? On another wiki? [21:47:01] yes [21:48:09] I'd recommend https://www.mediawiki.org/wiki/Manual:$wgForeignFileRepos#ForeignDBRepo_class [21:52:02] what if i had like 3 blank wikis [21:52:10] could i use SharedUploadPath [21:52:16] or the same Repo Idea [22:42:27] Hi so theres to query an image url from the db? [22:44:40] No [22:45:06] damn :| [22:45:11] it would be so cool [22:45:17] You don't need to [22:45:24] how would you do it? [22:45:35] extract the first 2 from the md5 then the other 2 [22:45:36] ? [22:45:51] If you're using hashed directories, yeah, exactly that [22:47:32] any other way? [22:47:48] Ask the API? [22:48:22] hum ok [22:49:45] What're you trying to do? [22:50:11] was trying to have grab all images from the wiki and paste the correct urls [22:50:28] maybe searching through title [22:50:44] filter over title that i [22:50:44] Special:Redirect/file ? [22:50:45] s [22:51:33] howso? [22:52:10] Try the form, see what it does [22:53:12] hum [22:53:14] thanks [22:53:45] Could we have it go through a category [22:53:51] like category:logos [22:53:51] ? [22:54:27] You'd be aswell building the urls manually at that point [22:54:53] ya [22:55:03] i better ask the api [22:55:05] or something [22:58:16] im check this example [22:58:22] https://www.mediawiki.org/wiki/API:Allimages [22:58:41] cant i limit it grabbing the title and url [22:58:41] ? [22:59:26] Yes [22:59:32] Read the docs? :) [22:59:35] It's all in there [22:59:48] either im stupid or im a new [22:59:48] b [22:59:54] could you provide me an exampe? [23:00:03] Ctrl + F [23:00:04] url [23:00:09] ok [23:00:11] its there [23:00:11] sorry [23:05:04] so [23:05:11] do i need some extra coding [23:05:18] to just get the name itself [23:05:21] and url [23:05:26] maybe some json manipulation [23:06:30] ya i figured thanks [23:08:21] a lot :D [23:09:27] after all [23:09:34] i can start to understand the docs :P [23:09:35] lol [23:27:37] Reedy: my future projects a skin and an extensio