Difference between revisions of "Template: See also"

From A Wiki of Ice and Fire
Jump to: navigation, search
 
(4 intermediate revisions by the same user not shown)
Line 1: Line 1:
<includeonly>''See also: [[{{{1|}}}]]<!--
+
<includeonly>{{#invoke:Labelled list hatnote|labelledList|See also}}</includeonly><noinclude>
-->{{#if:{{{2|}}}|{{#if:{{{3|}}}|,&#32;|, and&#32;}}[[{{{2}}}]]}}<!--
+
{{documentation}}
-->{{#if:{{{3|}}}|{{#if:{{{4|}}}|,&#32;|, and&#32;}}[[{{{3}}}]]}}<!--
+
<!-- Categories go on the /doc subpage, and interwikis go on Wikidata. -->
-->{{#if:{{{4|}}}|{{#if:{{{5|}}}|,&#32;|, and&#32;}}[[{{{4}}}]]}}<!--
+
</noinclude>
-->{{#if:{{{5|}}}|, and [[{{{5}}}]]}}''</includeonly><noinclude>
 
 
 
===Usage===
 
<code>{{See also}}</code> is used to create hatnotes to point to a small number of other, related, titles. to help readers locate a different article they might be seeking. It's placed below the heading of the sub sections.
 
 
 
This template is not meant to be used in the "See also" section at the bottom of an article, or instead of the "[[Template:Main|Main]]"-template.
 
 
 
====Examples====
 
To refer to one page, type the pagename as a parameter in the template. For example, typing <nowiki>{{See also|Eddard Stark}}</nowiki> will result in:
 
 
 
{{See also|Eddard Stark}}
 
 
 
 
 
It is possible to refer to multiple pages. For example, typing <nowiki>{{See also|Eddard Stark|Catelyn Stark}}</nowiki> results in:
 
 
 
{{See also|Eddard Stark|Catelyn Stark}}
 
 
 
 
 
Referring to a sub-heading in a specific page is also possible. For example, in order to link to the "History" section on the Eddard Stark page, typing <nowiki>{{See also|Eddard_Stark#History{{!}}History}}</nowiki> will create an alternative title e.g. this:
 
 
 
{{See also|Eddard_Stark#History{{!}}History}}
 
<br>Instead of<br>
 
{{See also|Eddard_Stark#History}}
 
 
 
 
 
This way, the template will link to the "History"-section on the Eddard Stark page.
 
[[Category:Templates]][[Category:Hatnote Templates]] </noinclude>
 

Latest revision as of 16:29, 10 September 2018

Template documentation[view] [edit] [history] [purge]

Usage

{{See also}} is used to create hatnotes to point to a small number of other, related, titles. to help readers locate a different article they might be seeking. It's placed below the heading of the sub sections.

This template is not meant to be used in the "See also" section at the bottom of an article, or instead of the "Main"-template.

Examples

To refer to one page, type the pagename as a parameter in the template. For example, typing {{See also|Eddard Stark}} will result in:

It is possible to refer to multiple pages. For example, typing {{See also|Eddard Stark|Catelyn Stark}} results in:

Referring to a sub-heading in a specific page is also possible. For example, in order to link to the "History" section on the Eddard Stark page, typing {{See also|Eddard Stark#History|l1=History}} will create an alternative title e.g. this:

Instead of

This way, the template will link to the "History" section on the Eddard Stark page.