Template:Main: Difference between revisions

From The Blockheads Wiki
>Abcboy
mNo edit summary
>Abcboy
mNo edit summary
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
:''The main article{{#if: {{{2|}}}|s}} for this category {{#if: {{{2|}}}|are|is}} [[{{{1<includeonly>|{{PAGENAME}}</includeonly>}}}]]{{#if: {{{2|}}}||.''}} {{#if: {{{2|}}}|and [[{{{2}}}]].''|}}<noinclude>[[Category:Templates]]</noinclude>
:''Main article{{#if: {{{2|}}}|s}}: [[{{{1<includeonly>|{{PAGENAME}}</includeonly>}}}]]{{#if: {{{2|}}}||}} {{#if: {{{2|}}}|and [[{{{2}}}]]|}}''<noinclude>
This template is used on category pages with another page describing the category topic and on pages with sections with information covered in another article.
 
How to use:
<pre>{{main|''page 1''|''page 2 (optional)''}}</pre>
 
Using just <code><nowiki>{{main}}</nowiki></code> with no input will default to linking to a mainspace page of the same title as the current page. For example, on Category:Food, using <code><nowiki>{{main}}</nowiki></code> will produce a main article link to the page Food.
 
[[Category:Templates]]</noinclude>

Latest revision as of 22:42, 28 August 2014

Main article: [[{{{1}}}]]

This template is used on category pages with another page describing the category topic and on pages with sections with information covered in another article.

How to use:

{{main|''page 1''|''page 2 (optional)''}}

Using just {{main}} with no input will default to linking to a mainspace page of the same title as the current page. For example, on Category:Food, using {{main}} will produce a main article link to the page Food.