Template:Main
From Vigyanwiki
- Main article{{{3}}}: {{{3}}}
This template employs intricate features of template syntax.
You are encouraged to familiarise yourself with its setup and parser functions before editing the template. If your edit causes unexpected problems, please undo it quickly, as this template may appear on a large number of pages. You can conduct experiments, and should test all major changes, in either this template's sandbox, the general template sandbox, or your user space before changing anything here. |
- Please be mindful of the talk page discussions that have determined Template:Main's appearance.
Purpose of template
When Wikipedia articles become too large, subarticles are usually created. This template, used in the subarticle, uses the name of the main article as a parameter to produce a link to the main article:
{{main|Article}}
will produce
- Main article{{{3}}}: {{ safesubst:p{{ safesubst:#ifArticle:Article{{{3}}}|1|2}}|{{{3}}}|}}
To reference multiple articles, the {{main articles}} template can be used instead, as so:
{{main articles}} [[a]], [[b]], [[c]]
which produces:
The following two are meant to be used in connection with each other:
- At the top of a brief section concerning a subject that has a more detailed article (this is the only form specified by the Wikipedia Manual of Style);
- or at the top of the specialized article, to refer to the more general article: Template:Tiwt
- at the top or bottom of a section of the more general article, to refer to the specialized article: Template:Tiwt
The following set of two is an alternative: