Template:Skill: Difference between revisions

From Caves of Qud Wiki
Jump to navigation Jump to search
(added cargo table)
(i fricked up. changed cargo values)
Line 1: Line 1:
<noinclude>{{#cargo_declare:_table=Skills|Class=Page|PrerequirementStatNumber=Integer|PrerequirementStat=Page|Cost=Integer|RequiredSkill=List (,) of Page|Cooldown=Integer|Description=String|SkillID=String}}<noinclude><includeonly>{{#cargo_store:_table=Skills|Class={{{class|}}}|PrerequirementStatNumber={{{prereq|}}}|PrerequirementStat={{{prereqstat|}}}|Cost={{{cost|}}}|RequiredSkill={{{req|}}}|Cooldown={{{cd|}}}|Description={{{desc|}}}|SkillID={{{id|}}}}}</includeonly>
<noinclude>{{#cargo_declare:_table=Skills|Class=Page|RequirementStatNumber=Integer|RequiredStat=Page|Cost=Integer|RequiredSkill=List (,) of Page|Cooldown=Integer|Description=String|SkillID=String}}<noinclude><includeonly>{{#cargo_store:_table=Skills|Class={{{class|}}}|RequireedStatNumber={{{req|}}}|RequiredStat={{{reqstat|}}}|Cost={{{cost|}}}|PrerequisiteSkill={{{prereq|}}}|Cooldown={{{cd|}}}|Description={{{desc|}}}|SkillID={{{id|}}}}}</includeonly>
<includeonly>
<includeonly>
{{#invoke:infobox|infobox
{{#invoke:infobox|infobox
Line 6: Line 6:
{{#if: {{{class|}}}  | {{infobox row|Skill Tree|{{{class}}} }} }}
{{#if: {{{class|}}}  | {{infobox row|Skill Tree|{{{class}}} }} }}
<!--required skill that must be taken before. Make sure they're wikipage links.-->
<!--required skill that must be taken before. Make sure they're wikipage links.-->
{{#if: {{{prereq|}}} | {{infobox row|Prerequisite Skills|{{{prereq}}} {{{prereqstat|}}}}} }}
{{#if: {{{prereq|}}} | {{infobox row|Prerequisite Skills|{{{prereq}}}}} }}
{{#if: {{{cost|}}}  | {{infobox row|Cost|{{{cost}}} }} }}
{{#if: {{{cost|}}}  | {{infobox row|Cost|{{{cost}}} }} }}
<!--required stat, and how much of it.-->
<!--required stat, and how much of it.-->
{{#if: {{{req|}}}    | {{infobox row|Requirements|{{{req}}} }} }}
{{#if: {{{req|}}}    | {{infobox row|Requirements|{{{req}}} {{{reqstat|}}} }} }}
{{#if: {{{cd|}}}    | {{infobox row|Cooldown|{{{cd}}} }} }}
{{#if: {{{cd|}}}    | {{infobox row|Cooldown|{{{cd}}} }} }}
<!--the id used for the related cs file. also confusingly called Class-->
<!--the id used for the related cs file. also confusingly called Class-->

Revision as of 17:14, 14 July 2019

This template defines the table "Skills". View table.

{{Skill
| class=
| req=
| cost=
| prereq=
| cd=
| desc=
| id=
}}