Category talk:GML: Difference between revisions

From Rosetta Code
Content added Content deleted
(→‎HOPL: It would but...)
(→‎HOPL: "if")
Line 8: Line 8:
::::How about moving "See also:" to the [[Template:HOPL|HOPL template]]? I '''think''' that would take care of it, if I understand mediawiki markup rightly. -- [[User:Eriksiers|Erik Siers]] 16:37, 28 January 2011 (UTC)
::::How about moving "See also:" to the [[Template:HOPL|HOPL template]]? I '''think''' that would take care of it, if I understand mediawiki markup rightly. -- [[User:Eriksiers|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 [[Language Comparison Table|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.--[[User:Mwn3d|Mwn3d]] 17:07, 28 January 2011 (UTC)
:::::Well yeah, but there are other links that show up in the "See also" section. There are links to [[Language Comparison Table|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.--[[User:Mwn3d|Mwn3d]] 17:07, 28 January 2011 (UTC)
::::::Ah, I see.
::::::Does mediawiki support anything like '''<code>if x or y ...</code>''' or '''<code>if x ... elseif y ...</code>'''? (The mw docs aren't helping me much.) I'm thinking that something simple like '''<code>if HOPL or LCT or BNF then "See also:"</code>''' or '''<code>if HOPL then "See also:" elseif LCT then "See also:" elseif BNF then "See also:"</code>''' 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.) -- [[User:Eriksiers|Erik Siers]] 18:32, 28 January 2011 (UTC)

Revision as of 18:32, 28 January 2011

HOPL

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)