Template:Main/doc: Difference between revisions

From Official Kodi Wiki
Jump to navigation Jump to search
No edit summary
 
(2 intermediate revisions by 2 users not shown)
Line 1: Line 1:
===Usage===
__NOTOC__
<pre>{{Main
{{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 />
|Page 1
}}</pre>


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:
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>}}
|Page 1
 
|Page 2
== Notes ==
|Page 3
<references />
|Page 4
 
|Page 5
== See also ==
|Page 6
* [[Template:See]]
|Page 7
* [[Template:See also]]
|Page 8
* [[:Category:Hatnote templates]]<noinclude>
|Page 9
 
|Page 10
 
}}</pre>
{{DEFAULTSORT:{{BASEPAGENAME}}}}
[[Category:Template documentation pages]]</noinclude><includeonly>


==See also==
*[[Template:See also]]


<includeonly>
[[Category:Hatnote templates]]</includeonly>
[[Category:Formatting templates]]
</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