Advanced MediaWiki
From WhyNotWiki
MediaWiki edit (Category edit)
Contents |
[edit] How do I convert a normal page into a category?
You can't just move/rename it like you can most files... If you try, it will give an error saying you can't change an article to a "special type".
Instead, export the file as an .xml file, find the <title> tag, prefix the value with "Category:", and import it. Simple!
[edit] How do I rename a category?
You can't just rename it... The move link is curiously absent for category pages.
Do the same thing as above: export the file as an .xml file, change value of <title> tag, and import it.
[edit] Exporting: How do I pull just the data from a page?
http://meta.wikimedia.org/w/query.php
[edit] [MediaWiki templates (category)]
[edit] Parser functions
http://meta.wikimedia.org/wiki/ParserFunctions
{{#ifeq: <text 1> | <text 2> | <equal text> | <not equal text> }}
{{#switch: {{{3|NIV}}} | NIV=31 | NLT=51 }}
[edit] How do I conditionally show rows of a table?
http://en.wikipedia.org/wiki/Wikipedia:Qif_conditionals
{| class="infobox"
{{#if:{{{foo|}}}|
{{!}}-
! Foo
{{!}} {{{foo}}}
}}
|-
! Bar
| {{{bar}}}
|}
