|
Cookbook /
MediaCategoriesSummary: Assembles all Categories in a page, alphabetizes, and appends to bottom of page--in the style similar to MediaWiki.
Version: 2.0
Prerequisites: None
Status: Stable as of 2.1.5
Maintainer: BenWilson
Discussion: MediaCategories-Talk?
QuestionI want a painless way of implementing the Mediawiki markup for categories. AnswerMedia Categories simulates the style of the Mediawiki wiki markup. When categories are listed on a line it will label them and put them into a block. NotesTo use this script, simply copy it into the cookbook/ directory and add the following line to config.php (or a per-page/per-groupcustomization file). Throughout the document, you can place the categories, for example [[!ChickenRecipes]] and [[!Frog Recipes]]. These are pulled from the page, alphabetized, then added at the end of the page. This recipe allows you to set the singular/plural of the category list that is then appended to the end of the page like thus: Categories: ChickenRecipies | Frog Recipes
The categories are also encapsulated in a div statement (named "category") that allows the site administrator to customize the style for this block. Install.
New in Version 2.0My friend Mateusz brought up some good points in a list of notes. In the spirit of friendly competition, I chose to respond by making a better product. Granted, it took me a few months to notice the comments. BenWilson May 07, 2006, at 04:44 PM
Customizable Variables:
Contributors
History
See AlsoCommentsSee discussion at MediaCategories-Talk? User notes? : If you use, used or reviewed this recipe, you can add your name. These statistics appear in the Cookbook listings and will help newcomers browsing through the wiki. |