Template:Main: Difference between revisions

From Official Kodi Wiki
Jump to navigation Jump to search
(moved from talk)
(Undo revision 217250 by Karellen (talk))
 
(83 intermediate revisions by 37 users not shown)
Line 1: Line 1:
:''Main article{{if
<div class="rellink{{#if:relarticle mainarticle|<nowiki> </nowiki>relarticle mainarticle}}">{{big|1={{#ifeq:{{SUBJECTSPACE}}|Category|The main {{#ifeq:{{NAMESPACE:{{{1}}}}}||page|page}}{{#if:{{{2|}}}|s}} for this category {{#if:{{{2|}}}|are|is}}|Main {{#ifeq:{{NAMESPACE:{{{1}}}}}||page|page}}{{#if:{{{2|}}}|s}}:}} '''[[{{{1|{{PAGENAME}}}}}|{{{l1|{{{1|{{PAGENAME}}}}}}}}]]'''{{#if:{{{2| }}}
|{{{2|}}}|s}}: {{if
|{{#if:{{{3|}}}|,&#32;|&#32;and&#32;}}'''[[{{{2}}}|{{{l2|{{{2}}}}}}]]'''}}{{#if:{{{3|}}}
  |{{{1|}}}|[[{{{1}}}]]{{if
|{{#if:{{{4|}}}|,&#32;|,&#32;and&#32;}}'''[[{{{3}}}|{{{l3|{{{3}}}}}}]]'''}}{{#if:{{{4|}}}
  |{{{2|}}}|, [[{{{2}}}]]{{if
|{{#if:{{{5|}}}|,&#32;|,&#32;and&#32;}}'''[[{{{4}}}|{{{l4|{{{4}}}}}}]]'''}}{{#if:{{{5|}}}
    |{{{3|}}}|, [[{{{3}}}]]{{if
|{{#if:{{{6|}}}|,&#32;|,&#32;and&#32;}}'''[[{{{5}}}|{{{l5|{{{5}}}}}}]]'''}}{{#if:{{{6|}}}
    |{{{4|}}}|, [[{{{4}}}]]{{if
|{{#if:{{{7|}}}|,&#32;|,&#32;and&#32;}}'''[[{{{6}}}|{{{l6|{{{6}}}}}}]]'''}}{{#if:{{{7|}}}
      |{{{5|}}}|, [[{{{5}}}]]{{if
|{{#if:{{{8|}}}|,&#32;|,&#32;and&#32;}}'''[[{{{7}}}|{{{l7|{{{7}}}}}}]]'''}}{{#if:{{{8|}}}
      |{{{6|}}}|, [[{{{6}}}]]{{if
|{{#if:{{{9|}}}|,&#32;|,&#32;and&#32;}}'''[[{{{8}}}|{{{l8|{{{8}}}}}}]]'''}}{{#if:{{{9|}}}
        |{{{7|}}}|, [[{{{7}}}]]{{if
|{{#if:{{{10|}}}|,&#32;|,&#32;and&#32;}}'''[[{{{9}}}|{{{l9|{{{9}}}}}}]]'''}}{{#if:{{{10|}}}
        |{{{8|}}}|, [[{{{8}}}]]{{if
|, and '''[[{{{10}}}|{{{l10|{{{10}}}}}}]]'''}}{{#if:{{{11| }}}|&#32; (too many parameters in &#123;&#123;[[Template:main|main]]&#125;&#125;)}} }}</div><noinclude>
          |{{{9|}}}|, [[{{{9}}}]]{{if
          |{{{10|}}}|, [[{{{10}}}]]{{if
            |{{{11|}}}|, [[{{{11}}}]]{{if
            |{{{12|}}}|, [[{{{12}}}]]{{if
              |{{{13|}}}|, [[{{{13}}}]]{{if
              |{{{14|}}}|, [[{{{14}}}]]{{if
                |{{{15|}}}|, [[{{{15}}}]]{{if
                |{{{16|}}}|, [[{{{16}}}]]{{if
                  |{{{17|}}}|, [[{{{17}}}]]{{if
                  |{{{18|}}}|, [[{{{18}}}]]{{if
                    |{{{19|}}}|, [[{{{19}}}]]{{if
                    |{{{20|}}}|, [[{{{20}}}]]}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}''<noinclude>
----
{{esoteric}}
:''Please be mindful of the talk page discussions that have determined '''Template:Main''''s appearance.''
__NOTOC__
==Purpose of template==
When [[Wikipedia:What is an article|Wikipedia article]]s
become too large, subarticles are usually created.  This [[Wikipedia:Template messages|template]], used in the subarticle, uses the name of the main article as a [[m:Help:Template#Parameters|parameter]] to produce a link to the main article:


<nowiki>
{{doc}}
{{main|Article}}
</nowiki>
 
will produce
{{main|Article}}
 
To reference multiple articles, the {{tl|main articles}} template can be used instead, as so:
 
<nowiki>
{{main articles}} [[a]], [[b]], [[c]]
</nowiki>
 
which produces:
{{main articles}} [[a]], [[b]], [[c]]
 
== Comparison with related templates ==
 
The following two are meant to be used in connection with each other:
 
* At the top of a brief section concerning a subject that has a more detailed article (this is the only form specified by the [[Wikipedia:Summary style|Wikipedia Manual of Style]]);
* ''or'' at the top of the specialized article, to refer to the more general article: {{tiwt|main}}
* at the top or bottom of a section of the more general article, to refer to the specialized article: {{tiwt|see details}}
----
The following set of two is an alternative:
*{{tiwt|subarticleof}}
*{{tiwt|seesubarticle}}
 
==References==
* [[Wikipedia:Long article layout]]
* [[Wikipedia:Summary style]]
* [[m:Help:Template]]
 
==See also==
* {{tl|Main}}, {{tl|Main2}}
* {{tl|See}}, {{tl|See2}}, {{tl|See3}}, {{tl|See4}}, {{tl|See5}}
* {{tl|See also}}, {{tl|Seealso2}}, {{tl|Seealso3}}, {{tl|Seealso4}}, {{tl|Seealso5}}, {{tl|Seealso6}}, {{tl|Seealso7}}, {{tl|Seealso8}}
</noinclude>
</noinclude>

Latest revision as of 00:10, 20 July 2020

[edit] Template documentation
Emblem-important-yellow.png NOTICE: This is a documentation subpage for Template:Main:
It contains usage information, categories and other content that is not part of the original template page.

The {{Main}} template produces a hatnote[1] that informs the reader that the topic is addressed in greater detail elsewhere on Kodi Wiki.

Usage

Provide up to ten (10) full page name(s) as unnamed parameters, including the namespace if not in 'Main', and without the enclosing double bracket ([[…]]) wikilink syntax.

Basic

{{Main|Page 1}}

Full syntax

You may also include additional links, up to ten in total:

{{Main|Page 1|Archive:Page 2|HOW-TO:Page 3|:Category:Page 4|Template:Page 5|Talk:Page 6|Add-on:Page 7|User:Page 8|Help:Page 9|Official Kodi Wiki:Page 10}}

Notes

  1. An editorial message placed at the top (or "hat") of a page or section, intended to anticipate a reader's needs or purpose.

See also