• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar
  • Skip to footer

Tips and Tricks HQ

  • Home
  • Projects
    • All Projects
    • Simple WP Shopping Cart
    • WP Express Checkout Plugin
    • Accept Stripe Payments
    • WP Download Monitor
    • Easy HTTPS Redirection
    • WP Security and Firewall Plugin
    • WP eStore Plugin
    • WP Affiliate Platform
    • WP eMember
  • Products
    • All Products
    • Checkout
  • Support
    • Support Portal
    • Customer Only Forum
    • WP eStore Documentation
    • WP Affiliate Software Documentation
    • WP eMember Documentation
  • Contact

How to Use Category and Rename a Category in MediaWiki

Home » Blog » How to Use Category and Rename a Category in MediaWiki

Last updated: May 3, 2013





Wiki Category IconThis article shows two ways as to how you can easily add a page in MediaWiki to a category or multiple categories. It also explains who the renaming of a category in MediaWiki can be done without much hassle.

I was looking for a simple way to add a page to a category in one of my sites that uses MediaWiki. But I couldn’t find a simple step by step instructions when I searched for it in Google so I decided to write a post on it.

How to Add Categories to Any Page in MediaWiki

Option 1: The Easy Way (Without the use of any Extension)

Add [[Category: Category Name]] to the bottom of the page in order to add that page to the category
specified by the name “Category Name”.

  1. Open the page that you want to add a category to in edit mode.
  2. Scroll down to the bottom of the page and add the following and Save the page.

[[Category: Category Name]]



Where ‘Category Name’ is the name of the Category.

To put a page under multiple categories just add more Categories to the page like below:

[[Category: Category Name1]]
[[Category: Category Name2]]
[[Category: Category Name3]]

Option 2: The Easier Way (Using an Extension)

There are many extensions that you can use to add a page or article to a Category in a MediaWiki installed site. You can just search for category extension for Mediawiki and try out some of them.

I use the TagAsCategory extension and it is pretty good. It gives you a small text box like the following screen shot to enter categories to your Media Wiki page.

TagAsCategory
TagAsCategory

How to Rename a Category in Media Wiki

Renaming a category in Media Wiki can be a bit painful specially if you have a lot of existing references of that category as moving of categories are not allowed (Pages can be moved but not categories). As far as I know Wikipedia uses a bot to rename their category. Which could be a little hard to get your hands on.

I use the Replace Text Extension to rename my categories.

The Replace Text extension provides a form to let the administrators do string replacements on the entire wiki.

Replace Text Extension
Replace Text Extension

After installing, the extension can be used by navigating to ‘Special Pages’ and ‘Replace Text’ . The Replace Text is under the ‘Other special pages’ section. I use this extension to find all the existing occurrences of the current category name and replace it with the new category name. All the new category links will be broken at this stage but they will be good as soon as I create the new category page with the desired name. Finally, I delete the old category page to clean up. Using this method will ensure that no pages are still using the old category name.

Related Posts

  • How to fix WordPress.com Stats plugin showing zero (0) visitors!
  • Find Out Which WordPress Web Hosting Company Offers the Cheapest and Reliable Web Hosting Solution
  • How to import WordPress SQL database backup file without having ‘create new database’ privileges in phpMyAdmin
  • Good Domain Name Picking Tips for Your Blog Setup

Web Development MediaWiki,  Web Development,  web masters,  wikipedia

Reader Interactions

Comments

  1. Tim Dowty says:
    August 21, 2009 at 1:32 pm

    Thanks for the tips. Worked great and saved me a lot of time!
    -Tim

Leave a Reply

Your email address will not be published. Required fields are marked *

Primary Sidebar

Featured & Popular Articles

Video Answers to Top WordPress QuestionsWordPress Optimization Tips and Tricks for Better Performance and SpeedEssential WordPress Security Tips - Is Your Blog Protected?WordPress Simple PayPal Shopping Cart PluginTop 15 Search Engine Optimization (SEO) Techniques I Forget to DoList of the Best and Must Use WordPress PluginsHow do I Start a Blog and Make Money Online?Good Domain Name Picking Tips for Your Blog SetupFind Out Which WordPress Web Hosting Company Offers the Cheapest and Reliable Web Hosting Solution

Featured WordPress Plugins

WP Express Checkout Plugin
wordpress estore plugin
wordpress membership plugin
wordpress affiliate plugin

Recent Posts

  • How to Use Browser Developer Tools to Inspect Elements and [...]
  • Accept Donations via PayPal from Your WordPress Site Easil [...]
  • Buy Now Button Graphics for eCommerce Websites [...]
  • Subscription Button Graphics for eCommerce Websites [...]
  • Adding PayPal Payment Buttons to Your WordPress Sidebar Ea [...]

Comment & Socialize

  • @Rob, We have just released ...
    - admin
  • I installed the plugin a co ...
    - Rob
  • @Sebastian, We've released ...
    - admin
  • I've used this plugin on a ...
    - Sebastian Djupsjöbacka
  • @John, this plugin doesn't ...
    - admin

Check out our solutions

View our WordPress plugin collection and start using them on your site.

Our WordPress Solutions

Footer

Company

  • About
  • Privacy Policy
  • Terms and Conditions
  • Affiliate Login

Top WordPress Plugins

  • Simple Shopping Cart
  • PayPal Donations
  • WP Express Checkout
  • WP eStore
  • WP eMember

Blogging Tips

  • How to Start a Blog
  • Selecting a Good Domain
  • Cheap WP Hosting
  • WP Video Tutorials
  • Simple SEO Tips

Search


Keep In Touch

Copyright © 2025 | Tips and Tricks HQ