Template:Main: Difference between revisions

m
no edit summary
m (Protected "Template:Main" ([Edit=Allow only autoconfirmed users] (indefinite) [Move=Allow only autoconfirmed users] (indefinite)))
mNo edit summary
Line 8: Line 8:
=== Advanced usage (changing a link's name) ===
=== Advanced usage (changing a link's name) ===
You may want the main article's name to show up differently; named parameters are good for the job.
You may want the main article's name to show up differently; named parameters are good for the job.
<pre><nowiki>{{Main
 
<pre>
{{Main
|1=Main Article 1
|1=Main Article 1
|l1=Link Title 1
|l1=Link Title 1
|2=Main Article 2
|2=Main Article 2
|l2=Link Title 2
|l2=Link Title 2
}}</nowiki></pre>
}}
</pre>
 
Note that the named parameters are a lowercase "L" and a number, ''not'' the number 1 and then another number.
Note that the named parameters are a lowercase "L" and a number, ''not'' the number 1 and then another number.


=== Advanced usage (interwiki link) ===
=== Advanced usage (interwiki link) ===
This template is also capable of linking to another wiki. '''Note''': To link articles in Halopedia, make sure the "wiki" path is removed and make sure the links you added are accurate. <code>wiki</code> refers to the interwiki prefix of the wiki. For a list of interwiki prefixes, see [[Special:Interwiki]].
This template is also capable of linking to another wiki. '''Note''': To link articles in Halopedia, make sure the "wiki" path is removed and make sure the links you added are accurate. <code>wiki</code> refers to the interwiki prefix of the wiki. For a list of interwiki prefixes, see [[Special:Interwiki]].
<pre>
<pre>
{{Main
{{Main
Line 28: Line 33:


=== Example ===
=== Example ===
This template also has an additional feature. Below is an example  
This template also has an additional feature. Below is an example
*<code>1=</code> refers to the actual link.
*<code>1=</code> refers to the actual link.
*<code>l1=</code> refers to an optional yet customizable title for the link.
*<code>l1=</code> refers to an optional yet customizable title for the link.
<pre>
<pre>
{{Main
{{Main