Template:Main/doc: Difference between revisions

From Official Kodi Wiki
Jump to navigation Jump to search
(interwiki da)
 
(70 intermediate revisions by 41 users not shown)
Line 1: Line 1:
{{documentation subpage}}
__NOTOC__
__NOTOC__
When a [[Wikipedia:What is an article|Wikipedia article]] is large, it is often rewritten in [[Wikipedia:summary style|summary style]].  This [[Wikipedia:Template messages|template]] is used below the heading of the summary, to link to the sub-article that has been (or will be) summarised. 
{{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 />


It '''should not''' be used at the top of an article to link to its parent topic; use a wikilink in the [[WP:LEAD|lead]] instead, and add {{t1|SubArticle}} at the top of the subarticle's talk page if desired. The template is also '''not''' used instead of inline links or as a "see also". It has a specific usage as described above.
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.
|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
|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>


== Example ==
== 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=Alternate title}}</pre>
| {{Main|Article|l1=Alternate 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 ==
* {{tl|maincat}} For related sections and categories
* {{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>
{{DEFAULTSORT:{{BASEPAGENAME}}}}
[[Category:Wikipedia page-section templates|{{PAGENAME}}]]
[[Category:Template documentation pages]]</noinclude><includeonly>
[[Category:List templates|{{PAGENAME}}]]
 


[[be-x-old:Шаблён:Асноўны артыкул]]
[[Category:Hatnote templates]]</includeonly>
[[bg:Шаблон:Основна]]
[[bn:Template:মূল নিবন্ধ]]
[[ca:Plantilla:Principal]]
[[da:Skabelon:Hovedartikel]]
[[eo:Ŝablono:Ĉefa]]
[[fo:Fyrimynd:Høvuðsgrein]]
[[fr:Modèle:Détails]]
[[es:Plantilla:AP]]
[[fi:Malline:Pääartikkeli]]
[[gl:Template:Ver artigo principal]]
[[he:תבנית:הפניה לערך מורחב]]
[[hr:Predložak:Main]]
[[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:Zieook]]
[[no:Mal:Utdypende artikkel]]
[[pl:Szablon:Main]]
[[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]]
[[th:แม่แบบ:บทความหลัก]]
[[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