Difference between revisions of "Template:See also"
From Kerbal Space Program Wiki
(*table with examples;) |
|||
(14 intermediate revisions by 6 users not shown) | |||
Line 1: | Line 1: | ||
− | :''→ {{lang|en=See also:|pl=Zobacz również:}} {{#if: {{{1}}}|[[:{{{1}}}|{{{2|{{{1}}}}}}]]|{{{2}}}}}''<noinclude> | + | :''→ {{lang|en=See also:|es=Ver también:|de=Siehe auch:|pl=Zobacz również:|ru=Смотрите также:|hu=Lásd még:|ja=参照:|ko=참고하기: }} {{#if: {{{section|}}}|{{lang|en=“[[:{{{1}}}#{{{section}}}|{{#if: {{{section text|}}}|{{{section text}}}|{{{section}}} }}]]” section in|lang|hu=“[[:{{{1}}}#{{{section}}}|{{#if: {{{section text|}}}|{{{section text}}}|{{{section}}} }}]]” bekezdést a következő cikkből: }}}} {{#if: {{{1<includeonly>|</includeonly>}}}|[[:{{{1}}}|{{{2|{{{1}}}}}}]]|{{{2}}}}}''<noinclude> |
− | == | + | ---- |
+ | Adds a link which references to a similar topic which might be interesting. It is usually placed at the beginning of a paragraph. | ||
+ | |||
+ | It support links to pages in this wiki as well as external links. Usually the complete second parameter text is linked, but own linking can be applied when omitting the first parameter (see the third example). | ||
+ | |||
+ | This template is similar to {{Tl|Main article}}. In most cases the <nowiki>{{Main article}}</nowiki> fits better because it is unknown which similar topics might be interesting. Instead those articles are referenced in the paragraph. Also some articles have a ''See also'' section at the end where some topics are listed, but then without using this template. | ||
+ | |||
+ | == Parameters == | ||
+ | {{Parameter table|name=both|parameters= | ||
+ | {{Parameter row|1|Target page name if in this wiki.|Not set}} | ||
+ | {{Parameter row|2|Link text.|{{{1}}}}} | ||
+ | {{Parameter row|section|Link to a specific section.|Not set}} | ||
+ | {{Parameter row|section text|Link text to the specific section.|Not set/{{{section}}}}} | ||
+ | }} | ||
+ | |||
+ | == Examples == | ||
{| class="wikitable" | {| class="wikitable" | ||
! Code | ! Code | ||
Line 19: | Line 34: | ||
|} | |} | ||
− | [[Category: | + | == See also == |
+ | * {{Tl|Main article}} with a similar functionality | ||
+ | |||
+ | [[Category:Cross-reference templates]] | ||
</noinclude> | </noinclude> |
Latest revision as of 00:09, 23 November 2016
- → See also: [[:{{{1}}}|{{{1}}}]]
Adds a link which references to a similar topic which might be interesting. It is usually placed at the beginning of a paragraph.
It support links to pages in this wiki as well as external links. Usually the complete second parameter text is linked, but own linking can be applied when omitting the first parameter (see the third example).
This template is similar to {{Main article}}. In most cases the {{Main article}} fits better because it is unknown which similar topics might be interesting. Instead those articles are referenced in the paragraph. Also some articles have a See also section at the end where some topics are listed, but then without using this template.
Parameters
#/Name | Optional | Description | Default |
---|---|---|---|
1 | Yes | Target page name if in this wiki. | Not set |
2 | Yes | Link text. | {{{1}}} |
section | Yes | Link to a specific section. | Not set |
section text | Yes | Link text to the specific section. | Not set/{{{section}}} |
Examples
Code | Example | Result |
---|---|---|
{{see also|Target}} | {{see also|Stationary orbit}} |
|
{{see also|Target|Description}} | {{see also|Stationary orbit|Synchronous orbit}} |
|
{{see also||Description}} | {{see also||{{Wikipedia|Synchronous orbit}}}} |
|
See also
- {{Main article}} with a similar functionality