How to: Handle category pages easily
From xoa
Categories get created automatically, just by doing this at the bottom of a page:
[[Category:Perl]]
Your page is now part of [[:Category:Perl]]. If there's not a page for [[Category:Perl]], you can create it. But don't do it yet.
First, go make a page called [[Perl]]. Put in a little discussion of what Perl is.
Then, on the [[Category:Perl]] page, transclude the main topic page, like this:
{{:Perl}}
That's it. Your category page will now slurp up the "real" page, and you'll have the same content at both [[Perl]] and [[Category:Perl]], except that the latter shows categorized pages below it, of course.
Here's how it looks here on xoa:
- [[Perl]]: Perl
- [[Category:Perl]]: Category:Perl
