Anonymous user
Template:Main: Difference between revisions
From The Blockheads Wiki
m
no edit summary
>Abcboy mNo edit summary |
>Abcboy mNo edit summary |
||
Line 1: | Line 1: | ||
:''Main article{{#if: {{{2|}}}|s}}: [[{{{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> |