Template:Main: Difference between revisions
From Destinypedia, the Destiny wiki
(Created page with ":''Main article{{#if:{{{2|}}}|s}}: [[{{{1}}}|{{{l1|{{{1}}}}}}]]{{#if:{{{2| }}} |{{#if:{{{3|}}}|, | and }}[[{{{2}}}|{{{l2|{{{2}}}}}}]]}}{{#if:{{{3|}}} |{{#if:{{{4...") |
No edit summary |
||
Line 1: | Line 1: | ||
:''Main article{{#if:{{{2|}}}|s}}: [[{{{1}}}|{{{l1|{{{1}}}}}}]]{{#if:{{{2| }}} | :''{{#if:{{{see|}}}|See also|Main article{{#if:{{{2|}}}|s}}}}: [[{{{1}}}|{{{l1|{{{1}}}}}}]]{{#if:{{{2| }}} | ||
|{{#if:{{{3|}}}|, | and }}[[{{{2}}}|{{{l2|{{{2}}}}}}]]}}{{#if:{{{3|}}} | |{{#if:{{{3|}}}|, | and }}[[{{{2}}}|{{{l2|{{{2}}}}}}]]}}{{#if:{{{3|}}} | ||
|{{#if:{{{4|}}}|, |, and }}[[{{{3}}}|{{{l3|{{{3}}}}}}]]}}{{#if:{{{4|}}} | |{{#if:{{{4|}}}|, |, and }}[[{{{3}}}|{{{l3|{{{3}}}}}}]]}}{{#if:{{{4|}}} | ||
Line 25: | Line 25: | ||
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. | ||
[[Category:Templates|{{PAGENAME}}]] | === "See also" === | ||
</noinclude> | To change the wording from "Main article" to "See also", simply add anything in the <code>|see=</code> parameters. Below is an example: | ||
:<code><nowiki>{{Main|see=1|Destiny 1|Destiny 2|Destiny 3|Destiny 4}}</nowiki></code> | |||
::will create: | |||
{{Main|see=1|Destiny 1|Destiny 2|Destiny 3|Destiny 4}} | |||
[[Category:Templates|{{PAGENAME}}]]</noinclude> |
Revision as of 12:38, June 2, 2019
- Main article: [[{{{1}}}|{{{1}}}]]
Usage
To link to a "main article" on a topic, use {{Main|Title of other article}}.
Advanced Usage (Multiple main articles)
For multiple main articles, use {{Main|Main Article 1|Main Article 2}}
. Up to ten main articles may be listed.
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.
{{Main |1=Main Article 1 |l1=Link Title 1 |2=Main Article 2 |l2=Link Title 2 }}
Note that the named parameters are a lowercase "L" and a number, not the number 1 and then another number.
"See also"
To change the wording from "Main article" to "See also", simply add anything in the |see=
parameters. Below is an example: