Template:Skill infobox: Difference between revisions

From FHX Wiki
No edit summary
 
(5 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 {{#switch:{{lc:{{{type}}}}}|crafting=material}}">
<div class="infobox skill {{#switch:{{lc:{{{type|}}}}}|crafting=material}} {{#switch:{{lc:{{{classes|}}}}}|ac=archer|cl=cleric|kn=knight|pa=paladin|sn=summoner|wa=warrior|wi=wizard}}">
{{#if:{{{icon|}}}|<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>
Line 128: Line 128:
; gallery-text1...gallery-text5 : Optional. Image descriptions.
; gallery-text1...gallery-text5 : Optional. Image descriptions.


== TODO ==
[[Category:Infobox templates]]
:*Add properties to parameters
{{clear}}
[[Category:Infobox templates|Skill]]
</noinclude>
</noinclude>

Latest revision as of 22:02, 16 April 2025

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.