Difference between revisions of "Template:Main"

From Science Olympiad Student Center Wiki
Jump to: navigation, search
(Undo revision 77654 by Pepperonipi (talk) (That didn't work!))
(Tag: Undo)
(This?)
Line 1: Line 1:
<includeonly>
+
<includeonly> :''Main {{#ifeq:{{NAMESPACE:{{{1}}}}}||article|page}}{{#if:{{{2|}}}|s}}: [[{{{1|{{FULLPAGENAME}}}}}|{{{l1|{{{1|{{FULLPAGENAME}}}}}}}}]]{{#if:{{{2| }}}
:''Main {{#ifeq:{{NAMESPACE:{{{1}}}}}||article|page}}{{#if:{{{2|}}}|s}}: [[{{{1|{{FULLPAGENAME}}}}}|{{{l1|{{{1|{{FULLPAGENAME}}}}}}}}]]{{#if:{{{2| }}}
 
 
  |{{#if:{{{3|}}}|,&#32;|&#32;and&#32;}}[[{{{2}}}|{{{l2|{{{2}}}}}}]]}}{{#if:{{{3|}}}
 
  |{{#if:{{{3|}}}|,&#32;|&#32;and&#32;}}[[{{{2}}}|{{{l2|{{{2}}}}}}]]}}{{#if:{{{3|}}}
 
  |{{#if:{{{4|}}}|,&#32;|,&#32;and&#32;}}[[{{{3}}}|{{{l3|{{{3}}}}}}]]}}{{#if:{{{4|}}}
 
  |{{#if:{{{4|}}}|,&#32;|,&#32;and&#32;}}[[{{{3}}}|{{{l3|{{{3}}}}}}]]}}{{#if:{{{4|}}}
Line 9: Line 8:
 
  |{{#if:{{{9|}}}|,&#32;|,&#32;and&#32;}}[[{{{8}}}|{{{l8|{{{8}}}}}}]]}}{{#if:{{{9|}}}
 
  |{{#if:{{{9|}}}|,&#32;|,&#32;and&#32;}}[[{{{8}}}|{{{l8|{{{8}}}}}}]]}}{{#if:{{{9|}}}
 
  |{{#if:{{{10|}}}|,&#32;|,&#32;and&#32;}}[[{{{9}}}|{{{l9|{{{9}}}}}}]]}}{{#if:{{{10|}}}
 
  |{{#if:{{{10|}}}|,&#32;|,&#32;and&#32;}}[[{{{9}}}|{{{l9|{{{9}}}}}}]]}}{{#if:{{{10|}}}
  |, and [[{{{10}}}|{{{l10|{{{10}}}}}}]]}}{{#if:{{{11| }}}|&#32; (too many parameters in &#123;&#123;[[Template:main|main]]&#125;&#125;)}}''
+
  |, and [[{{{10}}}|{{{l10|{{{10}}}}}}]]}}{{#if:{{{11| }}}|&#32; (too many parameters in &#123;&#123;[[Template:main|main]]&#125;&#125;)}}'' </includeonly>
</includeonly>
 
 
<noinclude>
 
<noinclude>
 
{{TemplateDocStart}}
 
{{TemplateDocStart}}

Revision as of 22:41, 25 November 2019


Template:Main - Documentation

Parts of this page were copied and/or paraphrased from the English Wikipedia article on the same subject

This template is used to create a hatnote that references the main article for a given text. It should be used after heading to direct to an article that might be summarized under the heading.

This template should not be used to provide a link to an article that provides further information on a topic, which is the job of Template:Further. Rather, the Main template is great for situations when a body of text summarizes the main topic of another article closely.

This template should not be used in lead sections, because these bodies of text are summaries of the articles that follow them, and thus adding Template:Main would be useless.

Usage

Basic usage
{{Main|page}}
All parameters
{{Main|page1|page2|page3| … |l1 = label1|l2 = label2|l3 = label3| … }}

Note: "l1" etc. is the lowercase letter "L" followed by a numeral.

Examples

  • {{Main}}
Main article: Main
  • {{Main|Article}}
Main article: Article
  • {{Main|Article#Section}}
Main article: Article#Section
  • {{Main|Article#Section|l1=Custom section label}}
Main article: Custom section label
  • {{Main|Article1|Article2|Article3}}
Main articles: Article1, Article2, and Article3
  • {{Main|Article1|l1=Custom label 1|Article2|l2=Custom label 2}}
Main articles: Custom label 1 and Custom label 2