Template:Main: Difference between revisions

From Official Kodi Wiki
Jump to navigation Jump to search
(iw bn)
No edit summary
(34 intermediate revisions by 20 users not shown)
Line 1: Line 1:
:''Main article{{#if:{{{2|}}}|s}}: [[{{{1}}}]]{{#if:{{{2| }}}
<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| }}}
  |{{#if:{{{3|}}}|,&#32;|&#32;and&#32;}}[[{{{2}}}]]}}{{#if:{{{3|}}}
|{{#if:{{{3|}}}|,&#32;|&#32;and&#32;}}'''[[{{{2}}}|{{{l2|{{{2}}}}}}]]'''}}{{#if:{{{3|}}}
  |{{#if:{{{4|}}}|,&#32;|,&#32;and&#32;}}[[{{{3}}}]]}}{{#if:{{{4|}}}
|{{#if:{{{4|}}}|,&#32;|,&#32;and&#32;}}'''[[{{{3}}}|{{{l3|{{{3}}}}}}]]'''}}{{#if:{{{4|}}}
  |{{#if:{{{5|}}}|,&#32;|,&#32;and&#32;}}[[{{{4}}}]]}}{{#if:{{{5|}}}
|{{#if:{{{5|}}}|,&#32;|,&#32;and&#32;}}'''[[{{{4}}}|{{{l4|{{{4}}}}}}]]'''}}{{#if:{{{5|}}}
  |, and [[{{{5}}}]]}}''{{#if:{{{6| }}}|&#32; (too many parameters in &#123;&#123;[[Template:main|main]]&#125;&#125;)}}<noinclude>
|{{#if:{{{6|}}}|,&#32;|,&#32;and&#32;}}'''[[{{{5}}}|{{{l5|{{{5}}}}}}]]'''}}{{#if:{{{6|}}}
|{{#if:{{{7|}}}|,&#32;|,&#32;and&#32;}}'''[[{{{6}}}|{{{l6|{{{6}}}}}}]]'''}}{{#if:{{{7|}}}
|{{#if:{{{8|}}}|,&#32;|,&#32;and&#32;}}'''[[{{{7}}}|{{{l7|{{{7}}}}}}]]'''}}{{#if:{{{8|}}}
|{{#if:{{{9|}}}|,&#32;|,&#32;and&#32;}}'''[[{{{8}}}|{{{l8|{{{8}}}}}}]]'''}}{{#if:{{{9|}}}
|{{#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;)}} }}</div><noinclude>


== Usage ==
{{doc}}
 
To link to a "main article" on a topic, use &#123;{main|The other article}}.
 
== See also ==
 
* [[Template:Main articles]], to use when you have more than one main article.
* {{tl|Details}}
* {{tl|Further}}
* <s>{{tl|See}}</s> (deprecated - use {{tl|Further}})
* {{tl|See also}}
 
[[Category:Section templates|{{PAGENAME}}]]
[[Category:Templates using ParserFunctions|{{PAGENAME}}]]
[[bn:Template:মূল নিবন্ধ]]
[[eo:Ŝablono:Ĉefa]]
[[fr:Modèle:Détails]]
[[pl:Szablon:Main]]
</noinclude>
</noinclude>

Revision as of 23:37, 8 September 2014

[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