I'm working on modernizing Rosetta Code's infrastructure. Starting with communications. Please accept this time-limited open invite to RC's Slack.. --Michael Mol (talk) 20:59, 30 May 2020 (UTC)

Category talk:GML

From Rosetta Code

HOPL[edit]

The HOPL link is for a completely different language. Any way to turn it off for just this page? -- Erik Siers 23:26, 27 January 2011 (UTC)

Part of the issue is that the HOPL doesn't cover this variation on “GML”. The right thing would be to get the HOPL extended, surely? –Donal Fellows 09:44, 28 January 2011 (UTC)
Poke Axtens; he's part of the HOPL core folk, I believe. Also poke Mwn3d, and see if {{language}} can be tweaked to customize the HOPL link. --Michael Mol 14:35, 28 January 2011 (UTC)
I got rid of the link but I need to do some more crazy stuff to get rid of "See also:". I'll work on it more later. --Mwn3d 15:28, 28 January 2011 (UTC)
How about moving "See also:" to the HOPL template? I think that would take care of it, if I understand mediawiki markup rightly. -- Erik Siers 16:37, 28 January 2011 (UTC)
Well yeah, but there are other links that show up in the "See also" section. There are links to the LCT and links to a BNF for the language that can be there. I want the "See also:" to show up if at least one of those is present. That'll take some thinking.--Mwn3d 17:07, 28 January 2011 (UTC)
Ah, I see.
Does mediawiki support anything like if x or y ... or if x ... elseif y ...? (The mw docs aren't helping me much.) I'm thinking that something simple like if HOPL or LCT or BNF then "See also:" or if HOPL then "See also:" elseif LCT then "See also:" elseif BNF then "See also:" might work (in appropriate mw markup, of course).
If neither construct is available, it might be worth it to extend the mw source. (I'm not offering to do it myself, though; PHP is pretty low on my list.) -- Erik Siers 18:32, 28 January 2011 (UTC)
Yeah I have something like that in there right now, but it needs tweaking. It has to be "if hopl=yes or LCT or BNF". Basically I didn't feel like messing with nesting right now. I've been looking here for help. If you want to give it a try you can. Try things out in {{Language beta}} and see what happens. Actually we should look at bringing in some of the sweet-looking table styling from that template... --Mwn3d 19:18, 28 January 2011 (UTC)
That help page looks like a nightmare. :-) -- Erik Siers 19:33, 28 January 2011 (UTC)
I think I just got it. It looks right here and I checked Java to see if it broke other things and it looks OK. Let me know if you see problems. --Mwn3d 19:32, 28 January 2011 (UTC)
Looks good to me. -- Erik Siers 19:33, 28 January 2011 (UTC)