Difference between revisions of "Template:Main"

From EVE University Wiki
Jump to: navigation, search
(Improved template with alt link text, added documentation and category)
(Moved documentation to Template:Main/doc.)
 
(2 intermediate revisions by one other user not shown)
Line 1: Line 1:
:''Main article: {{#if:{{{2}}}|[[{{{1}}}|{{{2}}}]]|[[{{{1}}}]]}}''<noinclude>
+
<includeonly>:''Main article: {{#if:{{{2|}}}|[[{{{1}}}|{{{2}}}]]|[[{{{1}}}]]}}''</includeonly><noinclude>
== Documentation ==
+
{{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.
+
</noinclude>
=== Syntax ===
 
{{code|<nowiki>{{ main | link | link text }}</nowiki>}}
 
;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 <code>Drones</code> (not <code><nowiki>[[Drones]]</nowiki></code>).
 
;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 ===
 
<code><nowiki>{{main|Drones}}</nowiki></code> gives: {{main|Drones}}
 
 
 
<code><nowiki>{{main|Basic Skills}}</nowiki></code> gives: {{main|Basic Skills}}
 
 
 
<code><nowiki>{{main|Mining#Solo mining}}</nowiki></code> gives: {{main|Mining#Solo mining}}
 
 
 
<code><nowiki>{{main|Mining#Solo mining|All by yourself}}</nowiki></code> gives: {{main|Mining#Solo mining|All by yourself}}
 
 
 
[[Category:Template]]</noinclude>
 

Latest revision as of 02:50, 25 February 2017

Template documentation (for the above template, sometimes hidden or invisible)
Description
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>}}

Parameters
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
See also
  • {{See also}}, a very similar template.
  • {{Hatnote}}, the generic template for these kinds of messages.
Visit Template:Main/doc to edit this text! (How does this work?) (Refresh this text - why?)