Template:SkillBox
<div style="display: flex; flex-wrap: wrap;"> <div style="flex: 2 0 200px; border-bottom: 1px solid #66f; display: flex; flex-direction: column; justify-content: center"> <div style="padding: 0 0.5em; font-weight: bold;"> {{{title}}} </div> </div> <div style="flex: 1 0 100px; border-left: 1px solid #66f; margin-left: -1px; border-bottom: 1px solid #66f; display: flex; flex-direction: column; justify-content: center"> <div style="padding: 0 0.5em; text-align: center;"> {{{type}}}{{ #if:{{{mpcost|}}} |<br>[[MP]] Cost: {{{mpcost}}}}}{{ #if:{{{advcost|}}} |<br>[[Adventure|Adv]] Cost: {{{advcost}}}}}{{ #if:{{{furycost|}}} |<br>[[Fury]] Cost: {{{furycost}}}}} </div> </div> <div style="flex: 1 0 100px; border-left: 1px solid #66f; margin-left: -1px; border-bottom: 1px solid #66f; display: flex; flex-direction: column; justify-content: center"> <div style="padding: 0 0.5em; text-align: center;"> {{#ifeq:{{{source|}}}|guild |Guild (Lv.{{{level}}})<br>{{ #switch:{{{level}}} |1=125 Meat |2=250 Meat |3=500 Meat |4=750 Meat |5=1,250 Meat |6=1,750 Meat |7=2,500 Meat |8=3,250 Meat |9=4,000 Meat |10=5,000 Meat |11=6,250 Meat |12=7,500 Meat |13=10,000 Meat |14=12,500 Meat |15=15,000 Meat |''Price unknown - invalid level''}} |{{{source}}}}} </div> </div> </div> <div style="overflow: auto; border-bottom: 1px solid #66f; background-color: #eee; color: #000; padding: 0 0.5em;"> <!-- If the inner div contains <p> tags, their top & bottom margins will be merged with margins of the inner div --> <div style="margin-top: 0.5em; margin-bottom: 0.5em"> {{{flavortext}}} </div> </div> <div style="overflow: auto; padding: 0 0.5em;"> <!-- If the inner div contains <p> tags, their top & bottom margins will be merged with margins of the inner div --> <div style="margin-top: 0.5em; margin-bottom: 0.5em"> {{{description}}} </div> </div> </div> {{Code2}} Template for skillboxes. == Parameters == * <var>title</var>: Meant to be used with [[Template:InlineItem]] to show the name and icon of a skill. * <var>type</var> * <var>mpcost</var>: Optional. * <var>advcost</var>: Optional. * <var>furycost</var>: Optional. * <var>source</var>: Short text describing how the skill is obtained. If this is set to <kbd>guild</kbd>, <var>level</var> will be used to determine the meat cost of buying the skill. ** <var>level</var>: Used only if <var>source</var> is <kbd>guild</kbd>. Level at which the skill can be purchased. * <var>flavortext</var> * <var>description</var> == Examples == <pre style="overflow-x: scroll"> {{SkillBox |title={{InlineItem|Sauce Contemplation}} |type=Noncombat |source=Starting skill |mpcost=1 |flavortext= By reflecting on the nature of the Cosmic Sauce, you can become more closely attuned to its mysteriousness. Your [[Mysticality|Enchantedness]] and Maximum HP will increase for a period of time. |description= Grants effect: [[Saucemastery]] (5 Adventures)<br>(Mysticality +2, Max MP +5) }} </pre> ...becomes: {{SkillBox |title={{InlineItem|Sauce Contemplation}} |type=Noncombat |source=Starting skill |mpcost=1 |flavortext= By reflecting on the nature of the Cosmic Sauce, you can become more closely attuned to its mysteriousness. Your [[Mysticality|Enchantedness]] and Maximum HP will increase for a period of time. |description= Grants effect: [[Saucemastery]] (5 Adventures)<br>(Mysticality +2, Max MP +5) }}
[[Category:Test Templates]]Template for skillboxes.
Parameters
- title: Meant to be used with Template:InlineItem to show the name and icon of a skill.
- type
- mpcost: Optional.
- advcost: Optional.
- furycost: Optional.
- source: Short text describing how the skill is obtained. If this is set to guild, level will be used to determine the meat cost of buying the skill.
- level: Used only if source is guild. Level at which the skill can be purchased.
- flavortext
- description
Examples
{{SkillBox |title={{InlineItem|Sauce Contemplation}} |type=Noncombat |source=Starting skill |mpcost=1 |flavortext= By reflecting on the nature of the Cosmic Sauce, you can become more closely attuned to its mysteriousness. Your [[Mysticality|Enchantedness]] and Maximum HP will increase for a period of time. |description= Grants effect: [[Saucemastery]] (5 Adventures)<br>(Mysticality +2, Max MP +5) }}
...becomes:
By reflecting on the nature of the Cosmic Sauce, you can become more closely attuned to its mysteriousness. Your Enchantedness and Maximum HP will increase for a period of time.
Grants effect: Saucemastery (5 Adventures)
(Mysticality +2, Max MP +5)