[10:03:44] Okay [10:03:51] Before I get upset [10:04:02] Is there a limitation on using TemplateStyles inside a table? [10:04:13] https://en.wikisource.org/wiki/Page:Miscellaneous_Babylonian_Inscriptions.djvu/79 [10:04:23] and https://en.wikisource.org/wiki/Template:Table_class [10:04:35] which currently doesn't work. [10:04:38] WHY? [10:07:36] no clue about here [10:08:08] Where would be the correct location to ask? [10:08:38] I'm increasinghy unhappy having to play hunt the pdeantic minutiae when trying to do things [10:08:52] *pedantic [10:08:53] sorry [10:10:11] that's a correct place, just want to say you are not speaking to the void [10:11:04] I'd go hand in hand with you to troubleshoot this, but my client wants for some stuff I should be delivering :( [10:19:18] ShakespeareFan00: lemme look [10:19:45] thedj: see also - https://jsfiddle.net/cxrb95sn/1/ [10:19:54] ShakespeareFan00: the table is 'broken' [10:20:02] class="wikitable,cell_vtp": [10:20:11] should be class="wikitable cell_vtp" [10:20:22] Spaces not commas? [10:20:51] correct. [10:21:18] ShakespeareFan00: you probably are applying something you learned from css into html [10:21:55] class, otherclass { css } [10:22:19] but that that's a selector, which is not the same syntax [10:22:36] Okay [10:24:13] https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/class [10:28:49] thedj: I added the spaces rather than commas here and [10:28:50] https://en.wikisource.org/wiki/Template:Table_class [10:28:59] Mediawiki decides to strip them out again [10:33:37] Unless I flatten the template in terms of line continuations [10:33:54] removing the line continuations... and it works as intended. [10:36:09] However there's still something wrong [10:36:11] because [10:36:22] https://en.wikisource.org/w/index.php?title=Page:Miscellaneous_Babylonian_Inscriptions.djvu/79&oldid=9412029 [10:36:30] Still doesn't display as intended. [10:36:55] Despite having checked the CSS style.. [10:37:13] For some reason importing the relevant style sheet can't be done INSIDE the table [10:37:22] which makes the template less useful [10:41:23] thedj: thanks for reaching out o/ [10:58:50] thedj : all working , I just needed to import the table classes slightly differently [11:01:57] cool [11:04:52] Of course if tables coudl import styles directly... [11:05:06] Wasn't there a rules param or something? [11:05:38] ah you were adding the templates style inside of the tag [11:05:43] yeah that doesn't work. [11:06:12] ShakespeareFan00: can you post an example on https://www.mediawiki.org/wiki/Extension:TemplateStyles probably as a caveat? [11:06:18] you were writing
class="classname classname">
[11:06:21] that's not valid html [11:06:30] Okay... [11:06:47] I am going to now suggest something that might be controversial [11:07:07] currently have a src= field.. [11:07:17] which imports the relevant src files.. [11:07:26] i.e stylesheets.. [11:07:34] can this be multiple.. [11:07:53] just add multiple templatestyles tags. [11:08:19] because as rules= is not a valid table attribute in HTML5 it would seem plausible it could be repurposed in mediawiki to act as a tablestyles import [11:08:34] is this roughly T176272 ? [11:08:34] T176272: Decide on what to recommend for table style usecase - https://phabricator.wikimedia.org/T176272 [11:08:38] Roughly [11:09:28] But I am saying tables processing might need a way to specify additional styles.. [11:09:48] and a repurposed rules= parameter might be the way to do it [11:10:03] given that Mediawiki translates table syntax anyway [11:10:23] A concern arises if the parser is seeing class= before rules= though [11:10:37] because it needs to see the modified CSS classes before it can reference them [11:12:30] Having the ability to import custom table stylesheet would be VERY useful and could potentially reduce both the amount of inline CSS needed (Wikipedia) or in reducing the number of multiple calls to {{table style}} at English Wikisource.. [11:12:45] CSS classing is usally done browser side, not server side IIRC [11:13:03] which potentially offloads some post processing I think. [11:14:11] i'm confused.. Why not convert each tl:Table style param into a separate classname and have all classnames in a single file that you just import ? [11:14:54] yes, it's more bytes, but the pages that it applies to are comparatively very limited, so that shouldn't be a problem [11:18:32] thedj: Well that was one of the eventual ideas.. [11:18:55] but ts codes are relaitvely short.. [11:19:41] With a tablestyles option much much more extensive styling could be written. [11:20:16] sure, but same with inline css... this is one of those flexibility vs manageability issues. [11:20:28] True [11:20:47] Also by moving stuff to classes there are less parser function calls used [11:21:01] ultimate flexibility mixes badle with ultimately manageability and at some point you have just recreated the one type of functionality inside the other ;) [11:21:26] TS currently uses about 9 if class and a switch [11:21:32] *if functions [11:21:51] On some LONG tables this can have a performance impact.. [11:22:01] Thanks for the vote of support though :) [11:44:49] ShakespeareFan00: one thing that has been talked about at some point, is to have a list of classnames defined centrally + the templatestyles page that goes with it, then when the parser encounters the classname, it would automatically load those templatestyles [11:46:14] but that requires an aggressive change in the parser logic, so things like that usually require a lot of argumentation to make it happen. Because once added to the parser, things can hardly ever be removed again [12:01:09] Quite [12:04:04] From https://www.mediawiki.org/wiki/Extension:TemplateStyles: "Styles included by a template can currently affect content on the page outside of the content generated by that template, but this ability may be removed in the future and should not be relied upon." [12:10:52] hiya - i've just installed mediawiki for the first time, and my question is how can I get posts to show under /mediawiki/wiki/postname, (i seem to be missing the wiki folder? Not sure if i'm explaining myself very well, so apologies in advance! [12:52:55] !shorturl [12:52:55] To create simple URLs (such as the /wiki/PAGENAME style URLs on Wikimedia sites), follow the instructions at or try the new beta tool at . There are instructions for most different webserver setups. If you have problems getting the rewrite rules to work, see !rewriteproblem [12:53:02] james74: ^ [13:09:16] @Vulpix-looks exactly what I'm looking for thank you! :) [13:33:52] Okay what's gone wrong now? [13:34:01] https://en.wikisource.org/wiki/Template:Table_class/tableclasses.css [13:34:12] I copy an EXACT line across and it doesn't work [13:34:18] to apply the right style [13:35:26] Style is boxc [13:35:34] If I apply this inline it works [13:41:54] I have had enough [13:42:10] Can someone explain what's wrong with this style_sheet please [13:42:12] ? [13:42:38] https://en.wikisource.org/wiki/Template:Table_class/tableclasses.css [13:42:57] because it's generating completely spurious borders I NEVER put in [13:43:07] when I use it to format something [13:43:43] and for some reason mediawiki seems to STUPIDLY tidy __name into something with an escaped charcter breaking it [13:44:01] when I try to use that name elsewhere [13:44:23] which means my nicel formatted CSS styles don't get invoked properly [13:57:53] so I have updated my nginx.conf, and LocalSettings.php with the info that I found here: http://www.mediawiki.org/wiki/Manual:Short_URL the change now shows as having the short-URLs, but it doesn't display properly screenshot: https://imgur.com/a/1OehV0v [13:58:17] any thoughts would be great! Many thanks in advance! [13:59:47] So I use the SAME template call in 2 places and get a different result [13:59:47] https://en.wikisource.org/wiki/User:ShakespeareFan00/sandbox#Classed_table [13:59:55] james74: Check your browser console, it'll probably point at some clues [14:00:01] https://en.wikisource.org/wiki/Page:The_Naturalisation_of_the_Supernatural.pdf/251 [14:00:16] You would expect the SAME code to produce the Same RESULT? [14:01:31] Technical Advice IRC meeting starting in 60 minutes in channel #wikimedia-tech, hosts: @CFisch_WMDE & @nuria - all questions welcome, more infos: https://www.mediawiki.org/wiki/Technical_Advice_IRC_Meeting [14:02:02] Sorry folks.. Having frustrations [14:02:14] Time to take a break [14:03:37] Any Translate extension gurus around? We had an Italian translator do some confused edits (to source page at first) and after I restored things, the Italian version displays both the old style translation menu and the new: https://wiki.documentfoundation.org/Faq/Calc/118/it [14:03:56] For context, we are slowly migrating to Translate from an older system [14:05:50] argh, now I think I can fix it [14:06:49] gosh darnit, the "Translate" vs. "Edit" link threw me off - I can use the direct WikiAction/edit/ path to get to the source and remove the thing [14:07:31] except I can't "This page cannot be updated manually." blah, I guess I will ask our admin [14:21:40] Reedy: seems to be a mime-type mismatch [14:21:58] The resource from “http://wiki.chilli.ai/w/load.php?debug=false&lang=en-gb&modules=startup&only=scripts&skin=vector” was blocked due to MIME type (“text/html”) mismatch [14:22:49] would it be useful to post my nginx.conf, mediawiki.conf here (using pastebin) do you think? [14:35:13] james74: open that URL on your browser. Does it display a HTML page? or JavaScript? [14:36:23] html by the looks of it! [14:39:13] i also get this in my console output: Loading failed for the