Difference between revisions of "Template:Main"
Dinoguy1000 (talk | contribs) m (Protected "Template:Main": High traffic page ([Edit=Allow only administrators] (indefinite) [Move=Allow only administrators] (indefinite))) |
m (Includeonly the template to avoid errors on the template pages) |
||
Line 1: | Line 1: | ||
− | {{ | + | <includeonly>{{#invoke:Labelled list hatnote|labelledList|Main article|Main articles|Main page|Main pages}}</includeonly><noinclude> |
− | + | {{documentation}} | |
− | + | <!-- Categories go on the /doc subpage, and interwikis go on Wikidata. --> | |
− | + | </noinclude> | |
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− |
Revision as of 22:34, 7 November 2021
{{Main}}
is used below section titles to explain where the main article on the subject is.
Usage
{{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
Code | Result |
---|---|
{{Main}}
|
|
{{Main|Article}}
|
|
{{Main|Article|Article}}
|
|
{{Main|Article|Article|Article}}
|
|
{{Main|Article|[[Article|Alternate title]]}}
|
|
{{Main|Article|Article|[[Article|Alternate title]]}}
|