Never noticed this before. Compare these:
[[foo|]] [[foo| ]]
Both render as if they were [[foo]], but the first one is replaced by [[foo|foo]] at savetime, while the second one isn't it. Feature or bug?
I'm a bit skeptical about the need to transform pipetricks at savetime. I think a developer once explained it as not wanting third party users of wikitext to have to know the transformation rules, but that sounds pretty flimsy to me.
Steve
Steve Bennett wrote:
Never noticed this before. Compare these:
[[foo|]] [[foo| ]]
Both render as if they were [[foo]], but the first one is replaced by [[foo|foo]] at savetime, while the second one isn't it. Feature or bug?
[[foo| ]] doesn't render as [[foo]], at least on wikipedia. It's rendering as <a href="/w/index.php?title=Foo&action=edit" class="new" title="Foo"></a> So it's trying to render it as a space linking to Foo and somehow the space is trimmed. I'm unsure about the correct behaviour. Syntax should be a space link, but doing that is a bit weird.
I'm a bit skeptical about the need to transform pipetricks at savetime. I think a developer once explained it as not wanting third party users of wikitext to have to know the transformation rules, but that sounds pretty flimsy to me.
Steve
Agree. I remember some discussions about that pointing out that people didn't learn about those save-time tricks because they weren't present on wikitext.
On 2/3/08, Platonides platonides@gmail.com wrote:
[[foo| ]] doesn't render as [[foo]], at least on wikipedia. It's rendering as <a href="/w/index.php?title=Foo&action=edit" class="new" title="Foo"></a> So it's trying to render it as a space linking to Foo and somehow the space is trimmed. I'm unsure about the correct behaviour. Syntax should be a space link, but doing that is a bit weird.
Oh, my mistake, must have been a bit hasty in my test and misinterpreted the result.
I guess since we can't actually render a linking space, the right thing would be to treat it just like [[foo|]]. No big deal though - we're back in the category of "user did something dumb, how much do we try and help out?"
Steve
Hi All
Please note that a space as a *sortkey*, as in [[Category:Foo| ]], is usable, and actually used; it is much the same as using * or ! as a sort key: moves the entry for the page to the top of the category. Some people prefer a space for that, because it does not create a heading in the category listing (well, actually, it does create an empty h3 tag). Though i can't tell you how often it's actually used.
Anyway, treating [[Category:Foo| ]] just like [[Category:Foo|]], i.e. turning it into [[Category:Foo|Foo]], would break things.
-- Daniel
On 2/4/08, Daniel Kinzler daniel@brightbyte.de wrote:
Hi All Please note that a space as a *sortkey*, as in [[Category:Foo| ]], is usable, and actually used; it is much the same as using * or ! as a sort key: moves the entry for the page to the top of the category. Some people prefer a space for that, because it does not create a heading in the category listing (well, actually, it does create an empty h3 tag). Though i can't tell you how often it's actually used.
Anyway, treating [[Category:Foo| ]] just like [[Category:Foo|]], i.e. turning it into [[Category:Foo|Foo]], would break things.
Cool, thanks for the tip. For the purposes of my grammar, I actually treat [[internal links]], [[image:foo.jpg|images]] and [[category:foo|categories]] as three totally separate, unrelated things. Mostly because of the parameters: [[foo|caption|these|are|not|parameters]].
Speaking of the grammar, it's going good now. Had some major dramas with ANTLR, but we're on speaking terms again. :) It covers all features except tables, categories (which I'm about to get onto) and magic words like __TOC__. It parses http://en.wikiversity.org/wiki/Acid-base_chemistry perfectly except for a slight bug in headings.
Steve
Also remember Semantic MediaWiki's syntax. [[Param::Value| ]] is used to hide the attribute and just add the semantic data, instead of rendering it as a link or whatever type of text.
~Daniel Friesen(Dantman) of: -The Gaiapedia (http://gaia.wikia.com) -Wikia ACG on Wikia.com (http://wikia.com/wiki/Wikia_ACG) -and Wiki-Tools.com (http://wiki-tools.com)
Steve Bennett wrote:
On 2/4/08, Daniel Kinzler daniel@brightbyte.de wrote:
Hi All Please note that a space as a *sortkey*, as in [[Category:Foo| ]], is usable, and actually used; it is much the same as using * or ! as a sort key: moves the entry for the page to the top of the category. Some people prefer a space for that, because it does not create a heading in the category listing (well, actually, it does create an empty h3 tag). Though i can't tell you how often it's actually used.
Anyway, treating [[Category:Foo| ]] just like [[Category:Foo|]], i.e. turning it into [[Category:Foo|Foo]], would break things.
Cool, thanks for the tip. For the purposes of my grammar, I actually treat [[internal links]], [[image:foo.jpg|images]] and [[category:foo|categories]] as three totally separate, unrelated things. Mostly because of the parameters: [[foo|caption|these|are|not|parameters]].
Speaking of the grammar, it's going good now. Had some major dramas with ANTLR, but we're on speaking terms again. :) It covers all features except tables, categories (which I'm about to get onto) and magic words like __TOC__. It parses http://en.wikiversity.org/wiki/Acid-base_chemistry perfectly except for a slight bug in headings.
Steve
Wikitext-l mailing list Wikitext-l@lists.wikimedia.org http://lists.wikimedia.org/mailman/listinfo/wikitext-l
On 2/4/08, DanTMan dan_the_man@telus.net wrote:
Also remember Semantic MediaWiki's syntax. [[Param::Value| ]] is used to hide the attribute and just add the semantic data, instead of rendering it as a link or whatever type of text.
I'm just doing plain MediaWiki with minimal extensions for the moment.
Steve
wikitext-l@lists.wikimedia.org