Difference between revisions of "Template:Main"
m (Fixing cat.) |
(added example, category) |
||
Line 4: | Line 4: | ||
|{{#if:{{{5|}}}|, |, and }}[[{{{4}}}|{{{l4|{{{4}}}}}}]]}}{{#if:{{{5|}}} | |{{#if:{{{5|}}}|, |, and }}[[{{{4}}}|{{{l4|{{{4}}}}}}]]}}{{#if:{{{5|}}} | ||
|, and [[{{{5}}}|{{{l5|{{{5}}}}}}]]}}''{{#if:{{{6| }}}|  (too many parameters in {{[[Template:main|main]]}})}}</div><noinclude> | |, and [[{{{5}}}|{{{l5|{{{5}}}}}}]]}}''{{#if:{{{6| }}}|  (too many parameters in {{[[Template:main|main]]}})}}</div><noinclude> | ||
+ | ---- | ||
+ | == Usage == | ||
+ | To link to a "main article" on a topic, use <nowiki>{{main|The other article}}</nowiki>. | ||
+ | |||
+ | ==Example== | ||
+ | <pre> | ||
+ | <nowiki>{{otheruses|Knights of the Inner Sphere}}</nowiki> | ||
+ | </pre> | ||
+ | Will display: | ||
+ | :''Main article: [[Knights of the Inner Sphere]]'' | ||
+ | |||
− | + | (The example can be seen [[Free Worlds League Military#Knights of the Inner Sphere|here]]) | |
− | |||
[[Category:Templates|Main]] | [[Category:Templates|Main]] | ||
+ | [[Category:List templates|Main]] | ||
</noinclude> | </noinclude> |
Revision as of 15:11, 28 December 2008
Usage
To link to a "main article" on a topic, use {{main|The other article}}.
Example
{{otheruses|Knights of the Inner Sphere}}
Will display:
- Main article: Knights of the Inner Sphere
(The example can be seen here)