Difference between revisions of "Template:Main article"

From Kerbal Space Program Wiki
Jump to: navigation, search
(*use syntax of see also;)
(*use more specific category; +parameter table; +introduction; +see also;)
Line 1: Line 1:
:''→ {{lang|en=Main article:|de=Hauptartikel:}} {{#if: {{{1}}}|[[:{{{1}}}|{{{2|{{{1}}}}}}]]|{{{2}}}}}''<noinclude>
+
:''→ {{lang|en=Main article:|de=Hauptartikel:}} {{#if: {{{1<includeonly>|</includeonly>}}}|[[:{{{1}}}|{{{2|{{{1}}}}}}]]|{{{2}}}}}''<noinclude>
== Usage ==
+
----
 +
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 ==
 +
{{Parameter Table|parameters=
 +
{{Parameter Row|1|Target page name if in this wiki.|Not set}}
 +
{{Parameter Row|2|Link text.|{{{1}}}}}
 +
}}
 +
 
 +
== Examples ==
 
{| class="wikitable"
 
{| class="wikitable"
 
! Code
 
! Code
Line 19: Line 30:
 
|}
 
|}
  
[[Category:Templates]]
+
== See also ==
 +
* {{Tl|See also}} with a similar functionality
 +
 
 +
[[Category:Cross-reference templates]]
 
</noinclude>
 
</noinclude>

Revision as of 16:16, 16 December 2013

→ 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

Template:Parameter Table

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