• ಮುಖ್ಯಪುಟ
  • ಹೀಗೇ ಒಂದು ಪುಟ
  • ಹತ್ತಿರದ
  • ಲಾಗ್ ಇನ್
  • ವ್ಯವಸ್ಥೆಗಳು
Donate Now If Wikipedia is useful to you, please give today.
  • ಕನ್ನಡ ವಿಕಿಪೀಡಿಯ ಬಗ್ಗೆ
  • ಹಕ್ಕು ನಿರಾಕರಣೆಗಳು
ವಿಕಿಪೀಡಿಯ

ಟೆಂಪ್ಲೇಟು:Main

  • ಭಾಷೆ
  • ವೀಕ್ಷಿಸಿ
  • ಸಂಪಾದಿಸಿ
ಮುಖ್ಯ ಲೇಖನ: Main
ಟೆಂಪ್ಲೇಟು ದಾಖಲೆ[view] [edit] [history] [purge]
WarningThis template is used on approximately ೩,೬೯,೦೦೦ pages, or roughly 238% of all pages.
To avoid major disruption and server load, any changes should be tested in the template's /sandbox or /testcases subpages, or in your own user subpage. The tested changes can be added to this page in a single edit. Consider discussing changes on the talk page before implementing them.
This template should not be substituted.
This template uses Lua:
  • Module:Labelled list hatnote
This template is for linking to main content. For the mainspace detection template, see template:main other.

When a Wikipedia article is large, it is often written in summary style. This template is used after the heading of the summary, to link to the subtopic article that has been summarized. For Category namespace, please use {{Cat main}} instead.

Use of this template should be restricted to the purposes described above. It is not to be used as a substitute for inline links or {{Further}} template. The latter is used when the section expounds a specific aspect of the topic instead of summarizing its article. For example, in phthalate, the template under the "Endocrine disruptor" section should not be {{Main|Endocrine disruptor}}, because the section specifically deals with phthalate as an endocrine disruptor and not endocrine disruptors in general.

This template should also not be used in lead sections. A lead section is always a summary of its own article, not any other; as such, the only appropriate target for a {{Main}} link in the lead section would be the article itself, which is not useful.

ಪರಿವಿಡಿ

  • ೧ Usage
  • ೨ Parameters
  • ೩ Template data
  • ೪ Examples
  • ೫ Errors
  • ೬ See also

Usage

ಬದಲಾಯಿಸಿ
Further information: WP:SUMMARYHATNOTE
  • Basic usage: {{Main|page}}
  • All parameters: {{Main|page1|page2|page3| ... |l1 = label1|l2 = label2|l3 = label3| ... |selfref = yes}}

Parameters

ಬದಲಾಯಿಸಿ
  • 1, 2, 3, ... – the pages to link to. If no page names are specified, the current page name is used instead (without the namespace prefix). Categories and files are automatically escaped with the colon trick, and links to sections are automatically formatted as page § section, rather than the MediaWiki default of page#section.
  • l1, l2, l3, ... orlabel 1, label 2, label 3, ... – optional labels for each of the pages to link to (this is for articles where a piped link would be used). Note that the extra parameters use a lower case 'L', for example, l1, not L1.
  • selfref – if set to "yes", "y", "true" or "1", adds the CSS class "selfref". This is used to denote self-references to Wikipedia. See Template:Selfref for more information. This is only necessary in articles and other content (e.g. templates) that will appear in articles, and need not be added for uses of this template on Wikipedia: namespace pages.

Template data

ಬದಲಾಯಿಸಿ
This is the TemplateData for this template used by TemplateWizard, VisualEditor and other tools. See a monthly parameter usage report for Template:Main in articles based on its TemplateData.

TemplateData for Main

This template is used after the heading of a section, to link to a sub-article (or sub-articles) that is entirely about the topic of the section. The template will display, in italics, "Main article: Article 1, Article 2 and Article 3"

Template parameters[Edit template data]

This template has custom formatting.

ಪರಿಮಿತಿವಿವರನಮೂನೆಸ್ಥಾನಮಾನ
Page 11

The name of the first page that you want to link to. If this is not specified, the current page name (with no namespace prefix) is used instead.

ಪುಟದ ಹೆಸರುrequired
Page 22

The name of the second page that you want to link to.

ಪುಟದ ಹೆಸರುಐಚ್ಛಿಕ
Page 33

The name of the third page that you want to link to. More pages can be added using the parameters "4", "5", etc.

ಪುಟದ ಹೆಸರುಐಚ್ಛಿಕ
Page 44

The name of the fourth page that you want to link to.

ಪುಟದ ಹೆಸರುಐಚ್ಛಿಕ
Page 55

The name of the fifth page that you want to link to.

ಪುಟದ ಹೆಸರುಐಚ್ಛಿಕ
Label 1l1 label 1

What the first linked page is to be displayed as.

Stringಐಚ್ಛಿಕ
Label 2l2 label 2

What the second linked page is to be displayed as.

Stringಐಚ್ಛಿಕ
Label 3l3 label 3

What the third linked page is to be displayed as. Other labels can be added by using increasing numbers (starting with "l4" for page 4) as parameter names.

Stringಐಚ್ಛಿಕ
Label 4l4 label 4

What the fourth linked page is to be displayed as.

Stringಐಚ್ಛಿಕ
Label 5l5 label 5

What the fifth linked page is to be displayed as.

Stringಐಚ್ಛಿಕ
Self referenceselfref

Set to "yes" if the template is a self-reference to Wikipedia that would not make sense on mirrors or forks of the Wikipedia site.

Booleanಐಚ್ಛಿಕ

Examples

ಬದಲಾಯಿಸಿ
Underscores (_) between words are not necessary
  • {{Main}} →
    ಮುಖ್ಯ ಲೇಖನ: Main
  • {{Main|Article}} →
    ಮುಖ್ಯ ಲೇಖನ: Article
  • {{Main|Article#Section title}} →
    ಮುಖ್ಯ ಲೇಖನ: Article § Section title
  • {{Main|Article#Section|l1=Custom section label}} →
    ಮುಖ್ಯ ಲೇಖನ: Custom section label
  • {{Main|Article1|Article2|Article3}} →
    ಮುಖ್ಯ ಲೇಖನ: Article1, Article2, and Article3
  • {{Main|Article1|l1=Custom label 1|Article2|l2=Custom label 2}} →
    ಮುಖ್ಯ ಲೇಖನ: Custom label 1 and Custom label 2
  • {{Main|(15760) 1992 QB1|l1={{mp|(15760) 1992 QB|1}}}} →
    ಮುಖ್ಯ ಲೇಖನ: (15760) 1992 QB1

Errors

ಬದಲಾಯಿಸಿ

If the name of the first page that you want to link to is not specified, the current page name (with no namespace prefix) is used instead:

  • ಮುಖ್ಯ ಲೇಖನ: Main

No errors can be displayed due to the illegal usage of parameters or other usages (i.e. the first parameter can be omitted, other parameters can be used even if the first one is empty (and automatically filled with the current page name (with no namespace prefix)), equals sign can be used as one of the parameters, and template can be used by direct call to the module (using "#invoke")). This is not the case for {{See also}}, for example.

See also

ಬದಲಾಯಿಸಿ
  • {{Main list}}: For a more comprehensive list, see Article.
  • {{Broader}}: For broader coverage of this topic, see Article.
  • {{Excerpt}}, which allows transclusion of text (such as an intro section) from one article into another
  • {{Further}}: Further information: Article.
  • {{Official website}}
  • v
  • t
  • e
Hatnote templates
  • Wikipedia:Hatnote
  • Wikipedia:Disambiguation
  • Wikipedia:Redirect
Generic
  • {{Hatnote}}
  • {{Hatnote group}}
  • {{Self-reference}}
For and about
  • {{For}}
  • {{For-text}} (for custom text)
  • {{For-multi}} (for multiple uses)
  • {{About}}
  • Variations: {{Other uses}}
  • {{Other uses of}}
  • {{Redirect-distinguish-for}}
  • {{About-distinguish}}
  • {{About-distinguish-text}}
Other topics
  • {{Other people}}
  • {{About other people}} (adds "about" description)
  • {{Similar names}}
  • {{Other storms}}
  • {{Other places}}
  • {{Other ships}}
Redirect
  • {{Redirect}}
  • {{Redirect2}} (for two redirects)
  • {{Redirect-multi}} (for multiple redirects)
  • {{Redirect-several}} (for several redirects, without listing each)
  • {{Redirect-synonym}}
  • {{Redirect-distinguish}}
  • {{Redirect-distinguish-text}}
  • {{Redirect-distinguish-for}}
  • {{Technical reasons}}
Distinguish
  • {{Distinguish}} (supports custom text)
  • {{About-distinguish}}
  • {{About-distinguish-text}} (for custom text)
  • {{Redirect-distinguish}}
  • {{Redirect-distinguish-text}} (for custom text)
  • {{Redirect-distinguish-for}}
For use in sections
  • {{Main}}
  • {{Main if exists}}
  • {{Main list}}
  • {{Further}}
  • {{Further-text}} (for custom text)
  • {{Further interlanguage link}}
  • {{See also}}
  • {{See also if exists}}
  • {{See also-text}} (for custom text)
  • {{For outline}}
  • {{For timeline}}
Special
  • {{Broader}}
  • {{For introduction}}
  • {{See Wiktionary}}
  • {{Transcluding article}}
  • {{Transcluded section}}
Subject specific
  • {{About year}}
  • {{Highway detail hatnote}}
  • {{For LMST}}
  • {{WikiIPA}}
  • Category:Hatnote templates
    • modules
    • for [family] names
    • for lists
  • hatnote templates for category pages
The above documentation is transcluded from ಟೆಂಪ್ಲೇಟು:Main/doc. (edit | history)
Editors can experiment in this template's sandbox (create | mirror) and testcases (create) pages.
Add categories to the /doc subpage. Subpages of this template.
"https://kn.wikipedia.org/w/index.php?title=ಟೆಂಪ್ಲೇಟು:Main&oldid=1301991" ಇಂದ ಪಡೆಯಲ್ಪಟ್ಟಿದೆ
Last edited on ೧೩ ಏಪ್ರಿಲ್ ೨೦೨೫, at ೦೯:೩೮

Languages

      This page is not available in other languages.

      ವಿಕಿಪೀಡಿಯ
      • Wikimedia Foundation
      • Powered by MediaWiki
      • ಈ ಪುಟವನ್ನು ೧೩ ಏಪ್ರಿಲ್ ೨೦೨೫, ೦೯:೩೮ ರಂದು ಕೊನೆಯಾಗಿ ಸಂಪಾದಿಸಲಾಯಿತು.
      • ವಿಶೇಷವಾಗಿ ಟಿಪ್ಪಣಿ ಮಾಡದಿದ್ದ ಹೊರತು ಪಠ್ಯ "CC BY-SA 4.0" ರಡಿ ಲಭ್ಯವಿದೆ.
      • ಖಾಸಗಿ ಮಾಹಿತಿಯ ಬಗ್ಗೆ ನಿಲುವು
      • ಕನ್ನಡ ವಿಕಿಪೀಡಿಯ ಬಗ್ಗೆ
      • ಹಕ್ಕು ನಿರಾಕರಣೆಗಳು
      • Code of Conduct
      • ಡೆವೆಲಪರ್‌ಗಳು
      • ಅಂಕಿ ಅಂಶಗಳು
      • ಕುಕಿ ಹೇಳಿಕೆ
      • ಬಳಕೆಯ ನಿಬಂಧನೆಗಳು
      • ಡೆಸ್ಕ್‌ಟಾಪ್