Template:Main/doc: Difference between revisions

From Shadowrun Wiki
Jump to navigation Jump to search
m (1 revision imported)
 
(One intermediate revision by the same user not shown)
Line 10: Line 10:
==Example==
==Example==
<pre>
<pre>
<nowiki>{{main|Knights of the Inner Sphere}}</nowiki>
<nowiki>{{main|Saeder-Krupp}}</nowiki>
</pre>
</pre>
Will display:
Will display:
:''Main article: [[Knights of the Inner Sphere]]''
:''Main article: [[Saeder-Krupp]]''




(The example can be seen [[Free Worlds League Military#Knights of the Inner Sphere|here]].)
(The example can be seen [[Saeder-Krupp|here]].)


<includeonly>
<includeonly>

Latest revision as of 08:38, 12 March 2024

[[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.)