Template:Main/doc: Difference between revisions
Jump to navigation
Jump to search
m (Text replacement - "<includeonly>{{template doc page transcluded}}</includeonly><noinclude>{{template doc page viewed directly}}</noinclude>" to "{{Documentation subpage}}") |
|||
(2 intermediate revisions by the same user not shown) | |||
Line 10: | Line 10: | ||
==Example== | ==Example== | ||
<pre> | <pre> | ||
<nowiki>{{main| | <nowiki>{{main|Saeder-Krupp}}</nowiki> | ||
</pre> | </pre> | ||
Will display: | Will display: | ||
:''Main article: [[ | :''Main article: [[Saeder-Krupp]]'' | ||
(The example can be seen [[ | (The example can be seen [[Saeder-Krupp|here]].) | ||
<includeonly> | <includeonly> |
Latest revision as of 08:38, 12 March 2024
![]() | This is a documentation subpage for Template:Main. It contains usage information, categories and other content that is not part of the original Template page. |
[[Category:Template documentation pages{{#translation:}}]]
Purpose
Some articles are broken out from larger articles as a means of conserving space, easing readability and providing clarity. In those cases, it is proper to link back to the original article from which the subject article is introduced. While behaving similarly to the function of categories, the use of the {{main}} template is to recognize the direct relationship with an article of broader scope.
Usage
To link to a "main article" on a topic, use {{main|The other article}}, replacing 'the other article' with the actual name of the main page.
Example
{{main|Saeder-Krupp}}
Will display:
- Main article: Saeder-Krupp
(The example can be seen here.)