Template:Main/doc: Difference between revisions

From Official Kodi Wiki
Jump to navigation Jump to search
({{documentation subpage}})
 
(93 intermediate revisions by 64 users not shown)
Line 1: Line 1:
{{documentation subpage}}
__NOTOC__
{{Notice|It contains usage information, categories and other content that is not part of the original template page.|''NOTICE:'' This is a documentation subpage for [[:{{SUBJECTSPACE}}:{{BASEPAGENAME}}]]}}<br />


__NOTOC__
The <kbd style="font-size: 1.15em; font-weight: 800;"><nowiki>{{</nowiki>[[Template:Main|Main]]<nowiki>}}</nowiki></kbd> template produces a hatnote<ref name="hatnote">An editorial message placed at the top (or "hat") of a page or section, intended to anticipate a reader's needs or purpose.</ref> that informs the reader that the topic is addressed in greater detail elsewhere on Kodi Wiki.
When [[Wikipedia:What is an article|Wikipedia article]]s become too large, subarticles are usually created. This [[Wikipedia:Template messages|template]] is used to mark the section of the "Main" article that was separated to add a link to the new article. It '''should not''' be used at the top of an article to link to its parent topic. Such links should be a natural part of the [[Wikipedia:Lead|article lead]].


== Usage ==
== Usage ==
<pre>{{main
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 (<code><nowiki>[[…]]</nowiki></code>) wikilink syntax.
|Article 1
 
}}</pre>
=== Basic ===
:{{Tlx|Main|<var>Page 1</var>}}


=== Full syntax ===
You may also include additional links, up to ten in total:
You may also include additional links, up to ten in total:
<pre>{{main
:{{Tlx|Main|<var>Page 1</var>|<var>Archive:Page 2</var>|<var>HOW-TO:Page 3</var>|<var>:Category:Page 4</var>|<var>Template:Page 5</var>|<var>Talk:Page 6</var>|<var>Add-on:Page 7</var>|<var>User:Page 8</var>|<var>Help:Page 9</var>|<var>Official Kodi Wiki:Page 10</var>}}
|Article 1
 
|Article 2
== Notes ==
|Article 3
<references />
|Article 4
|Article 5
|Article 6
|Article 7
|Article 8
|Article 9
|Article 10
}}</pre>


For each link, you may optionally specify a link appearance (this is mostly intended for articles whose titles suffer from technical limitations):
== See also ==
<pre>{{main
* [[Template:See]]
|Article 1
* [[Template:See also]]
|Article 2
* [[:Category:Hatnote templates]]<noinclude>
|Article 3
|Article 4
|Article 5
|Article 6
|Article 7
|Article 8
|Article 9
|Article 10
|l1=Article 1 link appearance
|l2=Article 2 link appearance
|l3=Article 3 link appearance
|l4=Article 4 link appearance
|l5=Article 5 link appearance
|l6=Article 6 link appearance
|l7=Article 7 link appearance
|l8=Article 8 link appearance
|l9=Article 9 link appearance
|l10=Article 10 link appearance
}}</pre>


== Example ==
{| class="wikitable"
|-
! Code
! Result
|-
| <pre>{{Main|Article}}</pre>
| {{Main|Article}}
|-
| <pre>{{Main|Article 1|Article 2|Article 3}}</pre>
| {{Main|Article 1|Article 2|Article 3}}
|-
| <pre>{{Main|Article 1|Article 2|Article 3|Article 4|Article 5}}</pre>
| {{Main|Article 1|Article 2|Article 3|Article 4|Article 5}}
|-
| <pre>{{Main|Article|l1=Alternate title}}</pre>
| {{Main|Article|l1=Alternate title}}
|-
| <pre>{{Main|2003 UB313|l1={{mp|2003 UB|313}}}}</pre>
| {{Main|2003 UB313|l1={{mp|2003 UB|313}}}}
|}


== See also ==
{{DEFAULTSORT:{{BASEPAGENAME}}}}
[[Category:Template documentation pages]]</noinclude><includeonly>


* {{tl|Catmore}} For categories
* {{tl|Details}}
* {{tl|Further}}
* <s>{{tl|See}}</s> (deprecated - use {{tl|Further}})
* {{tl|See also}}
* [[Wikipedia:Long article layout]]
* [[Wikipedia:Summary style]]
* [[m:Help:Template]]


<includeonly>
[[Category:Hatnote templates]]</includeonly>
[[Category:Section templates|{{PAGENAME}}]]
[[Category:List templates|{{PAGENAME}}]]
[[Category:Templates using ParserFunctions|{{PAGENAME}}]]
[[bg:Шаблон:Основна]]
[[bn:Template:মূল নিবন্ধ]]
[[ca:Plantilla:Principal]]
[[de:Vorlage:Hauptartikel]]
[[eo:Ŝablono:Ĉefa]]
[[fr:Modèle:Détails]]
[[pl:Szablon:Main]]
[[es:Plantilla:AP]]
[[fi:Malline:Pääartikkeli]]
[[gl:Template:Ver artigo principal]]
[[he:תבנית:הפניה לערך מורחב]]
[[hr:Predložak:Main]]
[[id:Templat:Main]]
[[is:Snið:Aðalgrein]]
[[it:Template:Vedi anche]]
[[ko:틀:본문]]
[[mg:Template:Antsipirihany]]
[[nl:Sjabloon:Zieook]]
[[no:Mal:Utdypende artikkel]]
[[pt:Predefinição:Principal]]
[[ro:Format:Articol principal]]
[[ru:Шаблон:Main]]
[[simple:Template:Main]]
[[sk:Šablóna:Hlavný článok]]
[[sl:Predloga:Glavni]]
[[sq:Stampa:Kryesor]]
[[sr:Шаблон:Посебан чланак]]
[[sv:Mall:Huvudartikel]]
[[ta:வார்ப்புரு:Main]]
[[tl:Template:Main]]
[[vi:Tiêu bản:Chính]]
[[zh:Template:Main]]
</includeonly>

Latest revision as of 02:50, 13 September 2022

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