Template:See also/doc: Difference between revisions
More actions
Explain more clearly. Even and odd numbers. It is not limited to 4 links. |
No edit summary |
||
| (5 intermediate revisions by 3 users not shown) | |||
| Line 1: | Line 1: | ||
{{Heavily used template}} | {{Uses TemplateStyles|Template:See also/styles.css}} | ||
{{Heavily used template|3=+}} | |||
{{TemplateBox | {{TemplateBox | ||
|1=1 | |1=1 | ||
| Line 32: | Line 33: | ||
<nowiki>{{See also|1=Charts and graphs|3=Graph theory|5=Commons:Chart and graph resources}}</nowiki> | <nowiki>{{See also|1=Charts and graphs|3=Graph theory|5=Commons:Chart and graph resources}}</nowiki> | ||
{{See also|1=Charts and graphs|3=Graph theory|5=Commons:Chart and graph resources}} | {{See also|1=Charts and graphs|3=Graph theory|5=Commons:Chart and graph resources}} | ||
Note that the '''odd numbers''' are for the links, and the '''even numbers''' are for changed link label text. The even number parameters are not necessary if you are not changing the link label text. The number of links is no longer limited to 4 links. The table below can be further expanded. | Note that the '''odd numbers''' are for the links, and the '''even numbers''' are for changed link label text. The even number parameters are not necessary if you are not changing the link label text. The number of links is no longer limited to 4 links. The table below can be further expanded. {{Lua}} | ||
|type=marker | |type=marker | ||
|example= | |example= | ||
|i18n-method=custommediawiki-msg | |i18n-method=custommediawiki-msg | ||
|i18n-mediawiki-msg=seealso | |i18n-mediawiki-msg=seealso | ||
|seealso={{Templates linking contents}} | |seealso=* [[:Template:Cat see also]] | ||
{{Templates linking contents}} | |||
|setscats= | |setscats= | ||
|lines=one | |lines=one | ||
|shorthand=Seealso | |shorthand=Seealso | ||
}}<includeonly> | }} | ||
== Workaround == | |||
In the case of troubles with this template, everything can be written e.g. as follows to avoid the template: | |||
<pre>{{Created with/layout | |||
|logo=System-search.svg | |||
|text=''{{int:Seealso}}'': {{T0|See also/doc|this documentation}} | |||
}}</pre> which will give {{Created with/layout|logo=System-search.svg|text=''{{int:Seealso}}'': {{T0|See_also/doc|this documentation}}}} | |||
<includeonly>{{#ifeq:{{SUBPAGENAME}}|sandbox|| | |||
[[Category:Internal link templates|{{PAGENAME}}]] | [[Category:Internal link templates|{{PAGENAME}}]] | ||
[[Category:Templates using local MediaWiki messages for internationalisation]] | [[Category:Templates using local MediaWiki messages for internationalisation]] | ||
</includeonly> | }}</includeonly> | ||
Latest revision as of 09:20, 18 August 2024
Used to show the localized string 'see also'.
Usage
{{See also |1= |2= }}
Or use the shorthand
Example (from Category:Graphs intro):
{{See also|1=Charts and graphs|3=Graph theory|5=Commons:Chart and graph resources}}
Template parameters
| Parameter | Description | Default | Status | |
|---|---|---|---|---|
1 | link to the first page | empty | required | |
2 | link text for the first page | empty | optional | |
3 | link to a second page | empty | optional | |
4 | link text for the second page | empty | optional | |
5 | link to a third page | empty | optional | |
6 | link text for the third page | empty | optional | |
7 | link to a fourth page | empty | optional | |
8 | link text for the fourth page | empty | optional | |
Additional information
The template is intended to be used in the following namespaces: all namespaces
The template is intended to be used by the following user groups: all users
See also
Templates linking contents
"1-N" means from one to many.
Upwards links
- – "Main gallery" link from gallery or category to 1-N main galleries.
- – "Main category" link from gallery or category to 1-N main categories.
- – (box) Alternative "See category" boxed link from gallery to parent category, with explanation of the role of a gallery page.
Downwards links
- – "Further information" link to 1-N detailed galleries or categories.
Sideways page links
- – (box or inline) "See also" link to 1-N related pages.
- – "For" a single alternative page with explanation.
- – "For" 1-N alternative pages with one or more explanations.
- – As "For2" with an explanation of the current page.
- – As "For multi" with an explanation of the current page.
- – "Not to be confused with" link to 1-N related pages.
- – (box) Internationalized "See also" (or other caption) to related images.
- – (box) Internationalized with icon-links to related images of the same (medical) case.
- – "See" link from gallery to gallery.
Sideways category links
- – (box or inline) "See also Categories" link to 1-N related categories.
- – (box or inline) "Not to be confused with categories" link from category with ambiguous names to 1-N unrelated categories.
Interproject links
- – "Main Wikipedia article" link to 1 article (don't forget the purpose of interwiki links).
- – "See also Wikipedia article" link to 1-N articles (don't forget the purpose of interwiki links).
- Template:Multilingual link – allows to indicate names of versions of same Wikipedia article in many languages and displays one link in interface language.
Localization
This template is localized by utilizing custom MediaWiki namespace messages.
Workaround
In the case of troubles with this template, everything can be written e.g. as follows to avoid the template:
{{Created with/layout
|logo=System-search.svg
|text=''{{int:Seealso}}'': {{T0|See also/doc|this documentation}}
}}which will give