Difference between revisions of "Template:Main"
Jump to navigation
Jump to search
If you find a typo, inconsistency, or error, please sign up and help out the wiki! We can't do it without your help! :D Thank you!
(Created page with ":<div class="notice" id="main-article">''{{{altphrase|Main article}}}: {{#if: {{{1|}}} |<!--then:-->{{{1}}} |<!--else:--><includeonly><span class="error">Template:Main|T...") |
|||
Line 1: | Line 1: | ||
− | + | <div class="hatnote main-hatnote">{{{altphrase|Main article}}}: {{#if: {{{1|}}} | |
|<!--then:-->{{{1}}} | |<!--then:-->{{{1}}} | ||
|<!--else:--><includeonly><span class="error">[[Template:Main|Template main]] requires at least one template name</span></includeonly> | |<!--else:--><includeonly><span class="error">[[Template:Main|Template main]] requires at least one template name</span></includeonly> | ||
Line 9: | Line 9: | ||
|<span class="error">(Note: [[Template:Main|Template Main]] has too many links specified [maximum is 3])</span> | |<span class="error">(Note: [[Template:Main|Template Main]] has too many links specified [maximum is 3])</span> | ||
}} | }} | ||
− | + | </div><noinclude> | |
== Usage == | == Usage == | ||
Adds a hatnote to link to the main article of a subject for further information. Can accept up to 3 links. | Adds a hatnote to link to the main article of a subject for further information. Can accept up to 3 links. | ||
Line 16: | Line 16: | ||
<pre><nowiki> | <pre><nowiki> | ||
{{Main | {{Main | ||
− | |[[Link 1|Caption text 1]] | + | | [[Link 1|Caption text 1]] |
− | |[[Link 2|Caption text 2]] | + | | [[Link 2|Caption text 2]] |
− | |[[Link 3|Caption text 3]] | + | | [[Link 3|Caption text 3]] |
}} | }} | ||
</nowiki></pre> | </nowiki></pre> | ||
== Examples == | == Examples == | ||
− | + | <code><nowiki>{{Main|[[Cow]]}}</nowiki></code> → {{Main|[[Cow]]}} | |
− | + | ||
− | + | <code><nowiki>{{Main|[[Cow]]|[[Pig]]}}</nowiki></code> → {{Main|[[Cow]]|[[Pig]]}} | |
− | + | ||
+ | <code><nowiki>{{Main|[[Cow]]|[[Pig]]|[[Wolf]]}}</nowiki></code> → {{Main|[[Cow]]|[[Pig]]|[[Wolf]]}} | ||
+ | |||
+ | <code><nowiki>{{Main|[[Zombie]]|[[Creeper]]|[[Enderman]]|[[Slime]]}}</nowiki></code> → {{Main|[[Zombie]]|[[Creeper]]|[[Enderman]]|[[Slime]]}} | ||
+ | |||
+ | [[Category:Hatnote]] | ||
</noinclude> | </noinclude> |
Latest revision as of 08:17, 22 December 2021
Main article:
Usage
Adds a hatnote to link to the main article of a subject for further information. Can accept up to 3 links.
Syntax
{{Main | [[Link 1|Caption text 1]] | [[Link 2|Caption text 2]] | [[Link 3|Caption text 3]] }}
Examples
{{Main|[[Cow]]}}
→
Main article: Cow
{{Main|[[Cow]]|[[Pig]]}}
→
{{Main|[[Cow]]|[[Pig]]|[[Wolf]]}}
→
{{Main|[[Zombie]]|[[Creeper]]|[[Enderman]]|[[Slime]]}}
→
Main article: Zombie, Creeper, and Enderman (Note: Template Main has too many links specified [maximum is 3])