Does anyone know why images don't seem to update instantly on the wiki? I added some images to the [URL="http://wiki.garrysmod.com/page/Category:DNumSlider"]DNumSlider[/URL] page, but they didn't change until I reverted the image back to the original, which then let me see a preview of the actual image I uploaded before
[QUOTE=MPan1;50135712]Does anyone know why images don't seem to update instantly on the wiki? I added some images to the [URL="http://wiki.garrysmod.com/page/Category:DNumSlider"]DNumSlider[/URL] page, but they didn't change until I reverted the image back to the original, which then let me see a preview of the actual image I uploaded before[/QUOTE]
Did you try using ctrl+F5 to refresh the page?
[QUOTE=MPan1;50135712]Does anyone know why images don't seem to update instantly on the wiki? I added some images to the [URL="http://wiki.garrysmod.com/page/Category:DNumSlider"]DNumSlider[/URL] page, but they didn't change until I reverted the image back to the original, which then let me see a preview of the actual image I uploaded before[/QUOTE]
Because either MediaWiki or CloudFlare settings.
[editline]15th April 2016[/editline]
I'd recommend uploading new files over updating old ones.
It still hasn't updated for me after all this time, could someone perhaps refresh them somehow?
[QUOTE=MPan1;50140600]It still hasn't updated for me after all this time, could someone perhaps refresh them somehow?[/QUOTE]
First time I did Ctrl + Shift + R it updated...
Dear god, that works
[editline]16th April 2016[/editline]
Sorry for being an idiot, I've just never pressed those buttons in my entire life
[editline]16th April 2016[/editline]
This is probably a dumb question, but why do some pages on the wiki have an 'Edit with form' button and some don't? Is there some way to script a custom form so you could use it on pages without that button?
[QUOTE=MPan1;50141214]This is probably a dumb question, but why do some pages on the wiki have an 'Edit with form' button and some don't? Is there some way to script a custom form so you could use it on pages without that button?[/QUOTE]
Forms only exist on pages that use a template that has a form defined. I don't actually know much about it but this is a good place to start: [url]https://mediawiki.org/wiki/Extension:Semantic_Forms[/url]
Edit: according to that page, any wiki user can define a form, so have at it!
I just noticed [URL="https://wiki.garrysmod.com/page/hammer/SendCommand"]this page here[/URL] has a fairly long list of commands to use with that function, does anyone think it'd be a good idea to move that list of commands onto a separate reference page, and to organize them in a table?
[QUOTE=MPan1;50142047]I just noticed [URL="https://wiki.garrysmod.com/page/hammer/SendCommand"]this page here[/URL] has a fairly long list of commands to use with that function, does anyone think it'd be a good idea to move that list of commands onto a separate reference page, and to organize them in a table?[/QUOTE]
Unless more commands use it it seems a bit unnecessary to create a whole page for such a relatively small list (<15 in size)
Well, I'm a bit annoyed...
No javascript:
[img]https://i.gyazo.com/f95def0a8300199dbdbcfcdcc0faca4f.png[/img]
Javascript:
[img]https://i.gyazo.com/63596b47a992e9f19bd5dfa09343991f.png[/img]
(this page: [url]http://wiki.garrysmod.com/page/Editable_Entities[/url] )
*sigh* I'll use tabs...
Edit: it's ok now, I was worried about tabs because of the whole "how many spaces are there between tabstops" thing but it seems to be fine.
[editline]17th April 2016[/editline]
(hoping for postmerge)
I'm looking into DProperty_* elements (most prominently used in Editable Entities), and I've noticed something kinda weird in the wiki sidepanel:
[img]https://i.gyazo.com/9f39215c858538582cfcf5638d2eff7d.png[/img]
It seems that the wiki naturally translates underscores into spaces because that's MediaWiki's thing, and then somehow our wiki's custom code (or javascript) is forcing it back into an underscore but leaving shit behind?
I just added an [i]automatic[/i] note to predicted hooks. Example: [img]http://wiki.garrysmod.com/favicon.ico[/img] [url=http://wiki.garrysmod.com/page/TOOL/LeftClick]TOOL:LeftClick[/url]
[quote][b]NOTE:[/b] This hook is [url=http://wiki.garrysmod.com/page/Prediction]predicted[/url]. This means that in singleplayer, it will [i]not[/i] be called clientside.[/quote]
If you want to disable it for a specific hook, add this line to the end of the description:
|ClientSingleplayer=Yes <!-- comment -->
[quote][img]https://i.gyazo.com/820b33253ef0877fa55a38e4668ac87c.png[/img][/quote]
Next time you edit with form it won't be there though, if you want to re-enable it, edit using the regular Edit button and remove the line from there.
Examples of hooks that had the note disabled:
[img]http://wiki.garrysmod.com/favicon.ico[/img] [url=http://wiki.garrysmod.com/page/WEAPON/PrimaryAttack]SWEP:PrimaryAttack[/url] - (overkill) description already exists, seems a shame to remove it. Might need a rewrite though.
[img]http://wiki.garrysmod.com/favicon.ico[/img] [url=http://wiki.garrysmod.com/page/WEAPON/Think]SWEP:Think[/url] - this one is an exception, it IS ran clientside (see its own note)
[img]http://wiki.garrysmod.com/favicon.ico[/img] [url=http://wiki.garrysmod.com/page/WEAPON/Deploy]SWEP:Deploy[/url] - custom note already exists and I cba to rewrite it :smile:
If you spot any problems with this, go ahead and fix them and/or tell me. :happy:
[img]http://i.imgur.com/zn2OnSf.png[/img]
Yay or nay?
[editline]27th April 2016[/editline]
[img]http://i.imgur.com/xt2FAhW.png[/img]
:snip: dumb question
[QUOTE=Robotboy655;50207888][img]http://i.imgur.com/zn2OnSf.png[/img]
Yay or nay?
[editline]27th April 2016[/editline]
[img]http://i.imgur.com/xt2FAhW.png[/img][/QUOTE]
How does it look with my usual long ass notes? [img]http://wiki.garrysmod.com/favicon.ico[/img] [url=http://wiki.garrysmod.com/page/Entity/SetLagCompensated]Entity:SetLagCompensated[/url] for instance.
[img]http://i.imgur.com/d9xg0nc.png[/img]
Pictures or GIF's of the examples as a lot dont have example pictures/gif's which makes you not know if its that function you need to choose to use.
[QUOTE=xAl3xTh3K1nG;50254468]Pictures or GIF's of the examples as a lot dont have example pictures/gif's which makes you not know if its that function you need to choose to use.[/QUOTE]
You can add your own pictures and stuff to the wiki easily ... the reason there aren't many at the moment is cause nobody can be bothered adding them
Are most of the state icons missing for anyone else?
[IMG]http://puu.sh/oKGgQ/c616975608.jpg[/IMG]
[QUOTE=bigdogmat;50281436]Are most of the state icons missing for anyone else?
[IMG]http://puu.sh/oKGgQ/c616975608.jpg[/IMG][/QUOTE]
Seems that for some reason, Client links don't have the class set.
[img]http://i.imgur.com/cBGFlPA.png[/img]
[QUOTE=bigdogmat;50281436]Are most of the state icons missing for anyone else?
[IMG]http://puu.sh/oKGgQ/c616975608.jpg[/IMG][/QUOTE]
I think the sidebar generation script just failed to retrieve the clientside function list, it should resolve itself when it next updates.
Can you enable [url=https://www.mediawiki.org/wiki/Manual:$wgAllowUserCss]customizable CSS[/url]?
[QUOTE=NeatNit;50314975]Can you enable [url=https://www.mediawiki.org/wiki/Manual:$wgAllowUserCss]customizable CSS[/url]?[/QUOTE]
Use [url]https://chrome.google.com/webstore/detail/stylebot/oiaejidbmkiecgbjeifoejpgmdaleoha?hl=en[/url] or equal.
:snip: wrong thread
Would it be possible for some moderator of the wiki forums to make a script that goes through checking wiki examples to make the variables in them local? There are so many, many examples on the wiki with un-localized variables, and many new players are copy-pasting these examples into their code, not knowing how exploitable and dangerous this makes their code.
[QUOTE=MPan1;50336693]Would it be possible for some moderator of the wiki forums to make a script that goes through checking wiki examples to make the variables in them local? There are so many, many examples on the wiki with un-localized variables, and many new players are copy-pasting these examples into their code, not knowing how exploitable and dangerous this makes their code.[/QUOTE]
...What? A variable being global doesn't make a script exploitable...
[QUOTE=man with hat;50336927]...What? A variable being global doesn't make a script exploitable...[/QUOTE]
Isn't it possible for clients to change serverside variables from their side if they're global? Actually, that's probably wrong, but it's still possible for variables to be overwritten that shouldn't have been overwritten if they weren't local
[QUOTE=MPan1;50336693]Would it be possible for some moderator of the wiki forums to make a script that goes through checking wiki examples to make the variables in them local? There are so many, many examples on the wiki with un-localized variables, and many new players are copy-pasting these examples into their code, not knowing how exploitable and dangerous this makes their code.[/QUOTE]
Could you link to an example like this? If I notice something like this I would normally fix it, but I don't really recall coming across one.
[QUOTE=MPan1;50340187]Isn't it possible for clients to change serverside variables from their side if they're global? Actually, that's probably wrong, but it's still possible for variables to be overwritten that shouldn't have been overwritten if they weren't local[/QUOTE]
No, lol. And even though it is possible for global variables to be overwritten, that doesn't make global variables bad. They exist for a reason, and that reason is for variables to be used in multiple scripts. If it doesn't need to be used in another script, it shouldn't be a global. A robot cannot determine whether a variable needs to be local or not.
MPan, I just created this which might help you remember: [url]http://wiki.garrysmod.com/page/Category:Pages_with_examples[/url]
It's still being populated so it doesn't include EVERY page with an example, but if it's really so common as you say, that shouldn't matter. I went through a handful and didn't find a single global variable.
Although, now that I think about it, the same list could have been achieved with just [url]http://wiki.garrysmod.com/index.php?title=Special:WhatLinksHere/Template:Example&hidelinks=1&hideredirs=1[/url]
Oh well, what's done is done.
Edit: alright, found one: [url]http://wiki.garrysmod.com/index.php?title=bit%2Fbor&action=historysubmit&diff=23898&oldid=19452[/url]
whatev's.
-- bump from page 3 :D --
Hooks' titles seem to link to the wrong category. Example:
Clicking on Entity in the title of [img]http://wiki.garrysmod.com/favicon.ico[/img] [url=http://wiki.garrysmod.com/page/Entity/Activate]Entity:Activate[/url] will take you to [url=http://wiki.garrysmod.com/page/Category:Entity]Category:Entity[/url]
But clicking on ENT in [img]http://wiki.garrysmod.com/favicon.ico[/img] [url=http://wiki.garrysmod.com/page/ENTITY/Initialize]ENT:Initialize[/url] will take you to [url=http://wiki.garrysmod.com/page/Category:ENTITY]Category:ENTITY[/url] instead of [url=http://wiki.garrysmod.com/page/Category:ENTITY_Hooks]Category:ENTITY_Hooks[/url]
If it's not clear I'm talking about these titles:
[img]https://i.gyazo.com/5c5ce1dc6725b0746c7323fad35182e0.png[/img]
[img]https://i.gyazo.com/e02d2b84614ed36d9238c10b6b46e653.png[/img]
[editline]1st June 2016[/editline]
I could just make redirects though. Doing that now.
Sorry, you need to Log In to post a reply to this thread.