User talk:Malacon/monobook.js

From Guild Wars 2 Wiki
Jump to navigationJump to search

Don't delete me[edit]

Somehow this got flagged for deletion. I do not wish it to be deleted. I think I managed to copy in some code that caused this flagging. I have removed most for the code for now until I can test further. — Skill challenge.png Malacon Skill challenge.png on Blackgate — 15:50, 14 September 2012 (UTC)

You copied this from me, so I know what's wrong. For some reason MW still parses the content of .css and .js pages to apply categories as if they were normal articles, like the custom edit button to apply the {{delete}} template. You need to wrap that button with /* <nowiki> */ and /* </nowiki> */ lines. —Dr Ishmael User Dr ishmael Diablo the chicken.png 15:58, 14 September 2012 (UTC)
Yea, I copied yours and some buttons from Mediawiki. Couldn't find my old one from years ago so I have to rebuild. Thanks for the code tip. Nice to have a real programmer around. :) I changed it. Think I got it right. — Skill challenge.png Malacon Skill challenge.png on Blackgate — 16:22, 14 September 2012 (UTC)
  • Does it matter if it is before or after the closing } for the function? Or can you nowiki just one button inside the function? I mimicked yours }/* </nowiki> */ but was curious why your closing nowiki was outside the function. — Skill challenge.png Malacon Skill challenge.png on Blackgate — 16:30, 14 September 2012 (UTC)
It doesn't matter, since they're inside JS comments the JS doens't care where they are, and MW doesn't care about the JS structure. I can't remember why I put it in that position. —Dr Ishmael User Dr ishmael Diablo the chicken.png 16:41, 14 September 2012 (UTC)