Difference between revisions of "Template:Main article"
From Kerbal Space Program Wiki
m (*renamed Parameter Table to Parameter table;) |
m (Eliminate an empty paragraph being added when transcluded) |
||
Line 8: | Line 8: | ||
|ja=メイン記事: | |ja=メイン記事: | ||
|ko=원문 : | |ko=원문 : | ||
− | }} {{#if: {{{1<includeonly>|</includeonly>}}}|[[:{{{1}}}|{{{2|{{{1}}}}}}]]|{{{2}}}}}'' | + | }} {{#if: {{{1<includeonly>|</includeonly>}}}|[[:{{{1}}}|{{{2|{{{1}}}}}}]]|{{{2}}}}}''<noinclude> |
− | <noinclude> | ||
---- | ---- | ||
Adds a link to the main article. It is usually placed at the beginning of a paragraph which is further explained in the referenced article. | Adds a link to the main article. It is usually placed at the beginning of a paragraph which is further explained in the referenced article. |
Revision as of 12:26, 4 June 2015
- → Main article: [[:{{{1}}}|{{{1}}}]]
Adds a link to the main article. It is usually placed at the beginning of a paragraph which is further explained in the referenced article.
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).
Parameters
# | Optional | Description | Default |
---|---|---|---|
1 | Yes | Target page name if in this wiki. | Not set |
2 | Yes | Link text. | {{{1}}} |
Examples
Code | Example | Result |
---|---|---|
{{Main article|Target}} | {{Main article|Synchronous orbit}} |
|
{{Main article|Target|Description}} | {{Main article|Synchronous orbit|Stationary orbit}} |
|
{{Main article||Description}} | {{Main article||{{Wikipedia|Synchronous orbit}}}} |
|
See also
- {{See also}} with a similar functionality