Template:Category relationship

From WhyNotWiki

Jump to: navigation, search

This is for use on category pages.

It is to be used (as much as possible) instead of simply listing categories. Why? Because this way provides more structured metadata about the relationship to that category that you are listing.

Contents

[edit] Examples:

{{category relationship|Instance of|Quotes}}


Instance of [Quotes (category)]


You don't have to specify that it's a category, because we already know it's a category, so take care of all that for you... Don't do this:

{{category relationship|Part of|[[:Category:Language]]}}

Do this instead:

{{category relationship|Part of|Language}}

Also, don't worry about making sure number matters. It's more important that it be simple and that it specify the relationship in a structured (even better: computer-readable) form than that it be grammatically correct. For example, this is okay even though to be grammatically correct, you'd say something is a "kind of relationship" not a "kind of relationships":

{{category relationship|Kind of|Relationships}}

[edit] Problems

[edit] May have to [duplicate (category)]

This template is expected to appear inside of a <noinclude> block so that the relationship information doesn't get included on the article page. But that means that the category itself won't get included onto the article page.

So... anytime you want a category to be inherited/inheritable you must duplicate it by using a normal [[Category:]] link.

For example, if you want [[Category:Language]] to be inheritable:

[[Category:Language]] <noinclude>{{category relationship|Part of|Language}}</noinclude>

(I don't think it's technically possible in MediaWiki to abstract that duplication into yet another template that does both of those things. Because if you put the noinclude in that template, it won't even get included into the 1st-level category. Maybe we need a feature instead of "noinclude", "includable for 2 levels"...)

Most of the time, though, you don't want categories to be inherited, so it's not a big problem.

[edit] The list

Relationships edit

[edit] [Taxonomy (category)] relations

Direction 1 Direction 2
Instance of / Is a Class of
Kind of Has kinds
Part of / Component of Contains / Has a / Has parts
Alias for Has aliases

[edit] Important miscellaneous relations

Is solution for / Has solution (Can be cross-project! A problem that is created in/exists in software A might never have a solution created for software A. Instead someone might create a brand-new program that doesn't even have that problem. But it could still be fun/useful to link that solution to the problem in the other program (which might have even inspired the existence of program B! ("I can't stand that problem, so I'm gonna write my own".).)

Not be confused with (symmetrical) (sort of like see also)

See also : Can only be used in the context of articles (not, for instance, categories: better to use child-parent relations for categories)





 


[edit] Page metadata

See also: Template:Relationship (for use on article pages)


Metadata templates  edit   (Category  edit) .


Personal tools