Multiverse Feedback: Cardlist | Visual spoiler | Export | Booster | Comments | Search | Recent activity
Mechanics | Upcoming releases | Skeleton

CardName: Bad card url encoding Cost: G Type: Pow/Tgh: / Rules Text: Link to my description page where the bug is: http://multiverse.heroku.com/cardsets/229 Hey, I noticed that in a description page, if you have text that's wrapped in a grey box, your script for some reason doesn't like to show card links as formatted with [[[Cardname]]]. I examined the source code and noticed that you're using both <pre> then <code> tags. I tried downloading source then displaying it locally but I think it might have problems with the Same Origin Policy or something because it's not displaying correctly locally. Anyways, I'm not sure exactly what the problem is since I can't see your server-side script which is managing these pages but you can see the <a href='url'> tags instead of there being links. I'm going to post a comment so the text isn't tiny on the card Flavour Text: Set/Rarity: Multiverse Feedback Common

Bad card url encoding
{g}
 
 C 
 
Link to my description page where the bug is: http://multiverse.heroku.com/cardsets/229
Hey, I noticed that in a description page, if you have text that's wrapped in a grey box, your script for some reason doesn't like to show card links as formatted with [[[Cardname]]]. I examined the source code and noticed that you're using both <pre> then <code> tags. I tried downloading source then displaying it locally but I think it might have problems with the Same Origin Policy or something because it's not displaying correctly locally.
Anyways, I'm not sure exactly what the problem is since I can't see your server-side script which is managing these pages but you can see the <a href='url'> tags instead of there being links. I'm going to post a comment so the text isn't tiny on the card
Updated on 03 Apr 2012 by Camruth

History: [-]

2012-03-01 20:46:24: Mandroid created the card Bad card url encoding

Also if you click on your browser's options and view the source you will see this instead of the anchor tags:

Cockroach: A card that just won't die, and is annoying, but not strong enough to draw the ire of the other players at the table. <a name="http://gatherer.wizards.com/Handlers/Image.ashx?type=card&amp;amp;name=bloodghast" href="http://gatherer.wizards.com/Pages/Search/Default.aspx?name=+[%22Bloodghast%22]" class="wizardscard">Bloodghast</a>

[etc]

So I guess it's really just up to you to fix it.

I think I could reasonably say that you shouldn't expect any formatting (which includes triple-bracket links) to work within \

 tags... Why are you using preformatted text on that details page anyway?

If you just use normal Markdown (basically remove the spaces at the start of the lines) then the text will wrap better and your links will work. Click the "(formatting help)" link next to any edit box and it'll show you how to write Markdown headings, and give you a hyperlink to learn about more details of Markdown formatting.

2012-03-25 21:13:30: Alex edited Bad card url encoding:

fixed

I edited the details page to use proper Markdown for you.

Sweet, thanks man. Sorry I forgot to give you more info on this bug, I kind of forgot about it. I was just putting text into the input field, not even actually using the \

 tags, it was automatically adding them.  I did at one point mess around with the text on my main page, so I don't know if the behaviour you implemented is what you wanted according to what my initial bug report was.  I may check it at one point but I've been here less because I really need to finish my Thesis.  Speaking of which, I should really get back to that.  I need to build multithreading into my algorithm and I haven't even started on that.  I'm gonna hit up the library today and see if I can start passing around network traffic between computers.  That probably wont work out though, I don't know if the network setup in the library is designed for users to route traffic...

Yeah, Markdown - like UseModWiki and I think MediaWiki - treats indented paragraphs as preformatted text. I basically just removed the spaces at the start of every line, and poof, it reads nicely now. :)

2012-04-03 07:00:10: Camruth edited Bad card url encoding

Add your comments:


(formatting help)
Enter mana symbols like this: {2}{U}{U/R}{PR}, {T} becomes {2}{u}{u/r}{pr}, {t}
You can use Markdown such as _italic_, **bold**, ## headings ##
Link to [[[Official Magic card]]] or (((Card in Multiverse)))
Include [[image of official card]] or ((image or mockup of card in Multiverse))
Make hyperlinks like this: [text to show](destination url)
How much damage does this card deal? Shock
(Signed-in users don't get captchas and can edit their comments)