Infobox and create a category

Fragment of a discussion from Project:Support desk
Jump to: navigation, search

Hi Bastor,

(1) It's best to use parser functions for what you're trying to achieve.

In the template you can have something like:

{{#if:{{{Colour|}}}|[[Category:{{{Colour|}}}]]}}

(2) I don't think you can automatically make the new category (Category:Red in your example) a member of Category:Colour. You'll have to create the category manually if no such category exists and assign it to the appropriate category.

(3) Articles assigned to a category will be automatically listed there by page title. There are several ways to manipulate the display of article titles, but only up to a certain extent.

Hope that helps.

Cavila MW 1.17, MySQL 5.1.57, Php 5.2.1719:32, 15 September 2011

Thanks for Helps

Bastor22:04, 16 September 2011
 
Personal tools

Variants
Actions
Navigation
Support
Download
Development
Communication
Toolbox