Template:Main

From LifeWiki
Revision as of 03:28, 18 April 2009 by Sokwe (talk | contribs) (New page: {{#If:{{{1|}}}|:<small>''Main article: [[{{{1}}}|{{#if:{{{2|}}}|{{{2}}}|{{{1}}}}}]]''</small>}} <noinclude>This is a small template to link to a main article from a small sub-article on a ...)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

This is a small template to link to a main article from a small sub-article on a different page. It takes as parameters the name of the main article and an optional alternative name (if no alternative name is given then the link text is the title of the main article). If no parameters or blank parameters are given then the template gives no output.

examples:

{{main|Spaceship}} yeilds

Main article: Spaceship


{{main}} yeilds Template loop detected: Template:Main</noinclude>

{{main|Spaceship|Spaceship Page}} yeilds

Main article: Spaceship Page


{{main}} yeilds Template loop detected: Template:Main</noinclude>

{{main}} yeilds


{{main}} yeilds Template loop detected: Template:Main</noinclude>