Difference between revisions of "Template:See also"

From Mine Blocks Wiki
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!

 
(4 intermediate revisions by the same user not shown)
Line 1: Line 1:
:<div class="notice" id="see-also">''{{{altphrase|See also}}}: {{#if: {{{1|}}}
+
<div class="hatnote see-also-hatnote">{{{altphrase|See also}}}: {{#if: {{{1|}}}
 
   |<!--then:-->{{{1}}}
 
   |<!--then:-->{{{1}}}
 
   |<!--else:--><includeonly><span class="error">[[Template:See also|Template see also]] requires at least one template name</span></includeonly>
 
   |<!--else:--><includeonly><span class="error">[[Template:See also|Template see also]] requires at least one template name</span></includeonly>
Line 11: Line 11:
 
   |, and {{{5}}}
 
   |, and {{{5}}}
 
   }} {{#if: {{{6|}}}
 
   }} {{#if: {{{6|}}}
   |<span class="error">[[Template:See also|Template see also]] has too many links specified (maximum is 5)</span>
+
   |<span class="error">(Note: [[Template:See also|Template See also]] has too many links specified [maximum is 5])</span>
   }}
+
   }}</div><noinclude>
''</div><noinclude>
+
{{Documentation}}
== Usage ==
+
<!-- Put categories/interwiki on the documentation page. -->
Adds a hatnote to link to related pages or those who have more information on a subject. Up to 5 links can be used.
 
 
 
== Syntax ==
 
<pre>
 
<nowiki>
 
{{See also
 
|Link 1
 
|Link 2
 
|Link 3
 
|Link 4
 
|Link 5
 
}}
 
</nowiki>
 
</pre>
 
 
 
== Example ==
 
<pre>
 
<nowiki>
 
{{See also
 
|[[Cow]]
 
|[[Wolf]]
 
|[[Creeper#Behavior|Creeper's Behavior]]
 
|[[Zombie]]
 
|[[Spider]]
 
}}
 
</nowiki>
 
</pre>
 
 
 
Results in:
 
 
 
{{See also
 
|[[Cow]]
 
|[[Wolf]]
 
|[[Creeper#Behavior|Creeper's Behavior]]
 
|[[Zombie]]
 
|[[Spider]]
 
}}
 
 
</noinclude>
 
</noinclude>

Latest revision as of 22:47, 7 July 2023

See also:

Template-info.png Template documentation Note: parts of or the entire template might not be visible without values provided.

This template is used to create hatnotes to point to a small number of other related titles at the top of article sections (excluding the lead). It looks like this:

See also: Smelting

Do not use this template on top of a page, where hatnotes are for disambiguation and not for related topics. Do not use this template inside the "See also" section at the end of an article, or for links to other articles or subsections of the same article within regular article text.

Usage

Adds a hatnote to link to related pages or those who have more information on a subject. Up to 5 links can be used. After adding a sixth parameter, an error will be added in place of that link.

Syntax

There are five parameters in total, all of them unnamed, and whose content should be a link.

{{See also
| [[Link 1|Caption text 1]]
| [[Link 2|Caption text 2]]
| [[Link 3|Caption text 3]]
| [[Link 4|Caption text 4]]
| [[Link 5|Caption text 5]]
}}

Examples

{{See also|[[Cow]]}}
See also: Cow
{{See also|[[Cow#Behavior]]}}
See also: Cow#Behavior
{{See also|[[Cow#Behavior|Cow's behavior]]}}
See also: Cow's behavior
{{See also|[[Cow]]|[[Pig]]|[[Wolf]]}}
See also: Cow, Pig, and Wolf
{{See also|[[Zombie]]|[[Creeper]]|[[Enderman]]|[[Slime]]|[[Spider]]}}
See also: Zombie, Creeper, Enderman, Slime, and Spider
{{See also|[[Zombie]]|[[Creeper]]|[[Enderman]]|[[Slime]]|[[Spider]]|[[Magma cube]]}}
See also: Zombie, Creeper, Enderman, Slime, and Spider (Note: Template See also has too many links specified [maximum is 5])