Template:Main/doc
< Template:Main
Revision as of 19:12, 2 September 2018 by Dinoguy1000 (talk | contribs) (don't encourage adding link syntax, since linking is done automatically with {{Autolink}})
This is a documentation subpage for Template:Main. It contains usage information, categories and other content that is not part of the original template page. |
{{Main}}
is used below section titles to explain where the main article on the subject is.
Usage[edit]
{{Main|Article 1|...|''Article 15''}}
- Up to 15 parameters are permitted: only the first is mandatory.
- The list is dynamically generated so that the word "and" is always placed between the final two entries.
- If more than 15 entries are supplied, a message will be displayed pointing out the problem.
- NB
- no newlines are permitted else the article links will be broken.
Example[edit]
Code | Result |
---|---|
{{Main}}
|
|
{{Main|Article}}
|
|
{{Main|Article|Article}}
|
|
{{Main|Article|Article|Article}}
|
|
{{Main|Article|[[Article|Alternate title]]}}
|
|
{{Main|Article|Article|[[Article|Alternate title]]}}
|