Template:Main: Difference between revisions

From Pikmin Fanon
*>Default
No edit summary
 
m (Replaced dablink and made other minor tweaks.)
 
(4 intermediate revisions by 2 users not shown)
Line 1: Line 1:
:''Main article: [[{{{1}}}]]''<noinclude>
:''Main article{{#if:{{{2|}}}|s}}&#58; '''[[{{{1}}}|{{{t1|{{{1}}}}}}]]'''{{#if:{{{2| }}}|{{#if:{{{3|}}}|,&#32;|&#32;and&#32;}}'''[[{{{2}}}|{{{t2|{{{2}}}}}}]]'''}}{{#if:{{{3|}}}|{{#if:{{{4|}}}|,&#32;|,&#32;and&#32;}}'''[[{{{3}}}|{{{t3|{{{3}}}}}}]]'''}}{{#if:{{{4|}}}|{{#if:{{{5|}}}|,&#32;|,&#32;and&#32;}}'''[[{{{4}}}|{{{t4|{{{4}}}}}}]]'''}}{{#if:{{{5|}}}|, and '''[[{{{5}}}|{{{t5|{{{5}}}}}}]]'''}}{{#if:{{{6| }}}|&#32; (too many parameters in {{t|Main}})}}''<noinclude>


Use at the start of a section to link to the main article on that subject.  
==Info==
This template adds a link to the main article for the subheading it is placed in.


[[Category:General wiki templates|{{PAGENAME}}]]
==Parameters==
{| class = "wikitable"
! Parameter || Mandatory || Default || Purpose || Detailed description
|-
! 1
| '''Yes''' ||  || Link 1 || Link to the main article.
|-
! t1
| No ||  || Text 1 || Text to display on the link to the main article.
|-
! 2 - 5
| No ||  || Alternative links || Alternative links to other main articles.
|-
! t2 - t5
| No ||  || Alternative text || Text to display on the alternative links.
|}


</noinclude>
==Skeleton==
<pre>
{{main|<link>|t1=<text>|<other links>|t#=<other links' text>}}
</pre>
 
==Examples==
{| class = "wikitable"
! Code || Result
|-
| <pre>{{main|Main Page}}</pre>
| {{main|Main Page}}
|-
| <pre>{{main|Main Page|t1=The front page}}</pre>
| {{main|Main Page|t1=The front page}}
|-
| <pre>{{main
|Main Page|Talk:Main Page|PikminFanon:About
|t2=Main Page talk|t3=About PikminFanon}}</pre>
| {{main|Main Page|Talk:Main Page|PikminFanon:About|t2=Main Page talk|t3=About Pikmin Fanon}}
|}
 
[[Category:General wiki templates]]</noinclude>

Latest revision as of 21:12, 1 August 2022

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

Info

This template adds a link to the main article for the subheading it is placed in.

Parameters

Parameter Mandatory Default Purpose Detailed description
1 Yes Link 1 Link to the main article.
t1 No Text 1 Text to display on the link to the main article.
2 - 5 No Alternative links Alternative links to other main articles.
t2 - t5 No Alternative text Text to display on the alternative links.

Skeleton

{{main|<link>|t1=<text>|<other links>|t#=<other links' text>}}

Examples

Code Result
{{main|Main Page}}
Main article: Main Page
{{main|Main Page|t1=The front page}}
Main article: The front page
{{main
|Main Page|Talk:Main Page|PikminFanon:About
|t2=Main Page talk|t3=About PikminFanon}}
Main articles: Main Page, Main Page talk, and About Pikmin Fanon