Template:Main: Difference between revisions

From railML 2 Wiki
Jump to navigation Jump to search
[checked revision][checked revision]
(→‎Example: Expansion)
(Erweitert)
Line 1: Line 1:
<includeonly>''→Main Article: [[{{{1}}}]]</includeonly><noinclude>
<includeonly>''→Main Article: [[{{{1}}}|{{#if:{{{2|}}}|{{{2}}}|1}}]]</includeonly><noinclude>
==Usage==
==Usage==
This template standardizes the indication of an article about a sub topic. E.g., in an article about combustion engines there might be a hint to a separate subarticle about the crankshaft.
This template standardizes the indication of an article about a sub topic. E.g., in an article about combustion engines there might be a hint to a separate subarticle about the crankshaft.
===Arguments===
===Arguments===
This template has one obligatory, unnamed argument for the link target.
This template has two unnamed arguments:
*Obligatory:
**1: Link target
*Ptional:
**2: Link text
===Dependencies===  
===Dependencies===  
This template does not employ or serve any other templates.
This template does not employ or serve any other templates.
Line 11: Line 15:


''→Main Article: [[Crankshaft]]
''→Main Article: [[Crankshaft]]
[[Kategorie:Template]]
<pre>{{main|crankshaft|Forged Crank}}</pre>
delivers
 
{{main|crankshaft|Forged Crank}}
[[Category:Template]]
</noinclude>
</noinclude>

Revision as of 18:57, 2 June 2016

Usage

This template standardizes the indication of an article about a sub topic. E.g., in an article about combustion engines there might be a hint to a separate subarticle about the crankshaft.

Arguments

This template has two unnamed arguments:

  • Obligatory:
    • 1: Link target
  • Ptional:
    • 2: Link text

Dependencies

This template does not employ or serve any other templates.

Example

{{main|Crankshaft}}

delivers

→Main Article: Crankshaft

{{main|crankshaft|Forged Crank}}

delivers

→Main Article: Forged Crank