MediaWiki template syntax
-
MediaWiki Template Syntax
Define Template:Foo as
{{{a b|Uh-oh!}}}
In another page,
{{Foo|a b=Works!}} <!-- outputs "Works!" --> {{Foo|a b=Works!}} <!-- outputs "Uh-oh!" --> {{Foo|a b=Works!}} <!-- outputs "Uh-oh!" -->
TWTF is that MediaWiki allows newlines in its variable names.
Who in their right mind would think that's useful?
TRWTF would be if this was actually in use anywhere....
-
Why are you discriminating against honest hardworking newlines? You… whitespaceist!
-
TWTF is that MediaWiki allows newlines in its variable names.
Who in their right mind would think that's useful?
Haven't we already had a similar conversation about unicode variable names? Also this.
-
TWTF is that MediaWiki allows newlines in its variable names.
The parser probably just searches for “}}” to match the “{{”, so any character can be in the variable name.
-
TWTF is that MediaWiki allows newlines in its variable names.
Have you tested it to find out whether \n and \r\n mean the same thing?
-
MediaWiki is weird and strange in many ways. I'm astounded that it requires 70MB or thereabouts just to install. Wikisyntax in general feels like Markdown to me - a vague attempt to minify and "simplify" markup for people who can't use bbcode (while bbcode has its detractors, it is less ambiguous than HTML!)
Also, this is an interesting language though it is, of course, an April Fool's Day joke.
-
I'm astounded that it requires 70MB or thereabouts just to install.
Hmm. That all? Granted this is a git clone, but:
[harridanic@s15474768 w]$ du ../git/ -hs 308M ../git/
And that's just the source - there's no wiki content in that directory.
Edit: The download is 81MB:
[root@lenovo 25]# gzip -l /tmp/mediawiki-1.23.0.tar.gz compressed uncompressed ratio uncompressed_name 19872682 85647360 76.8% /tmp/mediawiki-1.23.0.tar
-
It was 70MB last time I did an install, which made me chuckle because at the time the system reqs said 40MB HDD space required.
-
Uh, so I actually got a badge for this... heh.
Granted, I also shared on IRC. So the click tracking might not be broken.