UESPWiki:Archive/CP Notice Template Bug
The UESPWiki – Your source for The Elder Scrolls since 1995
This is an archive of past UESPWiki:Community Portal discussions. Do not edit the contents of this page, except for maintenance such as updating links. |
Buggy Bug
Yeah, an anon user encountered a bug when using the {{notice|}} feature. Whenever an '=' is in the notice, the message goes crazy. As in:
If you're seeing this message, insert "message=" at the start of your message to fix the problem. |
instead of (using nowiki tags):
Ratwar = cool |
Is there anything we can do to fix it? --Ratwar 22:30, 25 April 2007 (EDT)
- Unfortunately, I'm pretty sure this is impossible in wiki mark-up. The = sign inside any template is reserved for variable declarations. Putting it inside nowiki tags seems to work, as you've discovered. The only thing I could think of that would make them any easier would be to make special template just for = signs, like we did for the | sign by using
{{!}}
. Only thing is what would you call it?{{-}}
maybe? Or{{~}}
or{{#}}
? --TheRealLurlock Talk 23:35, 25 April 2007 (EDT)
-
- I introduced a way to fix the problem. You can now use "message=" to make it clear that the text you're providing is a message, and then the message can contain equal signs:
Ratwar = cool |
-
- Before it was interpreting the message to mean that the parameter "Ratwar" was being assigned the value "cool", but then didn't know what to do with the parameter "Ratwar" and couldn't find anything to fill the message with, so it was reverting to the default message (which should perhaps be changed to something less confusing, but it's too late at night for me to want to mess with that right now). --NepheleTalk 03:07, 26 April 2007 (EDT)
-
-
- I'm the anon user in question, and I was trying to do something along the lines of
With this fix, this external link with an equals sign in its url won't make the notice box barf up lorem ipsum. - With the new "message=" syntax, it works just fine. 65.14.2.104 11:32, 26 April 2007 (EDT)
- I'm the anon user in question, and I was trying to do something along the lines of
-
Anyone mind telling me where it pulled the Lorem Ipsum from? I kinda like the way it sounds...Somercy 12:01, 27 April 2007 (EDT)
- Nevermind, I googled Lorem Ipsum for myself...Somercy 12:04, 27 April 2007 (EDT)