Difference between revisions of "Template:See also"
Dinoguy1000 (talk | contribs) ({{Hatnote}} instead of a hardcoded <div>) |
(Restoring revision 4791543 by User:Dinoguy1000 on 2021-10-11 11:20:54. "increase to 20 items for Destroys Monster Cards (this needs to be a module instead so it can support any number of items)") |
||
Line 15: | Line 15: | ||
}}{{ #if: {{{13|}}} | , {{ #if: {{{14|}}} || and }} {{autolink|{{{13}}}}} | }}{{ #if: {{{13|}}} | , {{ #if: {{{14|}}} || and }} {{autolink|{{{13}}}}} | ||
}}{{ #if: {{{14|}}} | , {{ #if: {{{15|}}} || and }} {{autolink|{{{14}}}}} | }}{{ #if: {{{14|}}} | , {{ #if: {{{15|}}} || and }} {{autolink|{{{14}}}}} | ||
− | }}{{ #if: {{{15|}}} | , and {{autolink|{{{15}}}}} | + | }}{{ #if: {{{15|}}} | , {{ #if: {{{16|}}} || and }} {{autolink|{{{15}}}}} |
− | }}{{ #if: {{{16|}}} | — '''<br />Error: [[Template:See also|Too many links specified (maximum is | + | }}{{ #if: {{{16|}}} | , {{ #if: {{{17|}}} || and }} {{autolink|{{{16}}}}} |
+ | }}{{ #if: {{{17|}}} | , {{ #if: {{{18|}}} || and }} {{autolink|{{{17}}}}} | ||
+ | }}{{ #if: {{{18|}}} | , {{ #if: {{{19|}}} || and }} {{autolink|{{{18}}}}} | ||
+ | }}{{ #if: {{{19|}}} | , {{ #if: {{{20|}}} || and }} {{autolink|{{{19}}}}} | ||
+ | }}{{ #if: {{{20|}}} | , and {{autolink|{{{20}}}}} | ||
+ | }}{{ #if: {{{21|}}} | — '''<br />Error: [[Template:See also|Too many links specified (maximum is 20)]]''' | ||
}}}}<noinclude> | }}}}<noinclude> | ||
{{Documentation}}</noinclude> | {{Documentation}}</noinclude> |
Revision as of 02:28, 15 March 2023
{{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]]}}
|