Difference between revisions of "Template:Related class"
(Create new template to insert a text box listing relating classes taught by E-UNI) |
(Expand documentation) |
||
Line 6: | Line 6: | ||
| 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> | | 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> | ||
|}<noinclude> | |}<noinclude> | ||
− | + | ||
== Documentation == | == Documentation == | ||
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). | 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). | ||
Line 17: | Line 17: | ||
==== Advanced usage ==== | ==== 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 {{t|!}} template instead | + | 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 ==== | ==== Examples ==== | ||
<code><nowiki>{{related class | Jump Clones 101 }}</nowiki></code>: {{related class | Jump Clones 101 }} | <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 | + | <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]] | [[Category:Template]] |
Revision as of 14:29, 23 June 2014
EVE University offers a class on: | |
Documentation
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).
Usage
{{ related class | class 1 | class 2 | class 3 | class 4 | class 5 }} |
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.
You can find a list of all classes offered by EVE University at the Syllabus Library, Class Library, or Classes category.
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 piped links to shorten them. However, as you can't use the pipe character (|
) 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 {{!}}
template instead:
full class name{{!}}short name |
Examples
{{related class | Jump Clones 101 }}
:
EVE University offers a class on: | |
{{related class | Ratting 101 | Missioning 101 | Freighter 101 | Invention 101 }}
:
EVE University offers classes on: | |
{{related class | Logistics 103: Carriers, Triage, Advanced Tactics{{!}}Logistics 103 }}
:
EVE University offers a class on: | |