Difference between revisions of "Template:InfoCd"

From Granblue Fantasy Wiki
Jump to navigation Jump to search
m (Undo revision 275443 by Hakazumi (talk))
m (It's been a year already huh, well, nothing seems broken so I probably did it right. For reference, I'll remind whoever reads this that this suggestion wasn't mine. TL;DR is that I wanted cooldowns to appears like they do inside Character template without needing them to be inside of it.)
 
Line 7: Line 7:
 
*<i>level1</i> - The level the cooldown duration receives its first reduction
 
*<i>level1</i> - The level the cooldown duration receives its first reduction
 
*<i>level2</i> - The level the cooldown duration receives its second reduction
 
*<i>level2</i> - The level the cooldown duration receives its second reduction
 +
*<i>small</i> - If set as "true", the text will be bold and smaller
 
==Usage==
 
==Usage==
 
<pre>
 
<pre>
Line 19: Line 20:
 
</noinclude>{{#if:{{{cooldown|}}}|{{#switch: {{{num}}}  
 
</noinclude>{{#if:{{{cooldown|}}}|{{#switch: {{{num}}}  
 
| 0 = {{{cooldown}}} turn{{plural:{{{cooldown}}}||s}}
 
| 0 = {{{cooldown}}} turn{{plural:{{{cooldown}}}||s}}
| 1 = {{{cooldown}}} turn{{plural:{{{cooldown}}}||s}}<br />{{InfoSkillUpgrade|lvl={{{level1}}}}}<br />{{{cooldown1}}} turn{{plural:{{{cooldown1}}}||s}}
+
| 1 = {{ #ifeq: {{ lc: {{{small}}} }} | true | {{{cooldown}}} turn{{plural:{{{cooldown}}}||s}}<br /><small><b>{{InfoSkillUpgrade|lvl={{{level1}}}}}</b></small><br />{{{cooldown1}}} turn{{plural:{{{cooldown1}}}||s}} | {{{cooldown}}} turn{{plural:{{{cooldown}}}||s}}<br />{{InfoSkillUpgrade|lvl={{{level1}}}}}<br />{{{cooldown1}}} turn{{plural:{{{cooldown1}}}||s}} }}
| 2 = {{{cooldown}}} turn{{plural:{{{cooldown}}}||s}}<br />{{InfoSkillUpgrade|lvl={{{level1}}}}}<br />{{{cooldown1}}} turn{{plural:{{{cooldown1}}}||s}}<br />{{InfoSkillUpgrade|lvl={{{level2}}}}}<br />{{{cooldown2}}} turn{{plural:{{{cooldown2}}}||s}}
+
| 2 = {{ #ifeq: {{ lc: {{{small}}} }} | true | {{{cooldown}}} turn{{plural:{{{cooldown}}}||s}}<br /><small><b>{{InfoSkillUpgrade|lvl={{{level1}}}}}</b></small><br />{{{cooldown1}}} turn{{plural:{{{cooldown1}}}||s}}<br /><small><b>{{InfoSkillUpgrade|lvl={{{level2}}}}}</b></small><br />{{{cooldown2}}} turn{{plural:{{{cooldown2}}}||s}} | {{{cooldown}}} turn{{plural:{{{cooldown}}}||s}}<br />{{InfoSkillUpgrade|lvl={{{level1}}}}}<br />{{{cooldown1}}} turn{{plural:{{{cooldown1}}}||s}}<br />{{InfoSkillUpgrade|lvl={{{level2}}}}}<br />{{{cooldown2}}} turn{{plural:{{{cooldown2}}}||s}}}}
 
|}}}}
 
|}}}}

Latest revision as of 03:55, 2 June 2020

InfoCd is a switch that has multiple parameters:

  • num - The number of cooldown reductions (0-2)
  • cooldown - The initial cooldown duration (turn-wise)
  • cooldown1 - The cooldown duration (turn-wise) after its first reduction
  • cooldown2 - The cooldown duration (turn-wise) after its second reduction
  • level1 - The level the cooldown duration receives its first reduction
  • level2 - The level the cooldown duration receives its second reduction
  • small - If set as "true", the text will be bold and smaller

Usage

{{InfoCd|num=|cooldown=|cooldown1=|cooldown2=|level1=|level2=}}

<!--8 turns to 7 turns at level 55--> 
{{InfoCd|num=1|cooldown=8|cooldown1=7|level1=55}}

<!--9 turns to 7 turns at level 55 and then to 6 turns at level 100--> 
{{InfoCd|num=2|cooldown=9|cooldown1=7|cooldown2=6|level1=55|level2=100}}