सामग्रीमा जानुहोस्

ढाँचा:Cat main/doc

विकिपिडिया बठेइ

This template is for use on Category pages, to refer to the primary article associated with this category, which most of the time, describes the entire set containing the category.

Normal usage (uses category name for wiki link):

If the name of the main article is different than the name of the category — for example: if the main article for Category:Dead or Alive is Dead or Alive (series) — then you will need to use one parameter to specify the article:

Simply append more articles as additional arguments (up to five):

Pages which aren't articles

[स्रोत सम्पादन]
This is the TemplateData documentation for this template used by VisualEditor and other tools; see the monthly parameter usage report for this template.

TemplateData for Cat main

Specifies the primary article(s) associated with this category

ढाँचा प्यारामिटरहरू

मापदण्डविवरणप्रकारस्थिति
Article 11

Name of primary article, if different from category name

पूर्वनिर्धारित
पृष्ठ नामवैकल्पिक
Article 22

Name of second main article

पूर्वनिर्धारित
पृष्ठ नामवैकल्पिक
Article 33

Name of third main article

पूर्वनिर्धारित
पृष्ठ नामवैकल्पिक
Article 44

Name of fourth main article

पूर्वनिर्धारित
पृष्ठ नामवैकल्पिक
Article 55

Name of fifth main article

पूर्वनिर्धारित
पृष्ठ नामवैकल्पिक

For a summary page on how to use these templates, see the example page here. For the full editing guideline on hatnotes, see Wikipedia:Hatnote.

For example: {{dablink|For other senses of this term, see etc...}} (Note: text is adaptable, but fails to standardize hatnotes) →
Also a basic template, which is extended and used in specific template below.

"This page is about ... For other uses ..."

[स्रोत सम्पादन]

{{About}} is the main template for noting other uses.

Note. When used in main namespace, the word "page" in the following hatnotes is replaced by "article".

  • {{About|USE1}}
  • {{About|USE1||PAGE2}} (When the disambiguation page has a different name — Note the empty second parameter) →
  • {{About|USE1|USE2|PAGE2}} (When there is only one other use) →
  • {{About|USE1|USE2|PAGE2|and|PAGE3}} (Two pages for USE2) →
  • {{About|USE1|USE2|PAGE2|USE3|PAGE3|USE4|PAGE4|USE5|PAGE5}} (When there are up to five other uses — You should generally create a disambiguation page at this point) →
  • {{About|USE1|USE2|PAGE2|USE3|PAGE3|other uses}} (When there are several standard other uses and also a disambiguation page with default name — Note that the last page name is not specified) →
  • {{About|USE1|USE2|PAGE2|USE3|PAGE3|other uses|PAGE4}} (When there are several standard other uses and also a disambiguation page with non-default name) →
  • {{About|USE1|USE2|PAGE2|USE3|PAGE3|other uses|PAGE4|and}}
  • {{About||USE2|PAGE2|USE3|PAGE3|other uses}} (When you don't need to state the focus of this article/page — Note the empty first parameter) →
  • {{About|||PAGE1|and|PAGE2}}
Note: {{for||PAGE1|PAGE2}} produces the same result.
  • {{This|USE}}
Note: {{About|USE}} produces the same result: →
  • {{This|USE|PAGE1}}
Note: {{About|USE||PAGE1}} (with one empty parameter) produces the same result: →

"For other uses, see ..."

[स्रोत सम्पादन]

When such a wordy hatnote as {{About}} is not needed, {{Other uses}} is often useful.

Variations

There are, historically, a whole family of "other uses" templates for specific cases. {{About}} is the standard hatnote for "other uses" and many of them can be specified using the {{about}} template. However, the individual templates may be easier to use in certain contexts.

Here are the variations and (when appropriate) the equivalents using the {{About}}, {{Other uses}} or {{For}} templates.

Note: adds "(disambiguation)" to whatever is input as the PAGE1.
Note: {{Other uses|PAGE1 (disambiguation)}} produces the same result.
Note: same as {{about}}, except that it says "section", instead of "article" or "page".
Note: same as {{about}}, except it forces a second use to be noted if unspecified by parameters.

{{For}} can be used instead of {{About}} so as not to display: This page is about USE1. but still specify a specific other use. This effect can also be achieved by using an empty first parameter in {{About}} as in:

For example: {{for|OTHER TOPIC|PAGE1}} is the same as {{About||OTHER TOPIC|PAGE1}} (note the empty first parameter).

However, it is somewhat clearer when using the {{For}} template, since the word "about" does not appear in the statement.

  • {{for|OTHER TOPIC}} (disambiguous) →
  • {{for|OTHER TOPIC|PAGE1}}
  • {{for|OTHER TOPIC|PAGE1|PAGE2}}
  • {{for|OTHER TOPIC|PAGE1|PAGE2|PAGE3}}
  • {{for||PAGE1|PAGE2}}Error: no context parameter provided. Use {{other uses}} for "other uses" hatnotes. (help).
Variations

As with {{Other uses}}, there are a whole family of "for" templates.

  • {{for2|OTHER TOPIC|CUSTOM TEXT}}

"For other uses of ..., see ..."

[स्रोत सम्पादन]