Rosetta Code:Village Pump/How to add a subcategory when editing a page: Difference between revisions

Subcategories are simpler than that…
(Subcategories are really just separate pages)
(Subcategories are simpler than that…)
Line 7:
I also now realize it might have been better to have separate categories for the various IBM Assembly languages than a single category for all. Being "upward compatible", they are largely the same, but there are subtle differences, the biggest being those between VSE and MVS regarding the operating system interface. Would it be better to create those categories now (with considerable redundancy!) or wait until the best structure becomes more apparent?
:Subcategories actually have pretty much nothing to do with their parent categories except their names. I'll use an example. Say we have a category called [[:Category:Parent category|Category:Parent category]]. To make a "subcategory" you just have to add a slash to the name and then add the subcategory's name like this: [[:Category:Parent category/Subcategory|Category:Parent category/Subcategory]]. The wiki recognizes that these two pages are related because their names start with the same text (the text up to the slash) and it should put a link to the parent category on the subcategory's page (I think we have that option enabled). Other than that these are treated as totally separate categories until we link them somehow through other wiki-means. --[[User:Mwn3d|Mwn3d]] 20:18, 21 October 2012 (UTC)
:: Formally, a subcategory is a category that is a member of the parent category, i.e., that has a link to the parent category done with <tt><nowiki>[[Category:Parent]]</nowiki></tt> and not <tt><nowiki>[[:Category:Parent]]</nowiki></tt> (the colon is significant). –[[User:Dkf|Donal Fellows]] 21:44, 21 October 2012 (UTC)
Anonymous user