Template:Main

From LifeWiki
Revision as of 06:58, 19 April 2009 by Sokwe (talk | contribs) (Added an error message when no parameters are given.)
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 an error.

examples:

{{main|Spaceship}} yields

Main article: Spaceship


{{main|Spaceship|Spaceship Page}} yields

Main article: Spaceship Page


{{main}} yields you must specify an article title when using {{main}}