Difference between revisions of "Template:See also"
Dinoguy1000 (talk | contribs) (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) |
Dinoguy1000 (talk | contribs) ({{Hatnote}} instead of a hardcoded <div>) |
||
(5 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
− | + | {{Hatnote|See also: {{ #if: {{{1<includeonly>|</includeonly>}}} | |
− | + | | {{autolink|{{{1<noinclude>|{{SITENAME}}</noinclude>}}}}} | |
− | | {{ | ||
− | |||
− | |||
− | |||
− | |||
| '''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|}}} | , | and }} {{autolink|{{{2}}}}} |
− | + | }}{{ #if: {{{3|}}} | , {{ #if: {{{4|}}} || and }} {{autolink|{{{3}}}}} | |
− | + | }}{{ #if: {{{4|}}} | , {{ #if: {{{5|}}} || and }} {{autolink|{{{4}}}}} | |
− | + | }}{{ #if: {{{5|}}} | , {{ #if: {{{6|}}} || and }} {{autolink|{{{5}}}}} | |
− | + | }}{{ #if: {{{6|}}} | , {{ #if: {{{7|}}} || and }} {{autolink|{{{6}}}}} | |
− | + | }}{{ #if: {{{7|}}} | , {{ #if: {{{8|}}} || and }} {{autolink|{{{7}}}}} | |
− | }}{{ | + | }}{{ #if: {{{8|}}} | , {{ #if: {{{9|}}} || and }} {{autolink|{{{8}}}}} |
− | + | }}{{ #if: {{{9|}}} | , {{ #if: {{{10|}}} || and }} {{autolink|{{{9}}}}} | |
− | + | }}{{ #if: {{{10|}}} | , {{ #if: {{{11|}}} || and }} {{autolink|{{{10}}}}} | |
− | + | }}{{ #if: {{{11|}}} | , {{ #if: {{{12|}}} || and }} {{autolink|{{{11}}}}} | |
− | + | }}{{ #if: {{{12|}}} | , {{ #if: {{{13|}}} || and }} {{autolink|{{{12}}}}} | |
− | + | }}{{ #if: {{{13|}}} | , {{ #if: {{{14|}}} || and }} {{autolink|{{{13}}}}} | |
− | }}{{ | + | }}{{ #if: {{{14|}}} | , {{ #if: {{{15|}}} || and }} {{autolink|{{{14}}}}} |
− | + | }}{{ #if: {{{15|}}} | , and {{autolink|{{{15}}}}} | |
− | + | }}{{ #if: {{{16|}}} | — '''<br />Error: [[Template:See also|Too many links specified (maximum is 15)]]''' | |
− | + | }}}}<noinclude> | |
− | |||
− | |||
− | }}{{ | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | }}{{ | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | }}{{ | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | }}{{ | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | }}{{ | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | }}{{ | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | }}{{ | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | }}{{ | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | }}{{ | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | }}{{ | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | }}{{ | ||
− | |||
− | |||
− | |||
− | }}{{ | ||
− | |||
− | |||
− | }} | ||
{{Documentation}}</noinclude> | {{Documentation}}</noinclude> |
Revision as of 06:15, 18 November 2017
{{See also}}
is used for small sets of see also information at the head of article sections.
Usage
{{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.
- NB
- no newlines are permitted else the article links will be broken.
Example
Code | Result |
---|---|
{{See also}}
|
|
{{See also|[[Article]]}}
|
|
{{See also|[[Article]]|[[Article]]}}
|
|
{{See also|[[Article]]|[[Article]]|[[Article]]}}
|
|
{{See also|[[Article]]|[[Article|Alternate title]]}}
|
|
{{See also|Article|Article|[[Article|Alternate title]]}}
|