Difference between revisions of "Template:Main article"

From Kerbal Space Program Wiki
Jump to: navigation, search
m (* italicsed. + usage.)
m (added italian)
 
(13 intermediate revisions by 9 users not shown)
Line 1: Line 1:
:''→ Main article: [[{{{1}}}|{{{2|{{{1}}}}}}]]''
+
:''→ {{lang
<noinclude>
+
  |en=Main article:
== Usage ==
+
  |de=Hauptartikel:
<nowiki>{{main article|Target}}</nowiki>
+
  |es=Artículo principal:
<nowiki>{{main article|Target|Description}}</nowiki>
+
  |ru=Основная статья:
 +
  |hu=Főcikk:
 +
  |fr=Article principal :
 +
  |ja=メイン記事:
 +
  |ko=원문 :
 +
  |it=Articolo principale:
 +
}} {{#if: {{{1<includeonly>|</includeonly>}}}|[[:{{{1}}}|{{{2|{{{1}}}}}}]]|{{{2}}}}}''<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.
  
[[Category:Templates]]
+
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 ==
 +
{{Parameter table|parameters=
 +
{{Parameter row|1|Target page name if in this wiki.|Not set}}
 +
{{Parameter row|2|Link text.|{{{1}}}}}
 +
}}
 +
 
 +
== Examples ==
 +
{| class="wikitable"
 +
! Code
 +
! Example
 +
! Result
 +
|-
 +
| class="mw-code" | <nowiki>{{Main article|Target}}</nowiki>
 +
| class="mw-code" | <nowiki>{{Main article|Synchronous orbit}}</nowiki>
 +
| {{Main article|Synchronous orbit}}
 +
|-
 +
| class="mw-code" | <nowiki>{{Main article|Target|Description}}</nowiki>
 +
| class="mw-code" | <nowiki>{{Main article|Synchronous orbit|Stationary orbit}}</nowiki>
 +
| {{Main article|Synchronous orbit|Stationary orbit}}
 +
|-
 +
| class="mw-code" | <nowiki>{{Main article||Description}}</nowiki>
 +
| class="mw-code" | <nowiki>{{Main article||{{Wikipedia|Synchronous orbit}}}}</nowiki>
 +
| {{Main article||{{Wikipedia|Synchronous orbit}}}}
 +
|}
 +
 
 +
== See also ==
 +
* {{Tl|See also}} with a similar functionality
 +
 
 +
[[Category:Cross-reference templates]]
 
</noinclude>
 
</noinclude>

Latest revision as of 18:29, 21 February 2018

→ 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: Synchronous orbit
{{Main article|Target|Description}} {{Main article|Synchronous orbit|Stationary orbit}}
→ Main article: Stationary orbit
{{Main article||Description}} {{Main article||{{Wikipedia|Synchronous orbit}}}}
→ Main article: Synchronous orbit on Wikipedia

See also

  • {{See also}} with a similar functionality