Template:Skill infobox: Difference between revisions

From FHX Wiki
(Created page with "<includeonly><templatestyles src="Infobox/styles.css" /> <div class="infobox skill"> <div class="infobox-icon">[[File:{{{icon}}}|40px]]</div> <p class="heading">{{#if:{{{name|}}}|{{{name}}}|{{PAGENAME}}}}</p> <div class="wrapper> {{quote|quote={{{description}}}|source=In-game description.}} ;Class :[[{{{class}}}]] ;Req. Level :{{{level}}} ;Max. Level :{{{max-level}}} ;Target :{{{target}}} ;Type :{{{type}}} </div> {{#if: {{{gallery1|}}} | {{{!}} style="width:100%" {{!}...")
 
No edit summary
 
(20 intermediate revisions by the same user not shown)
Line 1: Line 1:
<includeonly><templatestyles src="Infobox/styles.css" />
<includeonly><templatestyles src="Infobox/styles.css" />
<div class="infobox skill">
<div class="infobox skill {{#switch:{{lc:{{{type}}}}}|crafting=material}}">
<div class="infobox-icon">[[File:{{{icon}}}|40px]]</div>
{{#if:{{{icon|}}}|<div class="infobox-icon">[[File:{{{icon}}}|40px]]</div>}}
<p class="heading">{{#if:{{{name|}}}|{{{name}}}|{{PAGENAME}}}}</p>
<p class="heading">{{#if:{{{name|}}}|{{{name}}}|{{PAGENAME}}}}</p>
<div class="wrapper>
<div class="wrapper">
{{quote|quote={{{description}}}|source=In-game description.}}
{{quote|quote={{{description}}}|source=In-game description.}}{{#if:{{{classes|}}}|
;Class
;Classes
:[[{{{class}}}]]
:{{#if:{{string split|{{{classes|}}}|" "|1}}|[[{{string split|{{{classes|}}}|" "|1}}]]|{{clear}}}} {{#if:{{string split|{{{classes|}}}|" "|2}}|[[{{string split|{{{classes|}}}|" "|2}}]]|{{clear}}}} {{#if:{{string split|{{{classes|}}}|" "|3}}|[[{{string split|{{{classes|}}}|" "|3}}]]|{{clear}}}} {{#if:{{string split|{{{classes|}}}|" "|4}}|[[{{string split|{{{classes|}}}|" "|4}}]]|{{clear}}}} {{#if:{{string split|{{{classes|}}}|" "|5}}|[[{{string split|{{{classes|}}}|" "|5}}]]|{{clear}}}} {{#if:{{string split|{{{classes|}}}|" "|6}}|[[{{string split|{{{classes|}}}|" "|6}}]]|{{clear}}}} {{#if:{{string split|{{{classes|}}}|" "|7}}|[[{{string split|{{{classes|}}}|" "|7}}]]|{{clear}}}}}}
;Req. Level
;Req. Level
:{{{level}}}  
:{{{level}}}  
;Max. Level
;Max. Level
:{{{max-level}}}
:{{{max-level}}}{{#if:{{{target|}}}|
;Target
;Target
:{{{target}}}
:{{{target}}}}}
;Type  
;Type  
:{{{type}}}
:{{{type}}}{{#if:{{{requires|}}}|
;Req. Skill
:{{{requires}}}}}{{#if:{{{weapon|}}}|
;Weapon
:{{{weapon}}}}}
</div>
</div>
{{#if: {{{gallery1|}}} |  
{{#if: {{{gallery1|}}} |  
Line 29: Line 33:
{{!}}}
{{!}}}
| {{clear}} }}
| {{clear}} }}
</div></includeonly><noinclude>
</div>[[Category:Skill]]{{#if:{{{classes|]}}}|{{#switch:{{ucfirst:{{string split|{{{classes|}}}|" "|1}}}}
|Wr=[[Category:Warrior]]
|Kn=[[Category:Knight]]
|Ac=[[Category:Archer]]
|Pa=[[Category:Paladin]]
|Wi=[[Category:Wizard]]
|Cl=[[Category:Cleric]]
|Sn=[[Category:Summoner]]
}}{{#switch:{{ucfirst:{{string split|{{{classes|}}}|" "|2}}}}
|Wr=[[Category:Warrior]]
|Kn=[[Category:Knight]]
|Ac=[[Category:Archer]]
|Pa=[[Category:Paladin]]
|Wi=[[Category:Wizard]]
|Cl=[[Category:Cleric]]
|Sn=[[Category:Summoner]]
}}{{#switch:{{ucfirst:{{string split|{{{classes|}}}|" "|3}}}}
|Wr=[[Category:Warrior]]
|Kn=[[Category:Knight]]
|Ac=[[Category:Archer]]
|Pa=[[Category:Paladin]]
|Wi=[[Category:Wizard]]
|Cl=[[Category:Cleric]]
|Sn=[[Category:Summoner]]
}}{{#switch:{{ucfirst:{{string split|{{{classes|}}}|" "|4}}}}
|Wr=[[Category:Warrior]]
|Kn=[[Category:Knight]]
|Ac=[[Category:Archer]]
|Pa=[[Category:Paladin]]
|Wi=[[Category:Wizard]]
|Cl=[[Category:Cleric]]
|Sn=[[Category:Summoner]]
}}{{#switch:{{ucfirst:{{string split|{{{classes|}}}|" "|5}}}}
|Wr=[[Category:Warrior]]
|Kn=[[Category:Knight]]
|Ac=[[Category:Archer]]
|Pa=[[Category:Paladin]]
|Wi=[[Category:Wizard]]
|Cl=[[Category:Cleric]]
|Sn=[[Category:Summoner]]
}}{{#switch:{{ucfirst:{{string split|{{{classes|}}}|" "|6}}}}
|Wr=[[Category:Warrior]]
|Kn=[[Category:Knight]]
|Ac=[[Category:Archer]]
|Pa=[[Category:Paladin]]
|Wi=[[Category:Wizard]]
|Cl=[[Category:Cleric]]
|Sn=[[Category:Summoner]]
}}{{#switch:{{ucfirst:{{string split|{{{classes|}}}|" "|7}}}}
|Wr=[[Category:Warrior]]
|Kn=[[Category:Knight]]
|Ac=[[Category:Archer]]
|Pa=[[Category:Paladin]]
|Wi=[[Category:Wizard]]
|Cl=[[Category:Cleric]]
|Sn=[[Category:Summoner]]
}}|{{clear}}}}</includeonly><noinclude>
== Description ==
== Description ==
This is the '''{{PAGENAME}}''' template.
This is the '''{{PAGENAME}}''' template.
Line 38: Line 98:
|icon=
|icon=
|description=
|description=
|class=
|classes=
|level=
|level=
|max-level=
|max-level=
|target=
|target=
|type=
|type=
|weapon=
|requires=
|gallery1...gallery5=
|gallery1...gallery5=
|gallery-text1...gallery-text5=
|gallery-text1...gallery-text5=
Line 51: Line 113:
; icon : Required. Icon of the skill.
; icon : Required. Icon of the skill.
; description : Required. Skill description.
; description : Required. Skill description.
; class : Required. Class that can unlock the skill. Separate multiple classes with a comma.
; classes : Required. Class that can unlock the skill. Use shortened class name: Wr Kn Ac Pa Wi Cl Sn
; level : Required. Required level to unlock the skill. Separate multiple class level requirements with a comma.
; level : Required. Required level to unlock the skill. Separate multiple class level requirements with a comma.
; max-level : Required. Maximum level this skill can reach.
; max-level : Required. Maximum level this skill can reach.
Line 61: Line 123:
:: Curse
:: Curse
:: Utility
:: Utility
; weapon : Optional. Required weapon to activate.
; requires: Optional. Required skill to unlock.
; gallery1...gallery5 : Optional. Images related to the item.
; gallery1...gallery5 : Optional. Images related to the item.
; gallery-text1...gallery-text5 : Optional. Image descriptions.
; gallery-text1...gallery-text5 : Optional. Image descriptions.


== Example ==
[[Category:Infobox templates]]
{{Skill infobox
|name=Summon Naiad
|icon=Summon Naiad icon.gif
|description=Summon Naiad, the spirit of water, who uses recovery and blessing magic.
|class=Summoner
|level=1
|max-level=40
|target=Myself
|type=Utility
|gallery1=
|gallery-text1=
}}
<pre>
{{Skill infobox
|name=Summon Naiad
|icon=Summon Naiad icon.gif
|description=Summon Naiad, the spirit of water, who uses recovery and blessing magic.
|class=Summoner
|level=1
|max-level=40
|target=Myself
|type=Utility
|gallery1=
|gallery-text1=
}}
</pre>
 
== TODO ==
:*Add properties to parameters
{{clear}}
[[Category:Infobox templates|Skill]]
</noinclude>
</noinclude>

Latest revision as of 04:32, 24 October 2024

Description

This is the Skill infobox template. It should be transcluded in the following format:

{{Skill infobox
|name=
|icon=
|description=
|classes=
|level=
|max-level=
|target=
|type=
|weapon=
|requires=
|gallery1...gallery5=
|gallery-text1...gallery-text5=
}}

Parameters

name
Optional. Only include if the name of the skill differs from the article name. Defaults to the name of the article: {{PAGENAME}}
icon
Required. Icon of the skill.
description
Required. Skill description.
classes
Required. Class that can unlock the skill. Use shortened class name: Wr Kn Ac Pa Wi Cl Sn
level
Required. Required level to unlock the skill. Separate multiple class level requirements with a comma.
max-level
Required. Maximum level this skill can reach.
target
Required. List who the skill can target.
type
Required. The type of item. Options:
Passive
Damage
Buff
Curse
Utility
weapon
Optional. Required weapon to activate.
requires
Optional. Required skill to unlock.
gallery1...gallery5
Optional. Images related to the item.
gallery-text1...gallery-text5
Optional. Image descriptions.