Toggle menu
Toggle preferences menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

Template:Related class: Difference between revisions

Template page
Expand documentation
Set background to design-token.
 
(9 intermediate revisions by 5 users not shown)
Line 1: Line 1:
{| style="padding:0.5em;float:right; width:210px; border: 1px solid #666666; margin-left:1em; margin-bottom:1em; background-color:#222222; background-image: linear-gradient(#101010, #262626); font-size:90%"
<includeonly>{| style="float: right; clear: right; margin-left: 1em; margin-bottom: 1em; border: 1px solid #666666; padding: 0.5em; width: 210px; background-color: var(--background-color-base); font-size: 0.9em;"
|-
| style="vertical-align:top; padding-top:6px;" | [[File:Logo classes.png|left|65px]]
| EVE University offers {{#if: {{{2|}}} | [[classes]] | a [[classes{{!}}class]] }} on:
|-  
|-  
| colspan=2 style="font-weight:normal" | <ul>{{#if: {{{5|}}} | <li>[[{{{1}}}]]</li><li>[[{{{2}}}]]</li><li>[[{{{3}}}]]</li><li>[[{{{4}}}]]</li><li>[[{{{5}}}]]</li> | {{#if: {{{4|}}} | <li>[[{{{1}}}]]</li><li>[[{{{2}}}]]</li><li>[[{{{3}}}]]</li><li>[[{{{4}}}]]</li> | {{#if: {{{3|}}} | <li>[[{{{1}}}]]</li><li>[[{{{2}}}]]</li><li>[[{{{3}}}]]</li> | {{#if: {{{2|}}} | <li>[[{{{1}}}]]</li><li>[[{{{2}}}]]</li> | {{#if: {{{1|}}} | <li>[[{{{1}}}]]</li> | <li>[[:Category:Classes|Tons of fascinating topics]] }} }} }} }} }}</ul>
| {{#show: UniWiki:EVE University Graphics|?Has EVE University emblem#60px}}
|}<noinclude>
| EVE University offers<br>{{#if: {{{2|}}} | [[classes]] | a [[classes{{!}}class]] }} on:
 
|-
== Documentation ==
| colspan=2 | <ul>
This is a template to point readers towards pertinent [[classes]] offered by EVE University. It produces a small text box with links on the right-hand margin of a page, and should be placed near the top of a page (but below any infoboxes).
{{#if: {{{1|}}} | <li>[[{{{1}}}]]</li> | <li>[[:Category:Classes|Tons of fascinating topics]] }}
 
{{#if: {{{2|}}} | <li>[[{{{2}}}]]</li> }}
=== Usage ===
{{#if: {{{3|}}} | <li>[[{{{3}}}]]</li> }}
{{code|<nowiki>{{ related class | class 1 | class 2 | class 3 | class 4 | class 5 }}</nowiki>}}
{{#if: {{{4|}}} | <li>[[{{{4}}}]]</li> }}
The template can link up to five classes (obviously only link to as many as you think pertinent!). Don't enclose the names of the classes with square brackets; the template will do that for you. Make sure you get the spelling and capitalisation of the classes right.
{{#if: {{{5|}}} | <li>[[{{{5}}}]]</li> }}
 
</ul>
You can find a list of all classes offered by EVE University at the [[Syllabus Library]], [[EVE University Class Library|Class Library]], or [[:Category:Classes|Classes category]].
|}</includeonly>
 
<noinclude>{{documentation}}</noinclude>
==== Advanced usage ====
The syntax above should be sufficient for normal use, but if the classes you would like to link to have very long and cumbersome names, you can use [http://en.wikipedia.org/wiki/Wikipedia:Piped_link piped links] to shorten them. However, as you can't use the pipe character (<code>|</code>) to denote a piped link (as the template will think you are passing it the names of two different classes), you have to use the <code>{{t|!}}</code> template instead:
{{code|<nowiki>full class name{{!}}short name</nowiki>}}
 
==== Examples ====
<code><nowiki>{{related class | Jump Clones 101 }}</nowiki></code>: {{related class | Jump Clones 101 }}
<div style="clear:both"></div>
<code><nowiki>{{related class | Ratting 101 | Missioning 101 | Freighter 101 | Invention 101 }}</nowiki></code>: {{related class | Ratting 101 | Missioning 101 | Freighter 101 | Invention 101 }}
<div style="clear:both"></div>
<code><nowiki>{{related class | Logistics 103: Carriers, Triage, Advanced Tactics{{!}}Logistics 103 }}</nowiki></code>: {{related class | Logistics 103: Carriers, Triage, Advanced Tactics{{!}}Logistics 103 }}
 
[[Category:Template]]