Difference between revisions of "Template:See also"

From Yugipedia
Jump to: navigation, search
({{Hatnote}} instead of a hardcoded <div>)
(12 intermediate revisions by 2 users not shown)
Line 1: Line 1:
<noinclude>{{TagSyncPage}}
+
{{Hatnote|See also: {{ #if: {{{1<includeonly>|</includeonly>}}}
</noinclude><includeonly><span class="box headnote">''See also: {{#if:{{{1|}}}|{{#if:{{{l1|}}}|[[{{{1}}}|{{{l1|{{{1}}}}}}]]|[[{{{1}}}]]}}|'''Error: [[Template:See also|Template must be given at least one article name]]'''
+
  | {{autolink|{{{1<noinclude>|{{SITENAME}}</noinclude>}}}}}
}}{{#if:{{{2|}}}|{{#if:{{{3|}}}|, |&nbsp;and }} {{#if:{{{l2|}}}|[[{{{2}}}|{{{l2|{{{2}}}}}}]]|[[{{{2}}}]]}}
+
  | '''Error: [[Template:See also|Template must be given at least one article name]]'''
}}{{#if:{{{3|}}}|{{#if:{{{4|}}}|, |,&nbsp;and }} {{#if:{{{l3|}}}|[[{{{3}}}|{{{l3|{{{3}}}}}}]]|[[{{{3}}}]]}}
+
}}{{ #if: {{{2|}}} | {{ #if: {{{3|}}} | , | &nbsp;and }} {{autolink|{{{2}}}}}
}}{{#if:{{{4|}}}|{{#if:{{{5|}}}|, |,&nbsp;and }} {{#if:{{{l4|}}}|[[{{{4}}}|{{{l4|{{{4}}}}}}]]|[[{{{4}}}]]}}
+
}}{{ #if: {{{3|}}} | , {{ #if: {{{4|}}} || and }} {{autolink|{{{3}}}}}
}}{{#if:{{{5|}}}|{{#if:{{{6|}}}|, |,&nbsp;and }} {{#if:{{{l5|}}}|[[{{{5}}}|{{{l5|{{{5}}}}}}]]|[[{{{5}}}]]}}
+
}}{{ #if: {{{4|}}} | , {{ #if: {{{5|}}} || and }} {{autolink|{{{4}}}}}
}}{{#if:{{{6|}}}|{{#if:{{{7|}}}|, |,&nbsp;and }} {{#if:{{{l6|}}}|[[{{{6}}}|{{{l6|{{{6}}}}}}]]|[[{{{6}}}]]}}
+
}}{{ #if: {{{5|}}} | , {{ #if: {{{6|}}} || and }} {{autolink|{{{5}}}}}
}}{{#if:{{{7|}}}|{{#if:{{{8|}}}|, |,&nbsp;and }} {{#if:{{{l7|}}}|[[{{{7}}}|{{{l7|{{{7}}}}}}]]|[[{{{7}}}]]}}
+
}}{{ #if: {{{6|}}} | , {{ #if: {{{7|}}} || and }} {{autolink|{{{6}}}}}
}}{{#if:{{{8|}}}|{{#if:{{{9|}}}|, |,&nbsp;and }} {{#if:{{{l8|}}}|[[{{{8}}}|{{{l8|{{{8}}}}}}]]|[[{{{8}}}]]}}
+
}}{{ #if: {{{7|}}} | , {{ #if: {{{8|}}} || and }} {{autolink|{{{7}}}}}
}}{{#if:{{{9|}}}|{{#if:{{{10|}}}|, |,&nbsp;and }} {{#if:{{{l9|}}}|[[{{{9}}}|{{{l9|{{{9}}}}}}]]|[[{{{9}}}]]}}
+
}}{{ #if: {{{8|}}} | , {{ #if: {{{9|}}} || and }} {{autolink|{{{8}}}}}
}}{{#if:{{{10|}}}|{{#if:{{{11|}}}|, |,&nbsp;and }} {{#if:{{{l10|}}}|[[{{{10}}}|{{{l10|{{{10}}}}}}]]|[[{{{10}}}]]}}
+
}}{{ #if: {{{9|}}} | , {{ #if: {{{10|}}} || and }} {{autolink|{{{9}}}}}
}}{{#if:{{{11|}}}|{{#if:{{{12|}}}|, |,&nbsp;and }} {{#if:{{{l11|}}}|[[{{{11}}}|{{{l11|{{{11}}}}}}]]|[[{{{11}}}]]}}
+
}}{{ #if: {{{10|}}} | , {{ #if: {{{11|}}} || and }} {{autolink|{{{10}}}}}
}}{{#if:{{{12|}}}|{{#if:{{{13|}}}|, |,&nbsp;and }} {{#if:{{{l12|}}}|[[{{{12}}}|{{{l12|{{{12}}}}}}]]|[[{{{12}}}]]}}
+
}}{{ #if: {{{11|}}} | , {{ #if: {{{12|}}} || and }} {{autolink|{{{11}}}}}
}}{{#if:{{{13|}}}|{{#if:{{{14|}}}|, |,&nbsp;and }} {{#if:{{{l13|}}}|[[{{{13}}}|{{{l13|{{{13}}}}}}]]|[[{{{13}}}]]}}
+
}}{{ #if: {{{12|}}} | , {{ #if: {{{13|}}} || and }} {{autolink|{{{12}}}}}
}}{{#if:{{{14|}}}|{{#if:{{{15|}}}|, |,&nbsp;and }} {{#if:{{{l14|}}}|[[{{{14}}}|{{{l14|{{{14}}}}}}]]|[[{{{14}}}]]}}
+
}}{{ #if: {{{13|}}} | , {{ #if: {{{14|}}} || and }} {{autolink|{{{13}}}}}
}}{{#if:{{{15|}}}|,&nbsp;and {{#if:{{{l15|}}}|[[{{{15}}}|{{{l15|{{{15}}}}}}]]|[[{{{15}}}]]}}
+
}}{{ #if: {{{14|}}} | , {{ #if: {{{15|}}} || and }} {{autolink|{{{14}}}}}
}}{{#if:{{{16|}}}| &mdash; '''<br/>Error: [[Template:See also|Too many links specified (maximum is 15)]]'''
+
}}{{ #if: {{{15|}}} | , and {{autolink|{{{15}}}}}
}}''</span></includeonly><noinclude>{{Tlx|See also}} is used for small sets of '''see also''' information at the head of article sections.
+
}}{{ #if: {{{16|}}} | '''<br />Error: [[Template:See also|Too many links specified (maximum is 15)]]'''
 
+
}}}}<noinclude>
==Usage==
+
{{Documentation}}</noinclude>
{{Tlx|See also|Article 1|...|''Article 15''}}
 
 
 
* Up to 15 parameters are permitted: only the first is mandatory.
 
* The list is dynamically generated so that the word "and" is always placed between the final two entries.
 
* If more than 15 entries are supplied, a message will be displayed pointing out the problem.
 
* Using l# will change the label for an article.
 
; NB : no newlines are permitted else the article links will be broken.
 
 
 
==Example==
 
{| class="box table bordered innerbordered colored type-basic cell-align-top"
 
!| Code
 
!| Result
 
|-
 
||{{Tlx|See also}}||{{See also}}
 
|-
 
||{{Tlx|See also|Article}}||{{See also|Article}}
 
|-
 
||{{Tlx|See also|Article|Article}}||{{See also|Article|Article}}
 
|-
 
||{{Tlx|See also|Article|Article|Article}}||{{See also|Article|Article|Article}}
 
|-
 
||{{Tlx|See also|Article|Article|4=l2=Alternate title}}||{{See also|Article|Article|l2=Alternate title}}
 
|}
 
''And so on up to 15 parameters.''
 
 
 
{{TagSync|include: *}}
 
[[Category:Hatnote templates]]</noinclude>
 

Revision as of 06:15, 18 November 2017