Template:Main: Difference between revisions

From MozillaWiki
Jump to navigation Jump to search
(recreate this template - please do not delete - I am a Mozilla employee and was just attributing the source. Maybe ask the (confirmed) user/creator before deleting next time?)
 
(Added Template:Documentation.)
 
Line 1: Line 1:
<div style="text-indent:2em;font-style:italic">Main article: [[{{{1}}}]]</div>
<div style="text-indent:2em;font-style:italic">Main article: [[{{{1}}}]]</div><noinclude>
{{documentation}}
</noinclude>

Latest revision as of 13:18, 4 November 2014

Main article: [[{{{1}}}]]
Documentation icon Template documentation[view] [edit] [history] [purge]

Usage

{{main}} displays a link that points the reader towards the more substantial main article for further reading. The output text is indented and italic.

The template is useful, e.g. when an article section takes up something that already is thoroughly explained in a main article, or when an article includes a citation from another article at MozillaWiki. It is meant to make it easier to include internal references, and to lessen the need for over-extensive article sections and parallel articles.

Parameter

There is only one, mandatory parameter, used to specify the main article (1).

Main article

  • 1: The name of the main article

This is the only parameter. No parameter name needs to be entered. Mandatory.

Usage
  • {{main|1}}

Examples

Correct use

Example case What you write What you see
Schematic {{main|1}}
Main article: 1
Textual {{main|Contribute}}
Main article: Contribute

Incorrect use

Example case What you write What you see
No parameter {{main}}
Main article: [[{{{1}}}]]

See also

  • {{main article}} – more complex template for referencing one or more main articles.