Template:Main/doc: Difference between revisions

From Official Kodi Wiki
Jump to navigation Jump to search
(«"{{main|The article}}." → "'''{{main|The article}}'''"»)
 
(109 intermediate revisions by 74 users not shown)
Line 1: Line 1:
To link to a "main article" on a topic, use
__NOTOC__
  '''{{main|The other article}}'''
{{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 />
 
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 ==
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.
 
=== Basic ===
:{{Tlx|Main|<var>Page 1</var>}}
 
=== Full syntax ===
You may also include additional links, up to ten in total:
:{{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>}}
 
== Notes ==
<references />


== See also ==
== See also ==
* [[Template:See]]
* [[Template:See also]]
* [[:Category:Hatnote templates]]<noinclude>
{{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}}


<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]]
[[it:Template:Vedi anche]]
[[ko:틀:본문]]
[[mg:Template:Antsipirihany]]
[[nl:Sjabloon:Zieook]]
[[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