Template:Main: Difference between revisions

From Destinypedia, the Destiny wiki

No edit summary
No edit summary
Line 26: Line 26:


=== Advanced usage (interwiki link) ===
=== 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]].
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>
<pre>
{{Main
{{Main
Line 37: Line 37:
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 customisable title for the link.
*<code>l1=</code> refers to an optional yet customizable title for the link.
<pre>
<pre>
{{Main
{{Main

Revision as of 19:03, 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.

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. wiki refers to the interwiki prefix of the wiki. For a list of interwiki prefixes, see Special:Interwiki.

{{Main
|wiki=starwars
|1=Yoda
}}

Example

This template also has an additional feature. Below is an example

  • 1= refers to the actual link.
  • l1= refers to an optional yet customizable title for the link.
{{Main
|wiki=starwars
|1=Yoda
|l1=Green Guy
}}

"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}}