Difference between revisions of "Template:Main"

From Starfleet Commander
Jump to navigationJump to search
(Created page with "{| class="plainlinks" style="clear: both; margin-left: 2em; padding: .25em;" | ''Main article: [[{{{1|<span style="color: #FF0000;">Required parameter missing.</span>}}}|{{{2|<sp...")
 
m
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
 
{| class="plainlinks" style="clear: both; margin-left: 2em; padding: .25em;"
 
{| class="plainlinks" style="clear: both; margin-left: 2em; padding: .25em;"
 
| ''Main article: [[{{{1|<span style="color: #FF0000;">Required parameter missing.</span>}}}|{{{2|<span style="color: #FF0000;">Required parameter missing.</span>}}}]]
 
| ''Main article: [[{{{1|<span style="color: #FF0000;">Required parameter missing.</span>}}}|{{{2|<span style="color: #FF0000;">Required parameter missing.</span>}}}]]
|}
+
|}<noinclude>
<noinclude>
 
 
==How to use this template==
 
==How to use this template==
 
This template is for adding a main article link to pages, articles or sections.
 
This template is for adding a main article link to pages, articles or sections.
Line 10: Line 9:
 
:''(required)'' the link to the main article.
 
:''(required)'' the link to the main article.
 
;<tt>text</tt>
 
;<tt>text</tt>
:''(required)'' the text lebel show for the link.
+
:''(required)'' the text label shown for the link.
 
Example<nowiki>: {{Main|Shipyard|Shipyard}} will output:</nowiki><br />
 
Example<nowiki>: {{Main|Shipyard|Shipyard}} will output:</nowiki><br />
 
::''Main article: [[Shipyard|Shipyard]]''
 
::''Main article: [[Shipyard|Shipyard]]''
 
[[Category:Page templates]][[Category:Article templates]][[Category:Section templates]]
 
[[Category:Page templates]][[Category:Article templates]][[Category:Section templates]]
 
</noinclude>
 
</noinclude>

Latest revision as of 19:13, 19 September 2011

How to use this template

This template is for adding a main article link to pages, articles or sections.

{{Main|link|text}}

Parameters

link
(required) the link to the main article.
text
(required) the text label shown for the link.

Example: {{Main|Shipyard|Shipyard}} will output:

Main article: Shipyard