[00:02:51] the actual Template:see is incredibly simple, unless there is some hidden software bug (unlikly) the issue is more likely to be the more complex Template:Listing which it relies on, but I still don't know what, if anything is wrong with it. [00:04:28] What's wrong with it is that the parser tries to be clever [00:05:10] attempts to "tidy" up what it sees as unblanced tags, and gets it WRONG [00:05:46] Sadly I don't see this being fixed any time soon without something drastic being done to force the issue :9 [00:05:48] :( [00:06:04] yeah, like rewriting the entire listing template [00:06:09] Quite [00:06:46] Or breaking the parser for all Wiki and putting in SENSIBLE rules about what is and isn't a break character [00:07:28] no that would be too drastic [00:07:58] I've been sorely tempted in the past because of parser issues to 'massively break' things in trying to fix them [00:08:40] It doesn't help that the relevant template is being used to do things it clearly can't do with clever hacks [00:10:00] meaning you get VERY bad HTML comingn out of it [00:10:09] what do you think " " does? [00:10:27] That's a marker [00:10:36] It's a run of bidrectional text [00:11:07] Chaning it to a div would break stuff [00:12:47] theres a lot of html mixed with {{#if: invocations [00:13:03] html introduces non-wiki beahviour [00:13:29] infact if it is possible to render this without HTML that would be highly preferable [00:13:35] Quite [00:13:36] https://en.wikivoyage.org/wiki/Special:ExpandTemplates [00:13:52] Confirms it generates rubbish [00:13:54] :( [00:15:16] its not accurate since the parameters are not correctly inputed unless its in use (i think) [00:16:20] Hmm [00:16:35] It should be re-written in Lua so it's readable [00:16:42] but no-one's volunteering to do that [00:17:05] And this is the core template Wikivoyage uses [00:19:44] very few people know lua [00:19:55] at least thats how it seems [00:20:05] is the html a requirement? [00:36:37] I am not sure they should be using bdi tags [00:45:04] ShakespeareFan00, are you still there? [00:45:10] Yes [00:45:24] If you can fix it do so [00:45:40] In the meantime I am implementing work arounds [00:46:14] have you looked at the page as the browser renders it? [00:46:28] like [00:46:30] view-source:https://en.wikivoyage.org/wiki/Slovak_Karst_National_Park [00:57:55] Thats why I use special ExpandTemplates [01:00:26] And yes BDI tags are why multi-paragraphs break :) [01:00:47] see: - https://html.spec.whatwg.org/#phrasing-content-2 [01:00:54] No mention of a p tag there [01:01:37] P expects phrasing content... [01:01:54] BDI expects phrasing content, but p is flow content tag :( [01:01:57] So it will break [01:02:02] BADLY [01:02:04] the template doe not include any p tags [01:02:08] No [01:02:13] The template doesn't [01:02:25] so they are being added by editors as formating? [01:02:32] Yes [01:02:40] Or Automatically in the markup [01:02:53] by the single blank line which is standard wiki-markup [01:03:14] As I said the parser is trying to do clever 'tidying' up [01:03:29] In combination with other contributors trying to do more than the template technically can do [01:03:37] This leads to ALL manner of issues [01:03:39] XD [01:03:46] And no-one seems to care [01:03:51] :( [01:04:20] https://en.wikivoyage.org/wiki/Template:Listing/sandbox [01:04:27] If listing had been PORPERLY written [01:04:36] rather than hacked together [01:04:42] I stripped out everthing that could be an issue [01:05:08] Right [01:05:15] That's unreadable [01:05:17] :( [01:05:26] It should be done in Lua so it can be read [01:06:14] yeah i can make it readable, but does it still work? [01:06:28] I haven't had time to test the sandbox yet [01:06:32] i just killed all the bdi tags [01:06:33] And I need to sleep [01:06:39] ok [01:06:51] The bdi tags are needed for the class= line I think [01:07:00] oh damn [01:07:01] Unless you are converting them to div or span? [01:07:13] no my idea was just to remove them all [01:07:30] which looses a lot of styleing :( [01:07:36] maybe making all the bdi tags into span would work [01:07:49] Time to take the entire template out behind the shed... [01:07:53] I think the issue is related to the bdi tags [01:07:57] and start again from scratch [01:08:00] * ShakespeareFan00 out [13:56:42] is there an easy way to construct a .sh file, that returns 0 if grep does not find anything? [13:59:37] and what return code do you want if grep find something? [13:59:45] then 0 [13:59:48] oops [13:59:56] ehm, 1 if it does not find something, 0 if so [14:00:50] those are already grep default's return code: 0 on match, 1 if no match [14:01:41] ah, ok, didn't know that yet. Thx :)