13,748
edits
No edit summary |
No edit summary |
||
Line 1: | Line 1: | ||
:''{{#if:{{{see|}}}|See also|Main article{{#if:{{{2|}}}|s}}}}: [[{{{1}}}|{{{l1|{{{1}}}}}}]]{{#if:{{{2| }}} | :''{{#if:{{{see|}}}|See also|Main article{{#if:{{{2|}}}|s}}}}: [[{{#if:{{{wiki|}}}|{{{wiki}}}:}}{{{1}}}|{{{l1|{{{1}}}}}}]]{{#if:{{{2| }}} | ||
|{{#if:{{{3|}}}|, | and }}[[{{{2}}}|{{{l2|{{{2}}}}}}]]}}{{#if:{{{3|}}} | |{{#if:{{{3|}}}|, | and }}[[{{#if:{{{wiki|}}}|{{{wiki}}}:}}{{{2}}}|{{{l2|{{{2}}}}}}]]}}{{#if:{{{3|}}} | ||
|{{#if:{{{4|}}}|, |, and }}[[{{{3}}}|{{{l3|{{{3}}}}}}]]}}{{#if:{{{4|}}} | |{{#if:{{{4|}}}|, |, and }}[[{{#if:{{{wiki|}}}|{{{wiki}}}:}}{{{3}}}|{{{l3|{{{3}}}}}}]]}}{{#if:{{{4|}}} | ||
|{{#if:{{{5|}}}|, |, and }}[[{{{4}}}|{{{l4|{{{4}}}}}}]]}}{{#if:{{{5|}}} | |{{#if:{{{5|}}}|, |, and }}[[{{#if:{{{wiki|}}}|{{{wiki}}}:}}{{{4}}}|{{{l4|{{{4}}}}}}]]}}{{#if:{{{5|}}} | ||
|{{#if:{{{6|}}}|, |, and }}[[{{{5}}}|{{{l5|{{{5}}}}}}]]}}{{#if:{{{6|}}} | |{{#if:{{{6|}}}|, |, and }}[[{{#if:{{{wiki|}}}|{{{wiki}}}:}}{{{5}}}|{{{l5|{{{5}}}}}}]]}}{{#if:{{{6|}}} | ||
|{{#if:{{{7|}}}|, |, and }}[[{{{6}}}|{{{l6|{{{6}}}}}}]]}}{{#if:{{{7|}}} | |{{#if:{{{7|}}}|, |, and }}[[{{#if:{{{wiki|}}}|{{{wiki}}}:}}{{{6}}}|{{{l6|{{{6}}}}}}]]}}{{#if:{{{7|}}} | ||
|{{#if:{{{8|}}}|, |, and }}[[{{{7}}}|{{{l7|{{{7}}}}}}]]}}{{#if:{{{8|}}} | |{{#if:{{{8|}}}|, |, and }}[[{{#if:{{{wiki|}}}|{{{wiki}}}:}}{{{7}}}|{{{l7|{{{7}}}}}}]]}}{{#if:{{{8|}}} | ||
|{{#if:{{{9|}}}|, |, and }}[[{{{8}}}|{{{l8|{{{8}}}}}}]]}}{{#if:{{{9|}}} | |{{#if:{{{9|}}}|, |, and }}[[{{#if:{{{wiki|}}}|{{{wiki}}}:}}{{{8}}}|{{{l8|{{{8}}}}}}]]}}{{#if:{{{9|}}} | ||
|{{#if:{{{10|}}}|, |, and }}[[{{{9}}}|{{{l9|{{{9}}}}}}]]}}{{#if:{{{10|}}} | |{{#if:{{{10|}}}|, |, and }}[[{{#if:{{{wiki|}}}|{{{wiki}}}:}}{{{9}}}|{{{l9|{{{9}}}}}}]]}}{{#if:{{{10|}}} | ||
|, and [[{{{10}}}|{{{l10|{{{10}}}}}}]]}}''{{#if:{{{11|}}}|  (too many parameters in {{[[Template: | |, and [[{{#if:{{{wiki|}}}|{{{wiki}}}:}}{{{10}}}|{{{l10|{{{10}}}}}}]]}}''{{#if:{{{11| }}}|  (too many parameters in {{[[Template:main|main]]}})}}<noinclude> __NOTOC__ | ||
== Usage == | == Usage == | ||
To link to a "main article" on a topic, use <nowiki>{{Main|Title of other article}}</nowiki>. | To link to a "main article" on a topic, use <nowiki>{{Main|Title of other article}}</nowiki>. | ||
=== Advanced | === Advanced usage (multiple main articles) === | ||
For multiple main articles, use <code><nowiki>{{Main|Main Article 1|Main Article 2}}</nowiki></code>. Up to ten main articles may be listed. | For multiple main articles, use <code><nowiki>{{Main|Main Article 1|Main Article 2}}</nowiki></code>. Up to ten main articles may be listed. | ||
=== Advanced | === 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><nowiki>{{Main | ||
Line 24: | Line 24: | ||
}}</nowiki></pre> | }}</nowiki></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) === | |||
This template is also capable of linking to another wiki. '''Note''': To link articles in Destinypedia, 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> | |||
{{Main | |||
|wiki=starwars | |||
|1=Yoda | |||
}} | |||
</pre> | |||
=== Example === | |||
This template also has an additional feature. Below is an example | |||
*<code>1=</code> refers to the actual link. | |||
*<code>l1=</code> refers to an optional yet customisable title for the link. | |||
<pre> | |||
{{Main | |||
|wiki=starwars | |||
|1=Yoda | |||
|l1=Green Guy | |||
}} | |||
</pre> | |||
=== "See also" === | === "See also" === |