Difference between revisions of "Template:Main"
From EVE University Wiki
(Bug fix) |
(Expanded documentation) |
||
Line 5: | Line 5: | ||
{{code|<nowiki>{{ main | link | link text }}</nowiki>}} | {{code|<nowiki>{{ main | link | link text }}</nowiki>}} | ||
;link | ;link | ||
− | :The name of the page you wish to link to. You can use section links (marked with a # character), but omit the usual square brackets | + | :The name of the page you wish to link to. You can use section links (marked with a # character), but omit the usual square brackets (for instance, to link to the page on [[Drones]], use <code>Drones</code> (not <code><nowiki>[[Drones]]</nowiki></code>). You can separate multi-word titles with either spaces or underscore (<code>_</code>) characters, but spaces are preferable for readability. |
;link text | ;link text | ||
:This parameter is optional. You can use it if you want to display a different text to the raw link (particularly useful if you're linking to a section in an article, as it makes the overall text more readable). | :This parameter is optional. You can use it if you want to display a different text to the raw link (particularly useful if you're linking to a section in an article, as it makes the overall text more readable). | ||
Line 15: | Line 15: | ||
<code><nowiki>{{main|Mining#Solo mining}}</nowiki></code> gives: {{main|Mining#Solo mining}} | <code><nowiki>{{main|Mining#Solo mining}}</nowiki></code> gives: {{main|Mining#Solo mining}} | ||
+ | |||
+ | <code><nowiki>{{main|Incursion_sites#Vanguard_sites}}</nowiki></code> gives: {{main|Incursion_sites#Vanguard_sites}} | ||
<code><nowiki>{{main|Mining#Solo mining|All by yourself}}</nowiki></code> gives: {{main|Mining#Solo mining|All by yourself}} | <code><nowiki>{{main|Mining#Solo mining|All by yourself}}</nowiki></code> gives: {{main|Mining#Solo mining|All by yourself}} | ||
+ | == See also == | ||
+ | *<code>{{t|see also}}</code>, a very similar template. | ||
+ | *<code>{{t|hatnote}}</code>, the generic template for these kinds of messages. | ||
[[Category:Template]]</noinclude> | [[Category:Template]]</noinclude> |
Revision as of 10:04, 6 June 2014
- Main article: [[{{{1}}}]]
Documentation
This is a template which should be used to point to another page on the UniWiki which describes a subject in greater detail. For instance, if you want to only briefly touch on a topic on a page, but want to alert the reader that another page has a more complete treatment, then use this template. Preferably, it should be used just after a section heading.
Syntax
{{ main | link | link text }} |
- link
- The name of the page you wish to link to. You can use section links (marked with a # character), but omit the usual square brackets (for instance, to link to the page on Drones, use
Drones
(not[[Drones]]
). You can separate multi-word titles with either spaces or underscore (_
) characters, but spaces are preferable for readability. - link text
- This parameter is optional. You can use it if you want to display a different text to the raw link (particularly useful if you're linking to a section in an article, as it makes the overall text more readable).
Examples
{{main|Drones}}
gives:
- Main article: Drones
{{main|Basic Skills}}
gives:
- Main article: Basic Skills
{{main|Mining#Solo mining}}
gives:
- Main article: Mining#Solo mining
{{main|Incursion_sites#Vanguard_sites}}
gives:
- Main article: Incursion_sites#Vanguard_sites
{{main|Mining#Solo mining|All by yourself}}
gives:
- Main article: All by yourself