Try this:
[[Foo|<pre>Magic link!</pre>]]
(for extra points try and predict what will happen first...)
This one is less exciting, but also odd:
[[Foo|Not what I <gallery>Image:foo.jpg</gallery> expected...]]
Steve
On 15/11/2007, Steve Bennett stevagewp@gmail.com wrote:
Try this:
[[Foo|<pre>Magic link!</pre>]]
(for extra points try and predict what will happen first...)
I failed to predict it. Definitely cool, though.
This one is less exciting, but also odd:
[[Foo|Not what I <gallery>Image:foo.jpg</gallery> expected...]]
I'm not really sure what else could happen with that one...
On 11/15/07, Thomas Dalton thomas.dalton@gmail.com wrote:
On 15/11/2007, Steve Bennett stevagewp@gmail.com wrote:
Try this:
[[Foo|<pre>Magic link!</pre>]]
(for extra points try and predict what will happen first...)
I failed to predict it. Definitely cool, though.
Interestingly it doesn't work in Opera - just renders as a normal <pre> block.
Steve
On Nov 16, 2007 11:08 AM, Steve Bennett stevagewp@gmail.com wrote:
Interestingly it doesn't work in Opera - just renders as a normal <pre> block.
Yes, in Firefox I just see a regular pre. Is this an IE thing?
On Nov 15, 2007 7:44 PM, Stephen Bain stephen.bain@gmail.com wrote:
On Nov 16, 2007 11:08 AM, Steve Bennett stevagewp@gmail.com wrote:
Interestingly it doesn't work in Opera - just renders as a normal <pre> block.
Yes, in Firefox I just see a regular pre. Is this an IE thing?
I just tried it in IE. It was just a normal <pre> block.
On Nov 15, 2007 9:05 PM, Anthony wikimail@inbox.org wrote:
On Nov 15, 2007 7:44 PM, Stephen Bain stephen.bain@gmail.com wrote:
On Nov 16, 2007 11:08 AM, Steve Bennett stevagewp@gmail.com wrote:
Interestingly it doesn't work in Opera - just renders as a normal <pre> block.
Yes, in Firefox I just see a regular pre. Is this an IE thing?
I just tried it in IE. It was just a normal <pre> block.
Just tried it on an older version of mediawiki. I guess someone fixed the bug, in the half day since this was posted?
On 16/11/2007, Stephen Bain stephen.bain@gmail.com wrote:
On Nov 16, 2007 11:08 AM, Steve Bennett stevagewp@gmail.com wrote:
Interestingly it doesn't work in Opera - just renders as a normal <pre> block.
Yes, in Firefox I just see a regular pre. Is this an IE thing?
When I tested it in Firefox it was a regular pre block, but with the entire thing as a link, including the blank space to the right of the text where the block extended all the way to the edge of the screen. Did you hover your mouse pointer over it?
On Nov 16, 2007 10:48 PM, Thomas Dalton thomas.dalton@gmail.com wrote:
When I tested it in Firefox it was a regular pre block, but with the entire thing as a link, including the blank space to the right of the text where the block extended all the way to the edge of the screen. Did you hover your mouse pointer over it?
I was testing on the enwiki sandbox; I tried it again and looked at the source, I got:
<p><a href="/wiki/Foo" title="Foo"></a></p> <pre>Magic link! </pre>
Somewhere along the line, something is closing the anchor before the pre block.
I was testing on the enwiki sandbox; I tried it again and looked at the source, I got:
<p><a href="/wiki/Foo" title="Foo"></a></p> <pre>Magic link! </pre>
Somewhere along the line, something is closing the anchor before the pre block.
Something has changed since I last updated my local copy (a couple of weeks ago, or so), then, or enwiki has a different config to me.
On Nov 17, 2007 12:33 AM, Thomas Dalton thomas.dalton@gmail.com wrote:
Something has changed since I last updated my local copy (a couple of weeks ago, or so), then, or enwiki has a different config to me.
I had a look at some of the revisions to parser.php over the last week or two and didn't notice anything obvious. Maybe it's Tidy or something?
On 16/11/2007, Stephen Bain stephen.bain@gmail.com wrote:
On Nov 17, 2007 12:33 AM, Thomas Dalton thomas.dalton@gmail.com wrote:
Something has changed since I last updated my local copy (a couple of weeks ago, or so), then, or enwiki has a different config to me.
I had a look at some of the revisions to parser.php over the last week or two and didn't notice anything obvious. Maybe it's Tidy or something?
I just ran svn update, purged the cache and reviewed the page, and there was no change. The HTML I'm getting is:
<p><a href="/w/index.php?title=Foo&action=edit" class="new" title="Foo"><pre>Magic link!</pre></a> </p>
On 11/16/07, Thomas Dalton thomas.dalton@gmail.com wrote:
I just ran svn update, purged the cache and reviewed the page, and there was no change. The HTML I'm getting is:
<p><a href="/w/index.php?title=Foo&action=edit" class="new" title="Foo"><pre>Magic link!</pre></a> </p>
That's illegal HTML, since <pre> is a block-level element and <a> is inline-level. On Wikimedia servers, Tidy is fixing it. Probably browsers will make a best-effort interpretation of the invalid text.
(Frankly, block-level links seem like they would really be useful to me. I wish CSS had display: figure-out-from-context; and HTML got rid of the distinction between block and inline on its level. But probably there's some reason that wouldn't work.)
If other people can't be bothered to try this out themselves, just follow this link:
http://en.wikipedia.org/wiki/User:Aquillyne/Sandbox
:P
On 15/11/2007, Steve Bennett stevagewp@gmail.com wrote:
Try this:
[[Foo|<pre>Magic link!</pre>]]
(for extra points try and predict what will happen first...)
This one is less exciting, but also odd:
[[Foo|Not what I <gallery>Image:foo.jpg</gallery> expected...]]
Steve _______________________________________________ Wikitech-l mailing list Wikitech-l@lists.wikimedia.org http://lists.wikimedia.org/mailman/listinfo/wikitech-l
wikitech-l@lists.wikimedia.org