Template:Main: Difference between revisions

From Destinypedia, the Destiny wiki

No edit summary
No edit summary
Line 8: Line 8:
  |{{#if:{{{9|}}}|, |, and }}[[{{{8}}}|{{{l8|{{{8}}}}}}]]}}{{#if:{{{9|}}}
  |{{#if:{{{9|}}}|, |, and }}[[{{{8}}}|{{{l8|{{{8}}}}}}]]}}{{#if:{{{9|}}}
  |{{#if:{{{10|}}}|, |, and }}[[{{{9}}}|{{{l9|{{{9}}}}}}]]}}{{#if:{{{10|}}}
  |{{#if:{{{10|}}}|, |, and }}[[{{{9}}}|{{{l9|{{{9}}}}}}]]}}{{#if:{{{10|}}}
  |, and [[{{{10}}}|{{{l10|{{{10}}}}}}]]}}''{{#if:{{{11| }}}|&#32; (too many parameters in &#123;&#123;[[Template:main|main]]&#125;&#125;)}}<noinclude> __NOTOC__
  |, and [[{{{10}}}|{{{l10|{{{10}}}}}}]]}}''{{#if:{{{11|}}}|&#32; (too many parameters in &#123;&#123;[[Template:Main|main]]&#125;&#125;)}}<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>.

Revision as of 12:42, 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:

{{Main|see=1|Destiny 1|Destiny 2|Destiny 3|Destiny 4}}
will create:
See also: Destiny 1, Destiny 2, Destiny 3, and Destiny 4