[wp-docs] MediaWiki Links and CamelCase
Scott Merrill
skippy at skippy.net
Fri Jul 30 18:11:24 UTC 2004
Chris Lott said:
>> You should name the page like the titles should be, so How to Style
>> Lists
>> would be appropriate. Title case I think it's called. Names are case
>> sensitive, except for the first letter:
>
> That's what I thought after reading the section on case. So if you
> could fix my page link, that would be great. Presumably there is a way
> to make a link that fits into the sentence it appears in but links to
> the properly cased page? I'll look in the help... Not that it matters
> since it can't be any more intrusive than the old CamelCase was in the
> middle of a sentence :)
MediaWiki syntax is _reversed_ from phpWiki. Previously, you'd write:
[[This gets displayed | ThisIsTheLink]].
now, we need to write:
[[This_Is_The_Link | This gets displayed]].
It's not mandatory to use underscores in place of spaces, as the MediaWiki
engine will silently perform the translation, but it certainly doesn't
hurt to save the few cycles required for that computation.
Note, also, that external links only require single enclosing brackets,
and don't require the bar seperator:
[http://wordpress.org/ WordPress]
The other big gotcha to remember is that nested lists require additional
tokens, instead of spaces. phpWiki format:
* item 1
* sub-item 1
* sub-item 2
* item 2
MediaWiki format:
* item 1
** sub-item 1
** sub-item 2
* item 2
I know this is all documented at MediaWiki (_thoroughly_ -- with
examples!) but maybe this quick intro will help entice people who might
not normally participate.
More information about the docs
mailing list