Template:Main: Difference between revisions

From Destinypedia, the Destiny wiki

No edit summary
No edit summary
Line 28: Line 28:
To change the wording from "Main article" to "See also", simply add anything in the <code>|see=</code> parameters. Below is an example:
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>
:<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>
[[Category:Templates|{{PAGENAME}}]]</noinclude>

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