Difference between revisions of "Template:SkillQueue"

From EVE University Wiki
Jump to: navigation, search
m (Rewrite. Remove unused and undocumented parameters. Add hdr parameter. Change width test to avoid non or invalid setting to lead to the box using all available space. Change default width.)
 
(5 intermediate revisions by 2 users not shown)
Line 1: Line 1:
<div class="toccolours mw-collapsible mw-collapsed" style="width:{{{width|600px}}};">
+
<div class="toccolours mw-collapsible mw-collapsed" style="width: {{#if:{{{width|}}}|{{{width}}}|35em}};">
{{#if:{{{name|}}}|<h3>{{{name}}}</h3>}}{{#if:{{{desc|}}}|
+
{{#if:{{{name|}}}|{{#switch: {{{hdr}}}
{{{desc}}}}}
+
  |#default = <h3>{{{name}}}</h3>
''Expand this box to view a [[Skill queue]] to use in-game''
+
  | 0 = <span style="font-size: 1.2em; font-weight: bold; color: white;">{{{name}}}</span><br>
<div class="mw-collapsible-content">
+
  | 4
<pre<includeonly></includeonly> style="white-space: {{{space|pre-wrap}}}; border:none;"><!--
+
  | 5
-->{{#if:{{{1|}}}|{{!}}{{{1}}}|<noinclude>Skill I
+
  | 6 = <h{{{hdr}}}><span style="font-size: 1.2em; font-weight: bold;">{{{name}}}</span></h{{{hdr}}}>
 +
  }}
 +
}}
 +
{{#if:{{{desc|}}}|{{{desc}}}<br>}}
 +
''Expand this box to view a [[Skill Queue|Skill queue]] to use in-game''
 +
<div class="mw-collapsible-content">
 +
  <pre<includeonly></includeonly> style="border:none;"><!--
 +
-->{{#if:{{{1|}}}|{{{1}}}<noinclude>|Skill I
 
Skill II
 
Skill II
Skill III</noinclude>}}<!--
+
Skill III</noinclude>}}</pre>
--></pre>
+
</div>
 
</div>
 
</div>
</div>
+
<noinclude>{{documentation}}</noinclude>
<noinclude>
 
 
 
----
 
 
 
<h2>Usage</h2>
 
The following shows an example using the template. ''name'',''width'' and ''desc'' are optional. A default width of 600px is used.
 
<pre>
 
{{SkillQueue
 
|name=Fit Name
 
|width=400px
 
|desc=A description of the fit
 
|Skill I
 
Skill II
 
Skill III
 
}}
 
</pre>
 
{{SkillQueue
 
|name=Fit Name
 
|width=400px
 
|desc=A description of the fit
 
|Skill I
 
Skill II
 
Skill III
 
}}
 
</noinclude>
 

Latest revision as of 12:37, 26 April 2022


Expand this box to view a Skill queue to use in-game

Skill I
Skill II
Skill III
Template documentation (for the above template, sometimes hidden or invisible)
Description
SkillQueue produces an expendable box to contain a skill list to copy to the in-game skill
Syntax
{{SkillQueue|<name= name>|<hdr= hdr>|<width= width>|<desc= desc>|<skill list>}}
name - The name of the fit (Optional). When used the name will automatically become a level 3 heading. This can be suppressed or the level changed by using the hdr parameter.
hdr - To suppress or change the level of the name header (Optional). Valid options: 0 - to suppress, 4, 5 and 6 to change header level.
widht - To change the width of the box (Optional). Default width is 35em. Can be in em, px, %, etc.
desc - A description of the fit (Optional).
skill list - A list of skills in the order in which they need to be trained. Each skill on its own line.
Sample
{{SkillQueue | name= Fit Name | desc= A description of the fit | Skill A Skill B Skill C }}
gives ...

Fit Name

A description of the fit
Expand this box to view a Skill queue to use in-game

Skill A
Skill B
Skill C


{{SkillQueue | name= Fit Name 2 | width= 500px | desc= A description of the fit |Skill F Skill G Skill H }}
gives ...

Fit Name 2

A description of the fit
Expand this box to view a Skill queue to use in-game

Skill F
Skill G
Skill H


{{SkillQueue | name= Fit Name 3 | hdr= 4 | desc= A description of the fit |Skill X Skill Y Skill Z }}
gives ...

Fit Name 3

A description of the fit
Expand this box to view a Skill queue to use in-game

Skill X
Skill Y
Skill Z
Visit Template:SkillQueue/doc to edit this text! (How does this work?) (Refresh this text - why?)