Template:Main/doc
This is a documentation subpage for Template:Main. It may contain usage information, categories and other content that is not part of the original template page. |
This template uses Lua: |
When a Zoophilia Wiki article is large, it is often written in summary style. This template is used after the heading of the summary, to link to the subtopic article that has been summarized. Use of this template is not to be used as a substitute for inline links or the {{Further}}
template. The latter is used when the section expounds a specific aspect of the topic instead of summarizing its article. This template should also not be used in lead sections.
Usage
- Basic usage:
{{Main|page}}
- All parameters:
{{Main|page1|page2|page3| … |l1=label1|l2=label2|l3=label3| … |selfref=yes}}
The module which provides the functions for this template can be called directly using #invoke
).
Parameters
1
,2
,3
, … – the pages to link to. If no page names are specified, the current page name is used instead (without the namespace prefix). Categories and files are automatically escaped with the colon trick, and links to sections are automatically formatted as Page § Section, rather than the MediaWiki default of Page#Section.l1
,l2
,l3
, … orlabel 1
,label 2
,label 3
, … – optional labels for each of the pages to link to (providing the same functionality as a piped link). Note that the extra parameters use a lower caseL
, for example,l1
, notL1
.selfref
– if set toyes
,y
,true
or1
, adds the CSS classselfref
to the links. This is used to denote self-references to Zoophilia Wiki. See Template:Selfref for more information. This is only necessary in articles and other content (e.g. templates) that will appear in articles, and need not be added for uses of this template onZoophilia Wiki:
namespace pages.
Examples
_
) between words are not necessary.{{Main|Main Page}}
→{{Main|Main Page#Selected article}}
→{{Main|Main Page#Selected article|l1=Featured page}}
→{{Main|Zoophilia|Zoosexuality|Hani Miletski}}
→{{Main|Main Page|l1=Home|Baneki|l2=VPN service}}
→
Template data
TemplateData for Main
Displays links in italics to a sub-article(s) that are entirely about the topic of the section, following the heading 'Main article:'
Parameter | Description | Type | Status | |
---|---|---|---|---|
Page 1 | 1 | The name of the first page to link to; if not specified, the current page name (with no namespace prefix) is used.
| Page name | required |
Label 1 | l1 label 1 | The link text for the first linked page
| Line | optional |
Page 2 | 2 | The name of the second page to link to | Page name | optional |
Label 2 | l2 label 2 | The link text for the second linked page | Line | optional |
Page 3 | 3 | The name of the third page to link to | Page name | optional |
Label 3 | l3 label 3 | The link text for the third linked page | Line | optional |
Page 4 | 4 | The name of the fourth page to link to | Page name | optional |
Label 4 | l4 label 4 | The link text for the fourth linked page | Line | optional |
Page 5 | 5 | The name of the fifth page to link to | Page name | optional |
Label 5 | l5 label 5 | The link text for the fifth linked page | Line | optional |
Self reference | selfref | Set to "yes" if the template is a self-reference to Zoophilis Wiki that would not make sense on mirrors or forks of the site | Boolean | optional |
See also
- {{Main list}} → For a more comprehensive list, see Article.
- {{Broader}} → For broader coverage of this topic, see Article.
- {{Excerpt}} (allows transclusion of text, such as an intro section, from one article into another
- {{Further}} → Further information: Article.
- {{Official website}}