what does gmodwiki green means?

that’s a really easy question , i’m sorry ask here,due to my language problem i can’t search correctly.i know blue means serverside orange means clientside,could anyone tell me what does green means?

menu state, i think it says if you hover over it

This really should’ve gone here instead of making a whole thread for it

Menu state/global

Unfortunately it doesn’t show on hover, which was a pain for me when starting out and my memory is terrible :stuck_out_tongue: - it does at maurits.tv but not the wiki.garrysmod.com. You can however right click on the color and ‘Inspect Element’ and you can see it in the html tag.

it does say at the bottom though

Saw this thread and wanted to edit the template and add mouse hover text, but the element is created and handled entirely in javascript. There’s nothing a common Wiki user/editor can do.

So much of the wiki is handled in javascript, it’s disgusting. Disable javascript and you’ll see that the wiki is barely functional, whereas disable javascript on wikipedia and you’ll see barely any difference.

The annoying thing is that this COULD have been done in wiki. I can only assume garry didn’t bother to learn how to do it so he went with javascript. But in the past few weeks, I’ve learned a shitton about some advanced things that can done in a wiki and now because everything is in javascript I can’t edit and fix like half the stuff I want to.

/rant

That screenshot isn’t what we were talking about? The Orange, Green or Blue icon next to a function/hook etc. that tells you if it’s client-side, server-side, shared etc.

On mauritis.tv it shows the text on hover but on main wiki it doesn’t.

Screw it, did it anyway. I expect robotboy or someone else to remove the javascript code that generates the one I can’t touch, currently you will see two icons and the right one has title text (= mouseover text)

The relevant part of the javascript that should be removed is the b variable in lines 68+69:


{if(!wgIsArticle)return;var b="";if($(".catlinks A").filter("A:contains(Client)").length>0){b="<span class='client'> </span>"}else if($(".catlinks A").filter("A:contains(Server)").length>0){b="<span class='server'> </span>"}else if($(".catlinks A").filter("A:contains(Shared)").length>0){b="<span class='shared'> </span>"}else if($(".catlinks A").filter("A:contains(Menu)").length>0){b="<span class='menu'> </span>"}
var a=$(".function_line").html();if(a){a=a.replace('ENTITY:',"ENT:");a=a.replace('WEAPON',"SWEP");a=a.replace('( <span class="function_args"></span> )',"()");$(".function_line").html("<a href='#' onclick='copyBB();' height='12px' title='Copy BB-code to clipboard'><img src='/skins/garrysmod/link.png' width='12px' style='top: 2px;position: relative;'></a> "+ b+ a)}

↓

{if(!wgIsArticle)return;
var a=$(".function_line").html();if(a){a=a.replace('ENTITY:',"ENT:");a=a.replace('WEAPON',"SWEP");a=a.replace('( <span class="function_args"></span> )',"()");$(".function_line").html("<a href='#' onclick='copyBB();' height='12px' title='Copy BB-code to clipboard'><img src='/skins/garrysmod/link.png' width='12px' style='top: 2px;position: relative;'></a> "+ a)}

  • crosses fingers that syntax highlighting doesn’t kill this snippet *

[editline]13th April 2016[/editline]

It’s in “menu”, so it has the “Menu Hooks” category.
Edit: ironically for your post, the javascript code actually looks in the categories section to decide on the icon. :wink: