Template:Main: Difference between revisions
Jump to navigation
Jump to search
Created page with "<includeonly><div class="hatnote">{{#if:{{{2|}}}|Main articles: [[{{{1}}}]], [[{{{2}}}]]{{#if:{{{3|}}}|, [[{{{3}}}]]|}}|Main article: [[{{{1}}}]]}}</div></includeonly><noinclude>{{/doc}}Category:Hatnotes</noinclude>" |
mNo edit summary |
||
| Line 1: | Line 1: | ||
<includeonly><div class="hatnote">{{#if:{{{2|}}}|Main articles: [[{{{1}}}]], [[{{{2}}}]]{{#if:{{{3|}}}|, [[{{{3}}}]]|}}|Main article: [[{{{1}}}]]}}</div></includeonly><noinclude>{{/doc}} | <includeonly><div class="hatnote">{{#if:{{{2|}}}|Main articles: [[{{{1}}}]], [[{{{2}}}]]{{#if:{{{3|}}}|, [[{{{3}}}]]|}}|Main article: [[{{{1}}}]]}}</div></includeonly><noinclude>{{/doc}}</noinclude> | ||
Latest revision as of 03:53, 11 November 2024
Creates a "main article: X" hatnote for linking to an article describing a subject in more detail. This should only be used below section headers (not the title of the page) and should be placed above all other templates within that section, including notices.
| Parameter | Description | Type | Status | |
|---|---|---|---|---|
| Link 1 | 1 | The page to create a link to.
| String | required |
| Link 2 | 2 | If specified, creates a link to a second article. Changes the formatting of the hatnote to "Main articles: X, Y".
| String | optional |
| Link 3 | 3 | If specified, creates a link to a third article.
| String | optional |
Example usage
{{main|Monkey}}
Main article: Monkey
With multiple links
{{main|Monkey|Bloon}}