Difference between revisions of "User:Evon R'al/Sandbox template/doc"
From EVE University Wiki
m (Working on template {{Related class}}) |
m (Redacting.) |
||
Line 1: | Line 1: | ||
− | + | ; Description | |
− | 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). |
− | + | ; Dependencies | |
− | {{ | + | : uses: |
− | + | :: {{T|!}} | |
− | + | ; Syntax | |
+ | : {{T|Related class|class 1|class 2|class 3|class 4|class 5}} | ||
− | + | :; Usage | |
− | The | + | :: 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 capitalization of the classes right. |
− | |||
− | + | :: You can find a list of all classes offered by EVE University at the [[classes]] page. | |
− | <code><nowiki>{{ | + | |
+ | :; 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 [[Wikipedia: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>}} | ||
+ | |||
+ | ; Sample | ||
+ | : <code><nowiki>{{Related class | Bookmarks (CORE class) }}</nowiki></code>: {{Related class | Bookmarks (CORE class) }} | ||
<div style="clear:both"></div> | <div style="clear:both"></div> | ||
− | <code><nowiki>{{ | + | : <code><nowiki>{{Related class | Careers (CORE class) | D-Scan (CORE class) | Wormhole Mechanics (Class) }}</nowiki></code>: {{Related class | Careers (CORE class) | D-Scan (CORE class) | Wormhole Mechanics (Class) }} |
<div style="clear:both"></div> | <div style="clear:both"></div> | ||
− | <code><nowiki>{{ | + | : <code><nowiki>{{Related class | Wormhole Mechanics (Class){{!}}Wormhole Mechanics }}</nowiki></code>: {{Related class | Wormhole Mechanics (Class){{!}}Wormhole Mechanics }} |
<includeonly>[[Category:Navigational templates]]</includeonly> | <includeonly>[[Category:Navigational templates]]</includeonly> | ||
<noinclude>[[Category:Template documentation]]</noinclude> | <noinclude>[[Category:Template documentation]]</noinclude> |
Revision as of 15:03, 30 January 2022
- Description
- 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).
- Dependencies
- uses:
- {{!}}
- Syntax
- {{Related class|<class 1>|<class 2>|<class 3>|<class 4>|<class 5>}}
- Usage
- 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 capitalization of the classes right.
- You can find a list of all classes offered by EVE University at the classes page.
- 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
- Sample
{{Related class | Bookmarks (CORE class) }}
:
EVE University offers a class on: | |
{{Related class | Careers (CORE class) | D-Scan (CORE class) | Wormhole Mechanics (Class) }}
:
EVE University offers classes on: | |
{{Related class | Wormhole Mechanics (Class){{!}}Wormhole Mechanics }}
:
EVE University offers a class on: | |