Difference between revisions of "Template: See also"

From A Wiki of Ice and Fire
Jump to: navigation, search
m
Line 8: Line 8:
 
<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.
 
<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.
  
It is not for use in the "See also" section at the bottom of an article or Instead or instead of "[[Template:Main|Main]]".  
+
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===  
+
====Examples====
{| class="wikitable" width=100%
+
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:
|-
 
! width=350px|Code
 
! Result
 
|-
 
| <pre>{{See also|Eddard Stark}}</pre>  
 
| {{See also|Eddard Stark}}
 
|-
 
| <pre>{{See also|Eddard Stark|Catelyn Stark}}</pre>
 
| {{See also|Eddard Stark|Catelyn Stark}}
 
|-
 
| <pre>{{Main|Eddard_Stark#Family{{!}}Family}}</pre>
 
| Creates alternative title e.g. this: {{Main|Eddard_Stark#Family{{!}}Family}} <br> Instead of this: {{Main|Eddard_Stark#Family}}
 
|}
 
  
[[Category:Cross-reference templates]] </noinclude>
+
{{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>

Revision as of 15:09, 2 July 2016


Usage

Error: no page names specified (help). 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{{!}}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.