Difference between revisions of "Template:Main/Documentation"
m (clarifying variables) |
m |
||
| Line 18: | Line 18: | ||
|l2=Displayed text of link 2 | |l2=Displayed text of link 2 | ||
}}</pre> | }}</pre> | ||
| − | ''Note: The | + | |
| + | {{Notice|'''Note:''' The character 'l' in "l1" is a lowercase 'L', NOT a capital "i" or a "1"}} | ||
== Examples == | == Examples == | ||
Revision as of 07:19, 9 April 2019
This template is used for formatting links to more-detailed articles.
{{main
|Article 1
}}
You can add up to five links, if required.
{{main
|Article 1
|Article 2
|Article 3
}}
By default, the text of the link is set as the name of the page to which it directs. If needed, you can change the text the following way:
{{main
|Article 1
|Article 2
|l1=Displayed text of link 1
|l2=Displayed text of link 2
}}
| Note: The character 'l' in "l1" is a lowercase 'L', NOT a capital "i" or a "1" |
Examples
| Code | Result |
|---|---|
{{Main|Aviation}}
|
|
{{Main|Aviation|Ground vehicles|Fleet}}
|
|
{{Main|Aviation|Ground vehicles|Fleet|l1=Avia|l2=Ground|l3=Navy}}
|

