Difference between revisions of "Template:See also"

From Yugipedia
Jump to: navigation, search
(actually, there's no reason not to leave the unlinked version in as shorthand, just check for any usages using the l# parameters to change the link text)
({{Hatnote}} instead of a hardcoded <div>)
(5 intermediate revisions by the same user not shown)
Line 1: Line 1:
<div class="rellink">See also: {{
+
{{Hatnote|See also: {{ #if: {{{1<includeonly>|</includeonly>}}}
  #if: {{{1<includeonly>|</includeonly>}}}
+
   | {{autolink|{{{1<noinclude>|{{SITENAME}}</noinclude>}}}}}
   | {{
 
    #if: {{ #pos: {{{1<noinclude>|[[foo]]</noinclude>}}} | {{!((}} }}
 
    | {{{1<noinclude>|[[Main Page]]</noinclude>}}}
 
    | [[{{{1}}}|{{ #if: {{{l1|}}} | {{{l1}}} | {{{1}}} }}]]{{ #if: {{{l1|}}} | [[Category:See also transclusions needing to be updated]] }}
 
  }}
 
 
   | '''Error: [[Template:See also|Template must be given at least one article name]]'''
 
   | '''Error: [[Template:See also|Template must be given at least one article name]]'''
}}{{
+
}}{{ #if: {{{2|}}} | {{ #if: {{{3|}}} | , | &nbsp;and }} {{autolink|{{{2}}}}}
  #if: {{{2|}}} | {{
+
}}{{ #if: {{{3|}}} | , {{ #if: {{{4|}}} || and }} {{autolink|{{{3}}}}}
    #if: {{{3|}}} | , | &nbsp;and
+
}}{{ #if: {{{4|}}} | , {{ #if: {{{5|}}} || and }} {{autolink|{{{4}}}}}
  }} {{ #if: {{ #pos: {{{2}}} | {{!((}} }} | {{{2}}}
+
}}{{ #if: {{{5|}}} | , {{ #if: {{{6|}}} || and }} {{autolink|{{{5}}}}}
    | [[{{{2}}}|{{ #if: {{{l2|}}} | {{{l2}}} | {{{2}}} }}]]{{ #if: {{{l2|}}} | [[Category:See also transclusions needing to be updated]] }}
+
}}{{ #if: {{{6|}}} | , {{ #if: {{{7|}}} || and }} {{autolink|{{{6}}}}}
  }}
+
}}{{ #if: {{{7|}}} | , {{ #if: {{{8|}}} || and }} {{autolink|{{{7}}}}}
}}{{
+
}}{{ #if: {{{8|}}} | , {{ #if: {{{9|}}} || and }} {{autolink|{{{8}}}}}
  #if: {{{3|}}} | {{
+
}}{{ #if: {{{9|}}} | , {{ #if: {{{10|}}} || and }} {{autolink|{{{9}}}}}
    #if: {{{4|}}} | , | &nbsp;and
+
}}{{ #if: {{{10|}}} | , {{ #if: {{{11|}}} || and }} {{autolink|{{{10}}}}}
  }} {{ #if: {{ #pos: {{{3}}} | {{!((}} }} | {{{3}}}
+
}}{{ #if: {{{11|}}} | , {{ #if: {{{12|}}} || and }} {{autolink|{{{11}}}}}
    | [[{{{3}}}|{{ #if: {{{l3|}}} | {{{l3}}} | {{{3}}} }}]]{{ #if: {{{l3|}}} | [[Category:See also transclusions needing to be updated]] }}
+
}}{{ #if: {{{12|}}} | , {{ #if: {{{13|}}} || and }} {{autolink|{{{12}}}}}
  }}
+
}}{{ #if: {{{13|}}} | , {{ #if: {{{14|}}} || and }} {{autolink|{{{13}}}}}
}}{{
+
}}{{ #if: {{{14|}}} | , {{ #if: {{{15|}}} || and }} {{autolink|{{{14}}}}}
  #if: {{{4|}}} | {{
+
}}{{ #if: {{{15|}}} | , and {{autolink|{{{15}}}}}
    #if: {{{5|}}} | , | &nbsp;and
+
}}{{ #if: {{{16|}}} | — '''<br />Error: [[Template:See also|Too many links specified (maximum is 15)]]'''
  }} {{ #if: {{ #pos: {{{4}}} | {{!((}} }} | {{{4}}}
+
}}}}<noinclude>
    | [[{{{4}}}|{{ #if: {{{l4|}}} | {{{l4}}} | {{{4}}} }}]]{{ #if: {{{l4|}}} | [[Category:See also transclusions needing to be updated]] }}
 
  }}
 
}}{{
 
  #if: {{{5|}}} | {{
 
    #if: {{{6|}}} | , | &nbsp;and
 
  }} {{ #if: {{ #pos: {{{5}}} | {{!((}} }} | {{{5}}}
 
    | [[{{{5}}}|{{ #if: {{{l5|}}} | {{{l5}}} | {{{5}}} }}]]{{ #if: {{{l5|}}} | [[Category:See also transclusions needing to be updated]] }}
 
  }}
 
}}{{
 
  #if: {{{6|}}} | {{
 
    #if: {{{7|}}} | , | &nbsp;and
 
  }} {{ #if: {{ #pos: {{{6}}} | {{!((}} }} | {{{6}}}
 
    | [[{{{6}}}|{{ #if: {{{l6|}}} | {{{l6}}} | {{{6}}} }}]]{{ #if: {{{l6|}}} | [[Category:See also transclusions needing to be updated]] }}
 
  }}
 
}}{{
 
  #if: {{{7|}}} | {{
 
    #if: {{{8|}}} | , | &nbsp;and
 
  }} {{ #if: {{ #pos: {{{7}}} | {{!((}} }} | {{{7}}}
 
    | [[{{{7}}}|{{ #if: {{{l7|}}} | {{{l7}}} | {{{7}}} }}]]{{ #if: {{{l7|}}} | [[Category:See also transclusions needing to be updated]] }}
 
  }}
 
}}{{
 
  #if: {{{8|}}} | {{
 
    #if: {{{9|}}} | , | &nbsp;and
 
  }} {{ #if: {{ #pos: {{{8}}} | {{!((}} }} | {{{8}}}
 
    | [[{{{8}}}|{{ #if: {{{l8|}}} | {{{l8}}} | {{{8}}} }}]]{{ #if: {{{l8|}}} | [[Category:See also transclusions needing to be updated]] }}
 
  }}
 
}}{{
 
  #if: {{{9|}}} | {{
 
    #if: {{{10|}}} | , | &nbsp;and
 
  }} {{ #if: {{ #pos: {{{9}}} | {{!((}} }} | {{{9}}}
 
    | [[{{{9}}}|{{ #if: {{{l9|}}} | {{{l9}}} | {{{9}}} }}]]{{ #if: {{{l9|}}} | [[Category:See also transclusions needing to be updated]] }}
 
  }}
 
}}{{
 
  #if: {{{10|}}} | {{
 
    #if: {{{11|}}} | , | &nbsp;and
 
  }} {{ #if: {{ #pos: {{{10}}} | {{!((}} }} | {{{10}}}
 
    | [[{{{10}}}|{{ #if: {{{l10|}}} | {{{l10}}} | {{{10}}} }}]]{{ #if: {{{l10|}}} | [[Category:See also transclusions needing to be updated]] }}
 
  }}
 
}}{{
 
  #if: {{{11|}}} | {{
 
    #if: {{{12|}}} | , | &nbsp;and
 
  }} {{ #if: {{ #pos: {{{11}}} | {{!((}} }} | {{{11}}}
 
    | [[{{{11}}}|{{ #if: {{{l11|}}} | {{{l11}}} | {{{11}}} }}]]{{ #if: {{{l11|}}} | [[Category:See also transclusions needing to be updated]] }}
 
  }}
 
}}{{
 
  #if: {{{12|}}} | {{
 
    #if: {{{13|}}} | , | &nbsp;and
 
  }} {{ #if: {{ #pos: {{{12}}} | {{!((}} }} | {{{12}}}
 
    | [[{{{12}}}|{{ #if: {{{l12|}}} | {{{l12}}} | {{{12}}} }}]]{{ #if: {{{l12|}}} | [[Category:See also transclusions needing to be updated]] }}
 
  }}
 
}}{{
 
  #if: {{{13|}}} | {{
 
    #if: {{{14|}}} | , | &nbsp;and
 
  }} {{ #if: {{ #pos: {{{13}}} | {{!((}} }} | {{{13}}}
 
    | [[{{{13}}}|{{ #if: {{{l13|}}} | {{{l13}}} | {{{13}}} }}]]{{ #if: {{{l13|}}} | [[Category:See also transclusions needing to be updated]] }}
 
  }}
 
}}{{
 
  #if: {{{14|}}} | {{
 
    #if: {{{15|}}} | , | &nbsp;and
 
  }} {{ #if: {{ #pos: {{{14}}} | {{!((}} }} | {{{14}}}
 
    | [[{{{14}}}|{{ #if: {{{l14|}}} | {{{l14}}} | {{{14}}} }}]]{{ #if: {{{l14|}}} | [[Category:See also transclusions needing to be updated]] }}
 
  }}
 
}}{{
 
  #if: {{{15|}}} | , and {{ #if: {{ #pos: {{{15}}} | {{!((}} }} | {{{15}}}
 
    | [[{{{15}}}|{{ #if: {{{l15|}}} | {{{l15}}} | {{{15}}} }}]]{{ #if: {{{l15|}}} | [[Category:See also transclusions needing to be updated]] }}
 
  }}
 
}}{{
 
  #if: {{{16|}}}
 
  | — '''<br />Error: [[Template:See also|Too many links specified (maximum is 15)]]'''
 
}}</div><noinclude>
 
 
{{Documentation}}</noinclude>
 
{{Documentation}}</noinclude>

Revision as of 06:15, 18 November 2017