Category talk:FGD
Links on FGD Pages?
would it be a good idea to try and linkify relevant things in FGD pages? entity names are obvious ones, but there might be other things, such as variables. Kestrelguy (talk) 09:27, 25 May 2022 (PDT)
Visual style of FGD pages
I think the light grey background with black text is easier to read than grey text on black background.
E. g. Portal2.fgd is what I would prefer over HalfLife2.fgd as it is currently.
The first one makes use of the pre
tag while the second uses {{codeblock}}.
However, P2's fgd is an outlier here. It seems most other pages use codeblock and the black background.
Rather than mass changing them, I'd like to see the opinions. Cvoxalury (talk) 14:07, 10 September 2024 (PDT)
- The wiki is in dark mode; the big off-white block of text is too much of a flashbang, making it harder to read.
— SirYodaJedi (talk) 15:55, 10 September 2024 (PDT)- It's not nearly bright enough to call it a flashbang, though? To me it's harder to read the blacker tone than the background with grey text on it. It loses definition. Cvoxalury (talk) 00:28, 11 September 2024 (PDT)
- This may be good solution. Made Template:FGD which adds (light text) link. See use Left_4_Dead_2.fgd. The fgd text itself is moved to 'Template:FGD/Left 4 Dead.fgd' and transcluded to the fgd page. Also makes it easier to edit the fgd page without the big text in the way --Nescius (talk) 03:11, 11 September 2024 (PDT)
- That looks like a reasonable solution.
— SirYodaJedi (talk) 09:42, 11 September 2024 (PDT)
- That looks like a reasonable solution.
- This may be good solution. Made Template:FGD which adds (light text) link. See use Left_4_Dead_2.fgd. The fgd text itself is moved to 'Template:FGD/Left 4 Dead.fgd' and transcluded to the fgd page. Also makes it easier to edit the fgd page without the big text in the way --Nescius (talk) 03:11, 11 September 2024 (PDT)
- It's not nearly bright enough to call it a flashbang, though? To me it's harder to read the blacker tone than the background with grey text on it. It loses definition. Cvoxalury (talk) 00:28, 11 September 2024 (PDT)
- There's a big issue with using that template: it doesn't support scrolling by pressing the mouse wheel then moving the mouse. It only enables horizontal scroll (pretty useless) but not vertical scroll.
- The regular old page supported that "pressed" scroll just fine.
- Overall I don't think nesting FGDs inside templates is that good... brings back the awful memories of multipage in a way. Isn't it just simpler to have text on pages? Cvoxalury (talk) 05:25, 14 September 2024 (PDT)
- I am not sure what you mean by the scrolling. The Codeblock template made it so that there is horizontal scroll and didn't wrap text like this Half-Life_2.fgd. The regular old page uses html tag 'pre' like this and is pretty much equivalent to what you can see on the FGD template page where you can get by pressing the 'light text' link Template:FGD/Half-Life_2.fgd.
- The FGDs itself are not supposed to be regularly edited by people because the FGDs are supposed to be same as what's in the game files so the "multipage" format is not really wrong here. And also with big text in the way it's more clunky to edit the regular page if something needs to be added there because of all the text. --Nescius (talk) 05:35, 14 September 2024 (PDT)
- I still don't know what's the "big text" you're talking about...
- Not supposed to be regularly edited - yes, fair point. But doesn't having it nested impact performance too?
- As for scrolling. Do you know how, in a browser, you can press the mousewheel (click it) and it enables slow scrolling controlled by moving the mouse (instead of scrolling the wheel)? Which is helful when you either want to slowly scroll through a long document, or scroll very fast. Well, that behavior doesn't work in the template. Apparently it can only be either horizontal or verticle scrolling that way, and horizontal precludes the vertical. But I don't see why it couldn't wrap text, if it's meant for reading them... Cvoxalury (talk) 01:48, 17 September 2024 (PDT)
- What I meant about big text in the way is that when editing the fgd page (not the template) and you need to edit something at the top of the page and also something at the bottom like categories you need to scroll through whole fgd text which will almost never be edited anyway.
- As for the scrolling what confused me is you were talking about it as if it was issue of FGD template I made but I simply kept the current behaviour. The codeblock template was adding the horizontal scroll before I did any edits with the FGD template. And the 'light text' link that links to just the fgd text doesn't use any template just pre tags as it was before the codeblock was added and that's where I assume you want to view the fgd right ? The middle click scroll also worked for me on both dark and light fgd page. Also just turned on the softwrap so that there is no horziontal scroll.
- Performance difference is insignificant, 'CPU time usage' on Left_4_Dead_2.fgd page says 0.07 seconds with just the FGD template and adding LanguageBar and TabsBar makes it 0.2. --Nescius (talk) 05:24, 17 September 2024 (PDT)