Fork me on GitHub

Wikimedia IRC logs browser - #wikimedia-tech

Filter:
Start date
End date

Displaying 307 items:

2019-07-17 14:00:17 <wm-bot> Technical Advice IRC meeting starting in 60 minutes in channel #wikimedia-tech, hosts: @Lucas_WMDE & @cscott - all questions welcome, more infos: https://www.mediawiki.org/wiki/Technical_Advice_IRC_Meeting
2019-07-17 14:50:17 <wm-bot> Technical Advice IRC meeting starting in 10 minutes in channel #wikimedia-tech, hosts: @Lucas_WMDE & @cscott - all questions welcome, more infos: https://www.mediawiki.org/wiki/Technical_Advice_IRC_Meeting
2019-07-17 14:50:29 <Wilfredor> ok
2019-07-17 14:59:13 <cscott> good morning from the US East coast!
2019-07-17 14:59:17 <ShakespeareFan00> When's the session supposed to start?
2019-07-17 14:59:21 <Lucas_WMDE> good morning!
2019-07-17 14:59:23 <cscott> in 1 minute ;)
2019-07-17 14:59:27 <Lucas_WMDE> in one minute by my watch :)
2019-07-17 14:59:29 <ShakespeareFan00> Because I had a question
2019-07-17 14:59:35 <Lucas_WMDE> cscott joined just in time :P
2019-07-17 14:59:41 <ShakespeareFan00> being about something on English Wikisource
2019-07-17 14:59:56 <ShakespeareFan00> https://en.wikisource.org/w/index.php?title=Template:Lang&action=edit
2019-07-17 15:00:30 <ShakespeareFan00> In this template an ugly construction is used to split between a DIV and SPAN style presentation based on a supplied parameter
2019-07-17 15:00:49 <ShakespeareFan00> Lint detects a "Stripped" SPAN that shouldn't be present
2019-07-17 15:01:21 <ShakespeareFan00> So I in a recent revision attempted to ensure the generated TAG was complete by using a #tag:
2019-07-17 15:01:23 <ShakespeareFan00> function
2019-07-17 15:01:31 <Lucas_WMDE> just a second, let me get the header out first:
2019-07-17 15:01:40 <Lucas_WMDE> Welcome everyone to today’s Technical Advice IRC Meeting!
2019-07-17 15:01:44 <Lucas_WMDE> looks like we’ve already started :)
2019-07-17 15:01:49 <Lucas_WMDE> okay, go ahead
2019-07-17 15:02:05 <ShakespeareFan00> However, when i updated the template to use a tag: function instead
2019-07-17 15:02:15 <ShakespeareFan00> it broke many other pages
2019-07-17 15:02:36 <ShakespeareFan00> Such as https://en.wikisource.org/wiki/Page:Beowulf_(Wyatt).djvu/28
2019-07-17 15:02:55 <ShakespeareFan00> which is currently warning about 'misnesting'
2019-07-17 15:03:16 <cscott> https://en.wikipedia.org/w/index.php?title=Template:Lang&action=edit uses a lua module it seems
2019-07-17 15:03:33 <ShakespeareFan00> it does?
2019-07-17 15:04:00 <ShakespeareFan00> because what I am seeing is template syntax
2019-07-17 15:04:08 <ShakespeareFan00> Albiet a rather complex one
2019-07-17 15:04:17 <Lucas_WMDE> I think you’re looking at different pages – cscott did you intentionally go from Wikisource to Wikipedia?
2019-07-17 15:04:26 <Lucas_WMDE> ShakespeareFan00’s link was to Wikisource
2019-07-17 15:04:36 <cscott> yes, i was trying to see what the equivalent construct looked like on other wikis
2019-07-17 15:04:37 <Lucas_WMDE> I see the evil tag hacks there
2019-07-17 15:04:39 <Lucas_WMDE> ok
2019-07-17 15:04:52 <cscott> english wikipedia seems to have a quite complicated lua module: https://en.wikipedia.org/w/index.php?title=Module:Lang&action=edit
2019-07-17 15:05:18 <cscott> (sorry, indulging my periodic "i wish we had global templates already" dreams)
2019-07-17 15:05:31 <ShakespeareFan00> Lucas_WMDE: When I tried to remove the ugly tag hack
2019-07-17 15:05:35 <Lucas_WMDE> cscott: 🙏
2019-07-17 15:05:36 <ShakespeareFan00> by using #tag; instead...
2019-07-17 15:05:48 <ShakespeareFan00> it broke the template :(
2019-07-17 15:06:04 <ShakespeareFan00> because a page like :- https://en.wikisource.org/wiki/Page:Beowulf_(Wyatt).djvu/28
2019-07-17 15:06:07 <cscott> were you using a conditional as the first argument of the #tag?
2019-07-17 15:06:14 <ShakespeareFan00> yes
2019-07-17 15:06:43 <ShakespeareFan00> If was doing #tag:{{if:{{{1}}}|div|span}}
2019-07-17 15:06:57 <ShakespeareFan00> Does that approach not look correct?
2019-07-17 15:07:34 <ShakespeareFan00> My revision was - https://en.wikisource.org/w/index.php?title=Template:Lang&action=edit&oldid=9452256
2019-07-17 15:08:10 <ShakespeareFan00> Because this apparently broke stuff I reverted
2019-07-17 15:08:47 <ShakespeareFan00> What I am also not understanding is why https://en.wikisource.org/wiki/Page:Beowulf_(Wyatt).djvu/28
2019-07-17 15:08:58 <ShakespeareFan00> is now saying there are badly nested tags
2019-07-17 15:09:11 <ShakespeareFan00> because everything SHOULD be balanced up
2019-07-17 15:09:16 <Lucas_WMDE> I’m not seeing any error messages on that page
2019-07-17 15:09:25 <Lucas_WMDE> do you have a user script or gadget that shows lint errors?
2019-07-17 15:09:36 <ShakespeareFan00> Linthint.js
2019-07-17 15:09:47 <cscott> it could work, it's just a little bit evil. as a parser guy i always prefer to see full HTML constructs not fragments, though. forgive my broken syntax, but my first attempt would be to refactor the guts of the template (the attributes) into a helper, and then do {{if:{{1}}|<div {{lang-attribs}}>{{lang-contents}}</div>|<span {{lang-attribs}}>{{lang-contents}}</span>}}
2019-07-17 15:10:08 <cscott> (passing appropriate parameters to lang-attribs and lang-contents, of course)
2019-07-17 15:10:41 <ShakespeareFan00> Lucas_WMDE: https://en.wikipedia.org/wiki/User:PerfektesChaos/js/lintHint
2019-07-17 15:10:49 <ShakespeareFan00> Is the script I use
2019-07-17 15:10:56 <cscott> that way each template generates "balanced" (ie, complete) output. but that's probably not immediately what's breaking your version.
2019-07-17 15:11:39 <ShakespeareFan00> On https://en.wikisource.org/wiki/Page:Beowulf_(Wyatt).djvu/28
2019-07-17 15:11:52 <ShakespeareFan00> the error suggest something is mismatched
2019-07-17 15:12:00 <ShakespeareFan00> But I can't see anything immediately
2019-07-17 15:12:17 <ShakespeareFan00> other than the template contains many <br>\n type lines
2019-07-17 15:12:24 <cscott> i think `<span <!--comment-->lang="foo" <!--comment<!---->` is a little dodgy
2019-07-17 15:12:32 <cscott> especially the closing >
2019-07-17 15:12:57 <cscott> i don't think the closing > is actually in there at all, but maybe i'm not seeing it
2019-07-17 15:12:59 <ShakespeareFan00> Collapsing out all the comments is feasible, but make for an unreadable template
2019-07-17 15:13:23 <cscott> you could use <noinclude> around them so they don't show up in the wikitext
2019-07-17 15:13:55 <Lucas_WMDE> when I run `document.body.innerHTML = '<span <!-- comment --> style="color: red">Hi!</span>'` on about:blank the comment doesn’t work properly
2019-07-17 15:13:57 <cscott> but i think the actual 'bug' is the missing >
2019-07-17 15:13:59 <Lucas_WMDE> but I don’t know what tidy/remex does with it
2019-07-17 15:14:10 <ShakespeareFan00> cscott: the closing -->{{{attr|}}}><!-- is present
2019-07-17 15:14:19 <cscott> it doesn't get to tidy, the comments are stripped out in wikitext
2019-07-17 15:14:34 <ShakespeareFan00> Okay so the template is flawed.
2019-07-17 15:14:36 <cscott> you're still generating wikitext from the template, even though you're using the wikitext-feature of embedded html tags
2019-07-17 15:14:43 <cscott> it looks like HTML, but it's wikitext
2019-07-17 15:15:02 <ShakespeareFan00> Yes..
2019-07-17 15:15:05 <cscott> what you pasted is not what i see in https://en.wikisource.org/w/index.php?title=Template:Lang&action=edit&oldid=9452256
2019-07-17 15:15:15 <cscott> i see -->{{{attr|}}}<!---->}}<noinclude>{{Documentation}}</noinclude>
2019-07-17 15:15:20 <cscott> which doesn't have a closing >
2019-07-17 15:15:21 <ShakespeareFan00> I reverted back to an earlier version
2019-07-17 15:16:05 <ShakespeareFan00> https://en.wikisource.org/wiki/Template:Lang
2019-07-17 15:16:25 <Lucas_WMDE> which problem are we currently debugging – that the #tag didn’t work, or that Beowulf still has lint errors after the revert?
2019-07-17 15:16:37 <cscott> Lucas_WMDE: good question! ;)
2019-07-17 15:16:50 <ShakespeareFan00> OKay time to take a step back
2019-07-17 15:16:51 <Lucas_WMDE> the missing > would have been a problme in the #tag version, I think, but shouldn’t affect the current Beowulf page
2019-07-17 15:17:03 <revi> anyone lazy and willing to do quick CR? (guaranteed quickness) https://gerrit.wikimedia.org/r/c/mediawiki/core/+/523890
2019-07-17 15:17:15 <ShakespeareFan00> Lucas_WMDE: https://en.wikisource.org/wiki/Page:Beowulf_(Wyatt).djvu/28
2019-07-17 15:17:35 <ShakespeareFan00> is still showing Misnsted tags after I reverted the Wikisource Lang to a stable version
2019-07-17 15:17:41 <ShakespeareFan00> That's problem No1.
2019-07-17 15:18:02 <cscott> revi: done!
2019-07-17 15:18:06 <ShakespeareFan00> Problem No2. - How to make Lang work as the current logic intends without the ugly construction
2019-07-17 15:18:30 <ShakespeareFan00> Problem No3. - Inconsistent 'start of line processing' and end of block recognition
2019-07-17 15:18:56 <ShakespeareFan00> (No3. is something already noted many times on phabricator.
2019-07-17 15:18:57 <cscott> ok, i can answer question no 1
2019-07-17 15:19:10 <revi> cscott: ty :)
2019-07-17 15:19:12 <Lucas_WMDE> idea for problem 2 – always use the same tag but conditionally change the style: inline/block? though that might break a lot of other things depending on the tag name
2019-07-17 15:19:19 <cscott> the parsoid lint errors are generated when restbase re-parses the page, they might not occur immediately after you save
2019-07-17 15:19:37 <cscott> let me check w/ the parsing team to see how long is "reasonable" to wait for updated lints
2019-07-17 15:19:53 <revi> additional <3 to Lucas_WMDE and tgr
2019-07-17 15:20:27 <ShakespeareFan00> On bothe No1. and No2. I also have a concern that the bahviour of <br>\n inside a generated SPAN sometimes isn't expected
2019-07-17 15:20:39 <ShakespeareFan00> *behaviour
2019-07-17 15:20:51 <ShakespeareFan00> because mediawiki attempts to 'tidy' up
2019-07-17 15:21:14 <ShakespeareFan00> despite the markup being valid in HTML which removes whitespace.
2019-07-17 15:21:38 <ShakespeareFan00> Inside mediawiki <p> tags might be inserted where they weren't necessarily expected to be
2019-07-17 15:22:06 <ShakespeareFan00> (or intended to be)
2019-07-17 15:22:16 <cscott> https://en.wikipedia.org/wiki/Wikipedia:Linter says, "After editing, pages are rechecked for lint errors, but the delay can take from seconds to hours. If lintHint says you fixed one or more lint errors, you almost certainly did fix them, even if page information and the specific lint errors page aren't updated yet."
2019-07-17 15:22:38 <ShakespeareFan00> Okay..
2019-07-17 15:23:00 <ShakespeareFan00> However, and I may have already explained this badly earlier
2019-07-17 15:23:06 <cscott> ok, <br> inside <span>. let me think about that one.
2019-07-17 15:23:21 <ShakespeareFan00> Not plain <br> , <br>\n
2019-07-17 15:23:44 <ShakespeareFan00> <span>line1<br>line2</span> would be valid
2019-07-17 15:24:04 <ShakespeareFan00> and in HTML the HTML backend would just remove the \n from the user input
2019-07-17 15:25:17 <cscott> that seems to work in wikitext as well:
2019-07-17 15:25:25 <ShakespeareFan00> hmm
2019-07-17 15:25:31 <cscott> $ (echo '<span>a<br>' ; echo 'b') | php maintenance/parse.php
2019-07-17 15:25:31 <cscott> <p><span>a<br />
2019-07-17 15:25:31 <cscott> b
2019-07-17 15:25:31 <cscott> </span></p>
2019-07-17 15:25:45 <cscott> but you're saying when you use {{#tag}} this is breaking?
2019-07-17 15:25:45 <ShakespeareFan00> Yes..
2019-07-17 15:25:53 <ShakespeareFan00> Yes
2019-07-17 15:26:12 <ShakespeareFan00> But as I reverted I'm still not sure why the Beowulf page is generating a stripped tag
2019-07-17 15:26:43 <Vermont> Hello tech people :)
2019-07-17 15:26:43 <ShakespeareFan00> cscott: On Wikisource Page:s have a header, body and footer
2019-07-17 15:26:57 <Lucas_WMDE> Vermont: hi :)
2019-07-17 15:27:21 <cscott> $ (echo '{{#tag:span|a<br>' ; echo 'b}}') | php maintenance/parse.php
2019-07-17 15:27:21 <cscott> <p><span>a<br />
2019-07-17 15:27:21 <cscott> b</span>
2019-07-17 15:27:21 <cscott> </p>
2019-07-17 15:27:48 <ShakespeareFan00> Odd.
2019-07-17 15:27:57 <cscott> i think what's really happening is that your template is letting a newline into the output wikitext
2019-07-17 15:28:10 <ShakespeareFan00> Or not
2019-07-17 15:28:10 <cscott> so your \n is becoming a \n\n, which becomes a <p>, and <p> breaks out of a span
2019-07-17 15:28:26 <ShakespeareFan00> cscott: That would be No3. point
2019-07-17 15:28:35 <cscott> $ (echo '{{#tag:span|a<br>' ; echo; echo 'b}}') | php maintenance/parse.php
2019-07-17 15:28:35 <cscott> <p><span>a<br />
2019-07-17 15:28:35 <cscott> </span></p><p>b
2019-07-17 15:28:36 <cscott> </p>
2019-07-17 15:29:11 <ShakespeareFan00> partly.. It would be nice to have ONE handling rule so contributors don't need to know the minutiae of whitespace when nesting templates
2019-07-17 15:29:36 <ShakespeareFan00> I have had this 'whitespace' leakage issue with other templates
2019-07-17 15:29:59 <ShakespeareFan00> or having to insert an \n to get Mediawiki to wrap a block based template correctly
2019-07-17 15:30:11 <ShakespeareFan00> (Known issue noted in Phabricator for some time)
2019-07-17 15:30:36 <ShakespeareFan00> Related is {{template}\n{{othertemplate}}
2019-07-17 15:30:58 <ShakespeareFan00> And on Wikisource Proofread Page when processing a Page: adds it's own \n
2019-07-17 15:31:07 <ShakespeareFan00> when processing headers and footers in some instances.
2019-07-17 15:31:28 <ShakespeareFan00> or spaces..
2019-07-17 15:31:49 <ShakespeareFan00> I can't immediately think where Lang is leaking though
2019-07-17 15:32:06 <ShakespeareFan00> unless the new line is occuring because something like
2019-07-17 15:32:25 <ShakespeareFan00> {{blockcenter/s}}{{Lang....}}{{block center/e}}
2019-07-17 15:32:43 <ShakespeareFan00> is somewhere putting in a \n that Mediawiki is trying to tidy
2019-07-17 15:33:08 <ShakespeareFan00> I would appreciate someone else looking at the template concerned
2019-07-17 15:33:14 <cscott> I suspect it is T14974, which (almost) always inserts a newline before a template
2019-07-17 15:33:15 <ShakespeareFan00> but thanks for the hints
2019-07-17 15:33:15 <stashbot> T14974: The newline added to a template, magic word, variable, or parser function that returns line-start wikicode formatting (*#:; {|) causes unexpected parsing - https://phabricator.wikimedia.org/T14974
2019-07-17 15:33:28 <ShakespeareFan00> cscott: Thanks
2019-07-17 15:33:41 <ShakespeareFan00> So to summarise... Not yet easily solved
2019-07-17 15:33:54 <cscott> so something like `a<br>\n{{template}}` as the contents causes the \n to become \n\n and thus a <p> and breaks things.
2019-07-17 15:33:54 <ShakespeareFan00> but the #tag: approach would have been a reasonable solution?
2019-07-17 15:34:09 <ShakespeareFan00> Yep
2019-07-17 15:34:16 <ShakespeareFan00> That was my thought as well.
2019-07-17 15:34:38 <ShakespeareFan00> I also note on some pages that I am seeing constuctions that put a block level element
2019-07-17 15:34:43 <ShakespeareFan00> inside a Reference span
2019-07-17 15:34:55 <ShakespeareFan00> That may be another reason why some Lint warnings arise
2019-07-17 15:34:56 <cscott> i think so. but honestly, so would just refactoring the both into a {{lang-attributes}} helper and then making the template `if inline then <span {{lang-attribs}}>{{contents}}</span> else <div {{lang-attribs}}>{{contents}}</div>`
2019-07-17 15:35:07 <cscott> and (to me) it seems the latter is easier to read than then {{#tag}} version
2019-07-17 15:35:33 <ShakespeareFan00> cscott: The thing is that lang already has a lang-block equivalent
2019-07-17 15:35:37 <ShakespeareFan00> on Wikisource.
2019-07-17 15:35:46 <cscott> that is, instead of going to extremes with {{#tag}} to avoid repeating the middle part, you could just pull the middle part into its own template and repeat yourself a little bit.
2019-07-17 15:35:59 <ShakespeareFan00> and the inline parameter is used to tweak the code
2019-07-17 15:36:05 <cscott> well, then lang-block could reuse the {{lang-attribs}} part too ;)
2019-07-17 15:36:10 <ShakespeareFan00> Yes
2019-07-17 15:36:15 <ShakespeareFan00> That was where I was going
2019-07-17 15:36:27 <ShakespeareFan00> cscott: Thanks
2019-07-17 15:36:46 <ShakespeareFan00> I'll have a look into these approaches and see if they resolve the problems by the next technical meeting
2019-07-17 15:37:11 <ShakespeareFan00> I did have one other point I'll raise here
2019-07-17 15:37:26 <cscott> if you find a specific place where the \n is breaking the <span> i'd be happy to look at it in more depth, but i'm almost certain you'll find either an escaping \n in the template definition or an implicit \n at the start of a template expansion
2019-07-17 15:38:06 <ShakespeareFan00> Related : https://phabricator.wikimedia.org/T49544
2019-07-17 15:38:23 <ShakespeareFan00> And my other point was on something else entirely
2019-07-17 15:38:47 <cscott> the implicit \n at the start of the template expansion is The Worst, but it's been around for over a decade now. You can sort of work around it sometimes, but a proper solution will probably have to wait for a little while longer; the parsing team has Lots of Ideas.
2019-07-17 15:39:34 <Lucas_WMDE> once we’re back to a single parser, everything will be rainbows and unicorns, or so I hear
2019-07-17 15:39:57 <cscott> starting the template with <!-- --> is a good way to ensure that you won't get an extra newline inserted; it is only inserted if the first character emitted by the template is * # : ; {|
2019-07-17 15:40:19 <cscott> Lucas_WMDE: alas, getting to a single parser only means we can *start* to address the more fundamental issues
2019-07-17 15:40:32 <Lucas_WMDE> shh, don’t ruin my illusion
2019-07-17 15:40:32 <cscott> which right now would require hacking two parsers at once to address
2019-07-17 15:40:48 <ShakespeareFan00> Okay my other query was -
2019-07-17 15:40:49 <ShakespeareFan00> https://phabricator.wikimedia.org/T196440
2019-07-17 15:40:49 <Lucas_WMDE> I’m still excited for it ^^
2019-07-17 15:41:15 <cscott> i'm excited that folks are actively using the linter to remove old wikitext cruft!
2019-07-17 15:41:21 <ShakespeareFan00> To adress T196440 I wrote a somewhat complex template on Wikisource to force a value
2019-07-17 15:41:21 <stashbot> T196440: Provide a clearer way to distinguish between "absent" and empty/blank parameters when handling them in templates and parser functions - https://phabricator.wikimedia.org/T196440
2019-07-17 15:41:39 <ShakespeareFan00> However my view was that this REALLY should be something in the parser
2019-07-17 15:41:55 <ShakespeareFan00> #cook:{{{param|}}} for example
2019-07-17 15:42:17 <ShakespeareFan00> So you are garunteed a sensible return
2019-07-17 15:43:51 <ShakespeareFan00> I'm mentioning this because of your interest in the parser
2019-07-17 15:44:40 <ShakespeareFan00> Over on Wikisource I have the situation of certain templates that do pre-processing for a lower level one and being able to #cook: inputs would be rather useful
2019-07-17 15:45:01 <ShakespeareFan00> especially when the 'null' and default logic in a #switch need to different
2019-07-17 15:45:22 <ShakespeareFan00> *'null', 'empty' , 'blank' or default sorry
2019-07-17 15:46:11 <cscott> (commented on T49544)
2019-07-17 15:46:12 <stashbot> T49544: <references/> list item must not wrap the text in <span> - https://phabricator.wikimedia.org/T49544
2019-07-17 15:47:25 <Lucas_WMDE> does anybody else have questions, by the way?
2019-07-17 15:47:51 <James_F> cscott: It'd be nice if you didn't say "sure" on a task I've declined. :-P
2019-07-17 15:48:26 <cscott> James_F: it seems it was reopened by Powers That Be after you declined it
2019-07-17 15:48:26 <sario528> Would there be any interest in these meetings being logged like Office Hours are?
2019-07-17 15:49:03 <ShakespeareFan00> sario258: {{vote|Support}} for logging technical advice sessions
2019-07-17 15:49:09 <cscott> James_F: i'm not weighing in on whether this is "as designed" just that properly enforcing the block or inline context is something we've thought a lot about, and is likely to show up in the parser at some point.
2019-07-17 15:49:12 <James_F> cscott: No, it was edit-warred on. We generally don't feed anger by firing back, per long-standing Phab policy.
2019-07-17 15:49:54 <James_F> Obviously we just output the entire DOM in custom <element> tags with class-based shadow DOM styling. ;-)
2019-07-17 15:50:04 <ShakespeareFan00> James_F: My suggestion on T49544 was to keep ref as SPAN but have <fn> as the DIV based one
2019-07-17 15:50:14 <cscott> subbu|busy: said 'sure' first ! ;) https://phabricator.wikimedia.org/T49544#4124810
2019-07-17 15:50:43 <Lucas_WMDE> sario528: they’re already logged by wm-bot (https://wm-bot.wmflabs.org/browser/index.php?display=%23wikimedia-tech), would separate logs be useful?
2019-07-17 15:50:53 <ShakespeareFan00> James_F: I will also in passing note that there are also instance on Wikisource, where you have Sidenotes
2019-07-17 15:51:16 <Lucas_WMDE> if the outcome is likely to be useful to others, we sometimes try to record it on Discord as well (https://discourse-mediawiki.wmflabs.org/)
2019-07-17 15:51:24 <ShakespeareFan00> for which there isn't currently a stable long term implementation
2019-07-17 15:51:27 <Lucas_WMDE> though I don’t think that applies to this tag discussion
2019-07-17 15:51:28 <James_F> "Might be irrelevant once changes happen" and "we'll intentionally break the output to fix some bad content" are different responses, and you know it. :-)
2019-07-17 15:52:19 <ShakespeareFan00> Whilst on references , I'll also mention something I don't think Mediawiki does yet..
2019-07-17 15:53:04 <ShakespeareFan00> which is references defined in a list at the start of content, but to which link backs are placed later in a work
2019-07-17 15:53:17 <ShakespeareFan00> <ref> can't handle these...
2019-07-17 15:54:26 <ShakespeareFan00> I've noted that on some ancient items of legislation, on the UK SLD, sometimes what would otherwise have been sidetitles are collapsed into a section header at the start of a section
2019-07-17 15:55:28 <ShakespeareFan00> having a <ref> that could be defined in advance would be useful for implementing a responsive design like this at Wikisource
2019-07-17 15:55:43 <ShakespeareFan00> I'll get my own strait-jacket now :)
2019-07-17 15:55:51 <sario528> Lucas_WMDE: I could see a benefit for actual wiki pages of each meeting log, as a reference
2019-07-17 15:56:13 <ShakespeareFan00> sario258: With the more colorful invective edited out?
2019-07-17 15:56:23 <ShakespeareFan00> :lol:
2019-07-17 15:56:32 <cscott> James_F: edited T49544 to more carefully not take a position except a technical parsing one.
2019-07-17 15:56:34 <stashbot> T49544: <references/> list item must not wrap the text in <span> - https://phabricator.wikimedia.org/T49544
2019-07-17 15:56:34 <sario528> Rather then having to comb through the complete log
2019-07-17 15:58:16 <James_F> nods.
2019-07-17 15:58:25 <James_F> cscott: Thanks. :-)
2019-07-17 15:59:12 <James_F> cscott: Mostly I think we need to scrap the Cite extension and replace it with several things that work better for the different use cases.
2019-07-17 15:59:21 <James_F> But we've had this conversation many times. :-)
2019-07-17 15:59:34 <Lucas_WMDE> sario528: well, IIRC most TAIM days there’s not much action in this channel outside of the meeting
2019-07-17 15:59:51 <cscott> ShakespeareFan00: so T196440 reminds me of one of the loose ends of heredoc arguments: https://phabricator.wikimedia.org/T114432#4717140
2019-07-17 15:59:52 <stashbot> T196440: Provide a clearer way to distinguish between "absent" and empty/blank parameters when handling them in templates and parser functions - https://phabricator.wikimedia.org/T196440
2019-07-17 16:02:16 <sario528> Lucas_WMDE: True, but if we convert to a wiki page, rather than the raw text, we could add categories to discussed subjects and it would show up in search
2019-07-17 16:02:26 <Lucas_WMDE> true
2019-07-17 16:03:46 <Lucas_WMDE> anyways, we’re out of time, that concludes today’s Technical Advice IRC Meeting!
2019-07-17 16:03:51 <Lucas_WMDE> thanks to all who participated :)
2019-07-17 16:04:06 <Lucas_WMDE> don’t forget you can always leave questions over at the Wikimedia Developer Support forum: https://discourse-mediawiki.wmflabs.org/
2019-07-17 16:04:11 <Lucas_WMDE> or keep talking here, of course ;)
2019-07-17 16:04:30 <ShakespeareFan00> cscott: Can we continue the Lang discussions?
2019-07-17 16:04:43 <ShakespeareFan00> I've started the split down of the tempalte
2019-07-17 16:04:48 <ShakespeareFan00> *template
2019-07-17 16:10:49 <cscott> ShakespeareFan00: I commented on T196440 as well. Not a full solution yet, but it's definitely something i've been thinking of (mostly in the context of the new heredoc syntax) so almost certain your use case will be accounted for in whatever we eventually come up with here
2019-07-17 16:10:51 <stashbot> T196440: Provide a clearer way to distinguish between "absent" and empty/blank parameters when handling them in templates and parser functions - https://phabricator.wikimedia.org/T196440
2019-07-17 16:11:19 <cscott> i'm giving another "let's rewrite the template system from scratch" talk at wikimania this year, i'll probably work in the default-arguments use case into that as well ;)
2019-07-17 16:11:51 <cscott> ShakespeareFan00: and sure, hit me up with any continued questions about the lang template
2019-07-17 16:11:58 <ShakespeareFan00> Will do
2019-07-17 16:12:09 <cscott> or hop over to #mediawiki-parsoid, where I "live"
2019-07-17 16:12:21 <ShakespeareFan00> cscott: Outside of the meeting but I have another parsoid related thing 've recalled
2019-07-17 16:12:32 <ShakespeareFan00> TO do with subst ing
2019-07-17 16:12:39 <ShakespeareFan00> Let me find the ticket
2019-07-17 16:14:02 <ShakespeareFan00> cscott: https://phabricator.wikimedia.org/T185379
2019-07-17 16:14:22 <ShakespeareFan00> which came out of a use-case at Wikisource again
2019-07-17 16:14:25 <cscott> thanks for asking all the parsing questions! ;) makes me feel like a useful co-host.
2019-07-17 16:14:49 <ShakespeareFan00> In the ticket I've linked I mention a specfic template and use-case
2019-07-17 16:14:59 <ShakespeareFan00> Current subst is litteral
2019-07-17 16:15:07 <ShakespeareFan00> It doesn't examine parser functions
2019-07-17 16:15:16 <ShakespeareFan00> it just puts them in directly
2019-07-17 16:15:45 <ShakespeareFan00> In the use case an #out: function which subst based on processing the Parser functions would have been very powerful
2019-07-17 16:16:19 <ShakespeareFan00> I coudl write say {{playing-card|2|h}} and it subst into the page the full File:syntax needed
2019-07-17 16:16:38 <ShakespeareFan00> whilst still letting the underlying template use the full extent of parser functions and magic words..
2019-07-17 16:16:58 <ShakespeareFan00> Sorry {{#out:playing-card|2|h}}
2019-07-17 16:17:36 <ShakespeareFan00> What get's subst out of the templates mentioned currently is a Pain to clean up
2019-07-17 16:18:04 <ShakespeareFan00> Some people use templates like text macros...
2019-07-17 16:18:52 <ShakespeareFan00> and being able to more cleanly subst the Output, which is typically what is actually desired would be better than having to subst all the parser function code as well
2019-07-17 16:21:53 <ShakespeareFan00> cscoot: BTW don't be afraid to look through some of my old phabricator tickets:)
2019-07-17 16:22:03 <ShakespeareFan00> There are some ideas I closed due to lack of support
2019-07-17 16:22:16 <ShakespeareFan00> but you might want to look at again
2019-07-17 16:22:18 <ShakespeareFan00> :)
2019-07-17 16:22:28 <cscott> I commented on the bug. I don't think it would be too hard to implement. The Q would be, what to call it, would it cause other problems, is this a feature we want to support forever and ever, etc.
2019-07-17 16:22:53 <ShakespeareFan00> cscott: Many of my tickets should be moved over to being feature request tasks
2019-07-17 16:22:58 <cscott> I don't see any obvious problems there, but then again i'm just a parser hacker not an editor on the projects
2019-07-17 16:22:59 <ShakespeareFan00> (When that is possible)
2019-07-17 16:23:22 <ShakespeareFan00> cscott: I also had a ticket about TemplateStyles allowing custom properties
2019-07-17 16:23:30 <cscott> looks like James_F triaged this as "enhancements" not "terrible crazy idea" which is a positive sign. ;)
2019-07-17 16:23:31 <ShakespeareFan00> so called CSS var..
2019-07-17 16:24:16 <cscott> offtopic re: your nick -- do you have any thoughts/feelings about cymbaline?
2019-07-17 16:24:29 <ShakespeareFan00> cscott: Not a play I've seen yet sadly
2019-07-17 16:24:37 <ShakespeareFan00> And the handles is something of an accident
2019-07-17 16:24:45 <cscott> the shakespeare in the park group here where i live is performing it this summer, and i realized it's one of the plays I barely remember reading, and i'm pretty sure i've never seen performed
2019-07-17 16:24:54 <ShakespeareFan00> I set it up when trying to get an IRC drama project going and it never happened.
2019-07-17 16:24:55 <cscott> the wiki article indicates it used to be quite popular, though
2019-07-17 16:25:17 <ShakespeareFan00> Essentialy the handle was related to a project that never happened
2019-07-17 16:25:38 <ShakespeareFan00> but by that time it was already associated with a lot of accounts so wasn'teasy to change
2019-07-17 16:25:42 <ShakespeareFan00> :lol:
2019-07-17 16:26:15 <ShakespeareFan00> cscott: I had one other idea, but it's best taken to PM possibly as it's not actually Mediawiki related yet
2019-07-17 16:28:05 <ShakespeareFan00> but was more to do with a scriptwriting program called trelby
2019-07-17 16:49:59 <ShakespeareFan00> cscott: On Lang , short of turning it into a Module, you meant something like?
2019-07-17 16:50:00 <ShakespeareFan00> https://en.wikisource.org/wiki/Template:Lang/new
2019-07-17 16:50:36 <ShakespeareFan00> I am thinking my tag approach was along the right lines
2019-07-17 16:58:52 <cscott> whew, yeah i see what you mean about passing default arguments!
2019-07-17 16:59:18 <cscott> just pulling the attribs part into its own template is pretty annoying
2019-07-17 17:00:08 <cscott> but that's what i was thinking, yes. I think you've got an unclosed <!-- at the very end though.
2019-07-17 17:25:16 <ShakespeareFan00> cscott: https://en.wikisource.org/w/index.php?title=Page:Beowulf_(Wyatt).djvu/30
2019-07-17 17:25:22 <ShakespeareFan00> A werid little bug
2019-07-17 17:25:30 <ShakespeareFan00> I can't see any mismatching the page itself
2019-07-17 17:30:39 <ShakespeareFan00> And all the Templates should be matched
2019-07-17 17:32:13 <ShakespeareFan00> Sigh - I give up, this https://en.wikisource.org/wiki/Page:Beowulf_(Wyatt).djvu/30
2019-07-17 17:32:22 <ShakespeareFan00> seem unwilling to behave
2019-07-17 17:32:25 <ShakespeareFan00> :(
2019-07-17 17:36:35 <ShakespeareFan00> It doesn't help that the Linthint script has issues with Wikisource pages anyway
2019-07-17 17:36:36 <ShakespeareFan00> :(
2019-07-17 17:39:45 <ShakespeareFan00> If it's the <section> tags then the parser is just straightforwardly broken
2019-07-17 17:41:16 <ShakespeareFan00> Odd... it's tidying the end line to be outside the paragrpah generated
2019-07-17 20:22:59 <Gopa> I'm trying to enable the OAuth to video-cut-tool, I'm always facing this error https://usercontent.irccloud-cdn.com/file/PzrUsfYi/OAuth.png, I hope I gave my token keys properly [1]
2019-07-17 20:22:59 <Gopa> [1] https://github.com/gopavasanth/video-cut-tool-back-end/blob/master/app.js#L53
2019-07-17 20:22:59 <Gopa> Any ideas please :)

This page is generated from SQL logs, you can also download static txt files from here