Template:Main/doc: Difference between revisions

From Official Kodi Wiki
Jump to navigation Jump to search
No edit summary
 
(27 intermediate revisions by 11 users not shown)
Line 1: Line 1:
{{Documentation subpage}}
__NOTOC__
<includeonly>{{high-risk|118,000+}}</includeonly>
{{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 />


Naomi Sager is best known for her work in Natural Language Processing and as the director of the Linguistic String Project at New York University from 1965 into the years 2000.
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.


===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.
|Naomi Sager is best known for her work in Natural Language Processing and as the director of the Linguistic String Project at New York University from 1965 into the years 2000.
}}</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
|Article 3
|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 for articles where a piped link would be used). Note that the extra parameters use a lower case 'L', eg. l1 <u>not</u> 11:
== Notes ==
<pre>{{Main
<references />
|Article 1
|Article 2
|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>


===Examples===
== See also ==
{| class="wikitable"
* [[Template:See]]
|-
* [[Template:See also]]
! Code
* [[:Category:Hatnote templates]]<noinclude>
! 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=Alternative title}}</pre>
| {{Main|Article|l1=Alternative title}}
|-
| <pre>{{Main|(15760) 1992 QB1|l1={{mp|(15760) 1992 QB|1}}}}</pre>
| {{Main|(15760) 1992 QB1|l1={{mp|(15760) 1992 QB|1}}}}
|}


===See also===
* [[Template:Hatnote templates documentation|Hatnote templates documentation]]
*{{Tl|Main category}} For related sections and categories
*{{Tl|Cat main}}
*{{Tl|See also}} for a hatnote linking to a related article about a given topic


*[[Wikipedia:Article series]]
{{DEFAULTSORT:{{BASEPAGENAME}}}}
*[[Wikipedia:Summary style]]
[[Category:Template documentation pages]]</noinclude><includeonly>
*[[m:Help:Template]]


<includeonly>
[[Category:Cross-reference templates]]
[[Category:Exclude in print]]
[[Category:Hatnote templates]]
[[Category:List templates]]
[[Category:Wikipedia page-section templates]]


[[ar:قالب:مقال تفصيلي]]
[[Category:Hatnote templates]]</includeonly>
[[be-x-old:Шаблён:Асноўны артыкул]]
[[bs:Šablon:Glavni]]
[[bg:Шаблон:Основна]]
[[bn:Template:মূল নিবন্ধ]]
[[ca:Plantilla:Article principal]]
[[cs:Šablona:Hlavní článek]]
[[da:Skabelon:Hovedartikel]]
[[de:Vorlage:Hauptartikel]]
[[eo:Ŝablono:Ĉefartikolo]]
[[fo:Fyrimynd:Høvuðsgrein]]
[[fr:Modèle:Article_principal]]
[[es:Plantilla:AP]]
[[fi:Malline:Pääartikkeli]]
[[gl:Template:Ver artigo principal]]
[[hy:Կաղապար:Հիմնական հոդված]]
[[he:תבנית:הפניה לערך מורחב]]
[[hr:Predložak:Glavni]]
[[ia:Patrono:AP]]
[[id:Templat:Main]]
[[is:Snið:Aðalgrein]]
[[it:Template:Vedi anche]]
[[ja:Template:Main]]
[[ko:틀:본문]]
[[lo:ແມ່ແບບ:ບົດຄວາມຫຼັກ]]
[[lv:Veidne:Galvenais]]
[[mg:Template:Antsipirihany]]
[[nl:Sjabloon:Zie hoofdartikel]]
[[no:Mal:Utdypende artikkel]]
[[pl:Szablon:Main]]
[[pt:Predefinição:Artigo 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]]
[[th:แม่แบบ:บทความหลัก]]
[[tl:Suleras:Pangunahin]]
[[tr:Şablon:Ana]]
[[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