Difference between revisions of "Template:See also"
Dinoguy1000 (talk | contribs) (allow excluding template-generated uses from the {{autolink}} value tracking) |
Dinoguy1000 (talk | contribs) (categorize error cases) |
||
Line 1: | Line 1: | ||
{{Hatnote|See also: {{ #if: {{{1<includeonly>|</includeonly>}}} | {{Hatnote|See also: {{ #if: {{{1<includeonly>|</includeonly>}}} | ||
| {{autolink|{{{1<noinclude>|{{SITENAME}}</noinclude>}}}|t={{{t|}}}}} | | {{autolink|{{{1<noinclude>|{{SITENAME}}</noinclude>}}}|t={{{t|}}}}} | ||
− | | '''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]]'''[[Category:Empty ((See also)) transclusions]] |
}}{{ #if: {{{2|}}} | {{ #if: {{{3|}}} | , | and }} {{autolink|{{{2}}}|t={{{t|}}}}} | }}{{ #if: {{{2|}}} | {{ #if: {{{3|}}} | , | and }} {{autolink|{{{2}}}|t={{{t|}}}}} | ||
}}{{ #if: {{{3|}}} | , {{ #if: {{{4|}}} || and }} {{autolink|{{{3}}}|t={{{t|}}}}} | }}{{ #if: {{{3|}}} | , {{ #if: {{{4|}}} || and }} {{autolink|{{{3}}}|t={{{t|}}}}} | ||
Line 21: | Line 21: | ||
}}{{ #if: {{{19|}}} | , {{ #if: {{{20|}}} || and }} {{autolink|{{{19}}}|t={{{t|}}}}} | }}{{ #if: {{{19|}}} | , {{ #if: {{{20|}}} || and }} {{autolink|{{{19}}}|t={{{t|}}}}} | ||
}}{{ #if: {{{20|}}} | , and {{autolink|{{{20}}}|t={{{t|}}}}} | }}{{ #if: {{{20|}}} | , and {{autolink|{{{20}}}|t={{{t|}}}}} | ||
− | }}{{ #if: {{{21|}}} | — '''<br />Error: [[Template:See also|Too many links specified (maximum is 20)]]''' | + | }}{{ #if: {{{21|}}} | — '''<br />Error: [[Template:See also|Too many links specified (maximum is 20)]]'''[[Category:((See also)) transclusions with too many parameters]] |
}}}}<noinclude> | }}}}<noinclude> | ||
{{Documentation}}</noinclude> | {{Documentation}}</noinclude> |
Latest revision as of 16:24, 4 May 2023
{{See also}}
is used for small sets of see also information at the head of article sections.
Usage[edit]
{{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[edit]
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]]}}
|