Wikia

WoWWiki

Talk:UltraEdit WoW wordfile.txt

102,281pages on
this wiki

Back to page

Use preformatted text? Edit

Maybe you should use replace all the < and > characters with &lt; and &gt; and that will make it so you can copy stuff without going to edit? Maybe you also have to replace [ ] { } with &#91; &#93; &#123; &#125;. Just a thought. --Fandyllic 3:46 PM PDT 9 Jun 2006

Yeah, I considered that. But then it becomes a royal pain to update - especially considering it might not just be me doing it. I just went with this cheat in the end. --Mikk 07:03, 10 June 2006 (EDT)


Mikk, why not use <pre>? It is more visually readable and the only change that it necessitates is that the internal <pre> and </pre> (and only those two) codes need to be defined by html entities. This way you can just copy and paste without editing. Remember that some people who may be using this might not want to create an account here. But if you're going to view the wiki source, you have to have an account, because you have to click "edit".

As for long lines being undesirable, at least you can make sense out of it. It matters less that that is difficult than all the rest of it being one or two jumbles. Schmidt 16:43, 25 June 2006 (EDT)

That's not all. You're missing more tags that disappear out of the page and end up ruining the file. I'll give you a cookie for each one you find :P   I can think of a few others that might need patching, but I don't really want to assume I have the complete list.
Plus, even if I figure out everything that needs patching, it becomes a royal pain to update for others, since you don't just want to randomly hack things into the wikitext. You really do want to test the complete file in your editor before uploading it.
I'd like to see Rustak allow .txt file uploads like plenty other MediaWikis do. --Mikk 16:49, 25 June 2006 (EDT)
I'd like to see you name one specifically. And I'd like to know what parser one would use that would accent the difference between characters. Yes, I know that there are some space and hard-return characters that look identical to others. What program would accent the differences? Schmidt 17:28, 25 June 2006 (EDT)
<nowiki> and '' for two. And like I said, even if I can catch them all now, I can't tell what future additions to the file, or, heck, future mediawiki changes will cause. --Mikk 17:38, 25 June 2006 (EDT)
Okay. I got you there. So the mention of <nowiki> and the end tag are so that the parser knows what to do with them, or is it to just add a blank line?
What about <OnLeave>? Where does this code come in? As I understand it, this text file is there to improve capabilities of the parser to recognize Lua and MW code. <OnLeave> doesn't sound like MW code (although if it is, it could be useful although I wouldn't know how to use it right off), and definitely doesn't look like any sort of programming code. Schmidt 18:01, 25 June 2006 (EDT)
<nowiki> is just there to make the editor colorize them like the other HTMLish tags allowed in wikitext.
<OnLeave> is WoW XML - see XML User Interface.
--Mikk 18:12, 25 June 2006 (EDT)

So.... correct me if I'm wrong here. If we drop the <nowiki> thing and the '', other than that it should be identical.

In this case, you simply have the parser not consider these two codes. These codes are only for wiki formatting anyways, so it's not relevant to WOW XML or anything. In the end, it doesn't even matter that they are not parsed, because the WOW UI won't pick them up in the way that it would be picked up in wiki formatting. Isn't that what this whole text file is for anyways? So in the end you don't even need those codes. The only reason you'll need them is if you're writing wiki text and in that case, you wouldn't be using all the other codes. So you will wind up having two of these files. Do you get my reasoning here?

So all told, the two codes you mentioned above are not at all relevant to the rest of the code in the file. It's like one of those questions you see when you're a kid, and perhaps on IQ tests:

Which one doesn't belong here?
  1. Computer
  2. Keyboard
  3. Mouse
  4. Rabbit

Just because rabbits and mice are both animals, and both rodents, doesn't mean that they fit with the other two, whereas the top three fit together and the bottom doesn't. You see? Schmidt 19:40, 25 June 2006 (EDT)

Arf. I'll attempt to solve this by mailing Rustak about allowing .txt file uploads. It'll be useful for other programming related things. --Mikk 09:23, 26 June 2006 (EDT)

Around Wikia's network

Random Wiki