Jump to content
 







Main menu
   


Navigation  



Main page
Contents
Current events
Random article
About Wikipedia
Contact us
Donate
 




Contribute  



Help
Learn to edit
Community portal
Recent changes
Upload file
 








Search  

































Create account

Log in
 









Create account
 Log in
 




Pages for logged out editors learn more  



Contributions
Talk
 



















Contents

   



(Top)
 


1 Usage  





2 Parameters  





3 Template data  





4 Examples  





5 Errors  





6 See also  














Template:Main






Alemannisch
Anarâškielâ
Ænglisc
Аԥсшәа
العربية
Aragonés
Արեւմտահայերէն
Arpetan
Asturianu
Авар
Azərbaycanca
تۆرکجه
Basa Bali

 / Bân-lâm-gú
Башҡортса
Беларуская
Беларуская (тарашкевіца)

Bikol Central
Български
Boarisch
Bosanski
Brezhoneg
Català
Чӑвашла
Cebuano
Chavacano de Zamboanga
Chi-Chewa
Corsu
Cymraeg
Dagbanli
Dansk
Davvisámegiella
Deutsch
Dolnoserbski

Eesti
Ελληνικά
Эрзянь
Español
Esperanto
Euskara
Farefare
فارسی
Føroyskt
Français
Galego
ГӀалгӀай


Gungbe
/Hak-kâ-ngî

Հայերեն
ि
Hornjoserbsce
Hrvatski
Bahasa Hulontalo
Ido
Ilokano
Bahasa Indonesia
Interlingua
IsiZulu
Íslenska
Italiano
עברית
Jawa
Kapampangan

Kreyòl ayisyen
Kurdî
Кыргызча
Ladin
Ladino

Latina
Latviešu
Lietuvių
Ligure
Limburgs
Magyar
ि
Македонски
Malagasy

Malti

مصرى

مازِرونی
Bahasa Melayu
 / Mìng-dĕ̤ng-nḡ
Mirandés
Мокшень
Монгол

Nāhuatl
Nederlands


Napulitano
Нохчийн
Norfuk / Pitkern
Norsk bokmål
Norsk nynorsk
ି
Oʻzbekcha / ўзбекча

ि
Pangasinan

پښتو

Piemontèis
Tok Pisin
Polski
Português
Qırımtatarca
Română
Rumantsch
Runa Simi
Русский


سرائیکی
Sardu
Scots
Sesotho
Shqip

Simple English
سنڌي
SiSwati
Slovenčina
Slovenščina
Словѣньскъ / 
Soomaaliga
کوردی
Српски / srpski
Srpskohrvatski / српскохрватски
Sunda
Suomi
Svenska
Tagalog
ி
Taqbaylit
Татарча / tatarça
 


Тоҷикӣ


Türkçe
Türkmençe
Тыва дыл
Українська
اردو
Vèneto
Tiếng Vit

Wolof

ייִדיש
Yorùbá


 

Edit links
 









Template
Talk
 

















Read
View source
View history
 








Tools
   


Actions  



Read
View source
View history
 




General  



What links here
Related changes
Upload file
Special pages
Permanent link
Page information
Get shortened URL
Download QR code
Wikidata item
 




Print/export  



Download as PDF
Printable version
 




In other projects  



Wikimedia Commons
MediaWiki
Meta-Wiki
Wikispecies
Wikibooks
Wikidata
Wikifunctions
Wikiquote
Wikiversity
Wikivoyage
Wiktionary
 
















Appearance
   

 





Permanently protected template

From Wikipedia, the free encyclopedia
 


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 notbe{{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

  • Basic usage: {{Main|page}}
  • All parameters: {{Main|page1|page2|page3| ... |l1 = label1|l2 = label2|l3 = label3| ... |selfref = yes}}
  • Parameters

    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.

    ParameterDescriptionTypeStatus
    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.

    Page namerequired
    Page 22

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

    Page nameoptional
    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 nameoptional
    Label 1l1 label 1

    What the first linked page is to be displayed as.

    Stringoptional
    Label 2l2 label 2

    What the second linked page is to be displayed as.

    Stringoptional
    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.

    Stringoptional
    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.

    Booleanoptional

    Examples

    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:

    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


    Retrieved from "https://en.wikipedia.org/w/index.php?title=Template:Main&oldid=1054074732"

    Categories: 
    Lua-based templates
    Hatnote templates
    Wikipedia page-section templates
    Hidden categories: 
    Wikipedia template-protected templates
    Wikipedia substituted templates
    Templates using TemplateData
     



    This page was last edited on 7 November 2021, at 22:34 (UTC).

    Text is available under the Creative Commons Attribution-ShareAlike License 4.0; additional terms may apply. By using this site, you agree to the Terms of Use and Privacy Policy. Wikipedia® is a registered trademark of the Wikimedia Foundation, Inc., a non-profit organization.



    Privacy policy

    About Wikipedia

    Disclaimers

    Contact Wikipedia

    Code of Conduct

    Developers

    Statistics

    Cookie statement

    Mobile view



    Wikimedia Foundation
    Powered by MediaWiki