Template:Main/doc

From Zoophilia Wiki
Jump to navigationJump to search
This template is for linking to main content. For the mainspace detection template, see Template:Main other.

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, … or label 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 case L, for example, l1, not L1.
  • selfref – if set to yes, y, true or 1, adds the CSS class selfref 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 on Zoophilia Wiki: namespace pages.

Examples

Underscores (_) 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

This is the TemplateData for this template, used by TemplateWizard, VisualEditor and other tools.
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:'

Template parameters

This template prefers inline formatting of parameters.

ParameterDescriptionTypeStatus
Page 11

The name of the first page to link to; if not specified, the current page name (with no namespace prefix) is used.

Example
Hani Miletski
Page namerequired
Label 1l1 label 1

The link text for the first linked page

Example
Dr. Hani Miletski
Lineoptional
Page 22

The name of the second page to link to

Page nameoptional
Label 2l2 label 2

The link text for the second linked page

Lineoptional
Page 33

The name of the third page to link to

Page nameoptional
Label 3l3 label 3

The link text for the third linked page

Lineoptional
Page 44

The name of the fourth page to link to

Page nameoptional
Label 4l4 label 4

The link text for the fourth linked page

Lineoptional
Page 55

The name of the fifth page to link to

Page nameoptional
Label 5l5 label 5

The link text for the fifth linked page

Lineoptional
Self referenceselfref

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

Booleanoptional

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