Template:Main: Difference between revisions

From The Royal Court
m (Includeonly the template to avoid errors on the template pages)
 
Warcraft.wiki.gg>Surafbrov
mNo edit summary
Line 1: Line 1:
<includeonly>{{#invoke:Labelled list hatnote|labelledList|Main article|Main articles|Main page|Main pages}}</includeonly><noinclude>
:<span class="noexcerpt" data-nosnippet>''Main article{{#if:{{{2|}}}|s|}}: [[{{{1|}}}|{{{label1|{{{1|}}}}}}]]{{#if:{{{2|}}}|, [[{{{2|}}}|{{{label2|{{{2|}}}}}}]]{{#if:{{{3|}}}|, [[{{{3|}}}|{{{label3|{{{3|}}}}}}]]{{#if:{{{4|}}}|, [[{{{4|}}}|{{{label4|{{{4|}}}}}}]]|}}|}}|}}''</span><noinclude>[[Category:Redirection and link templates|{{PAGENAME}}]]
{{documentation}}
 
<!-- Categories go on the /doc subpage, and interwikis go on Wikidata. -->
 
</noinclude>
{| class="darktable zebra"
! Parameter || Description || Usage
|-
| <code>1</code> - <code>4</code> || The articles you want to link to. Supports up to four links. || <nowiki>{{Main|Thrall|Sylvanas}}</nowiki><br>{{Main|Thrall|Sylvanas}}
|-
| <code>labelX</code> || X being a number 1-4; change the link text to something else || <nowiki>{{Main|Thrall|label1=Go'el}}</nowiki><br>{{Main|Thrall|label1=Go'el}}
|}
 
When linking to a section of an article, e.g. <code><nowiki>{{Main|Thrall#Biography}}</nowiki></code>, it will look like this:
 
{{Main|Thrall#Biography}}
 
To display a cleaner link for readers, use the " § " character like so: <code><nowiki>{{Main|Thrall#Biography|label1=Thrall § Biography}}</nowiki></code>
 
{{Main|Thrall#Biography|label1=Thrall § Biography}}
 
Sometimes the main article name does not need to be included for a section like [[Mount#Augmenting a mount]], so the following code will work: <code><nowiki>{{Main|Mount#Augmenting a mount|label1=Augmenting a mount}}</nowiki></code>
 
{{Main|Mount#Augmenting a mount|label1=Augmenting a mount}}</noinclude>

Revision as of 07:38, 20 February 2024

Main article: [[|]]


Parameter Description Usage
1 - 4 The articles you want to link to. Supports up to four links. {{Main|Thrall|Sylvanas}}
Main articles: Thrall, Sylvanas
labelX X being a number 1-4; change the link text to something else {{Main|Thrall|label1=Go'el}}
Main article: Go'el

When linking to a section of an article, e.g. {{Main|Thrall#Biography}}, it will look like this:

Main article: Thrall#Biography

To display a cleaner link for readers, use the " § " character like so: {{Main|Thrall#Biography|label1=Thrall § Biography}}

Main article: Thrall § Biography

Sometimes the main article name does not need to be included for a section like Mount#Augmenting a mount, so the following code will work: {{Main|Mount#Augmenting a mount|label1=Augmenting a mount}}

Main article: Augmenting a mount