Hello there! We are conducting a survey to better understand the user experience in making a first edit. If you have ever made an edit on Gamepedia, please fill out the survey. Thank you!

Talk:UI escape sequences

From Wowpedia
Jump to: navigation, search

If you type |c###### in a chat box, and send it over a channel, does it appear that colour to the recipient? =O --Psyker7 19:00, 16 March 2007 (EDT)

Not quite. If you type | in a chat box, it will automatically become || to escape that character. As a result, you can't directly send chat messages in color, though you could use API_SendChatMessage SendChatMessage() to do so. You would have to, however, use the \124 escape sequence instead of |, because it is likely the pipe character will get escaped. Of course, that doesn't matter anyway, because if you try to change colors in an invalid way (a non-item-link), you will get disconnected when you try to send it, as the server protects itself. Shirik 19:33, 16 March 2007 (EDT)
So the server disconnect is based on the colour as well... thought it was just for the link. Thanks for satisfying my random curiosity ^.^ --Psyker7 19:40, 16 March 2007 (EDT)

This page is getting quite big and messy, maybe split it and have this as a general sequence describing page? Tanoh (talk) 20:28, 22 December 2008 (UTC)

Chat-specific escape sequences

The %t, %n, %f escape sequences, as well as the {texture} sequences, strike me as fundamentally different from the others, since they can be used without any lua code at all, and even outside of macros. I'm adding them to the Macro API page (since despite being usable in regular chat, it's hard to imagine them being useful there) and leaving this section alone for now, but that section should probably just be replaced with "UI elements can use standard macro escape sequences" or something similar, with a link, no? - jerodast (talk) 21:03, 19 August 2014 (UTC)

For the record, the {{chattextmodifiers}} page exists and is transcluded on several macro command pages (as I just discovered). However, I still think the info would be most appropriate on the Macro API page. - jerodast (talk) 21:33, 19 August 2014 (UTC)
That entire section should be moved elsewhere -- maybe Macro API, maybe a chat-specific text replacement article that might not exist yet. I don't think PlayerName:SetText("{rt1} %n %f %t") actually results in anything getting replaced, so these are pretty much specific to chat. — foxlit (talk) 21:43, 19 August 2014 (UTC)