Template:SkillCard: Difference between revisions
More actions
Collapse template whitespace to prevent empty <p> tags causing extra padding |
Add TemplateData JSON for Visual Editor parameter support |
||
| Line 23: | Line 23: | ||
All parameters except '''name''' are optional. The card gracefully hides rows for any omitted field. | All parameters except '''name''' are optional. The card gracefully hides rows for any omitted field. | ||
<templatedata> | |||
{ | |||
"description": "A styled card for presenting Rites, Spells, Cantrips, Ceremonies, and abilities. The card name automatically appears in the page's Table of Contents.", | |||
"params": { | |||
"name": { | |||
"label": "Name", | |||
"description": "The name of the skill, rite, spell, or ability", | |||
"type": "string", | |||
"required": true | |||
}, | |||
"level": { | |||
"label": "Level", | |||
"description": "The rite/spell level (displays as 'Lvl X' badge)", | |||
"type": "number", | |||
"suggested": true | |||
}, | |||
"xp": { | |||
"label": "XP Cost", | |||
"description": "XP cost to learn this skill (e.g. '2xp')", | |||
"type": "string" | |||
}, | |||
"cast_time": { | |||
"label": "Cast Time", | |||
"description": "How long the rite or spell takes to cast", | |||
"type": "string", | |||
"suggested": true | |||
}, | |||
"duration": { | |||
"label": "Duration", | |||
"description": "How long the effect lasts", | |||
"type": "string", | |||
"suggested": true | |||
}, | |||
"cost": { | |||
"label": "Cost", | |||
"description": "Resource cost (e.g. '1 Fire Flicker', '2 Vigour', '1 Faith')", | |||
"type": "string" | |||
}, | |||
"fp_cost": { | |||
"label": "FP Cost", | |||
"description": "Focus Point cost for cantrip spells", | |||
"type": "number" | |||
}, | |||
"target": { | |||
"label": "Target", | |||
"description": "Who the ability targets (e.g. 'Self', 'Other')", | |||
"type": "string" | |||
}, | |||
"type": { | |||
"label": "Type", | |||
"description": "The type of ability (e.g. 'Ceremony – 1 min')", | |||
"type": "string" | |||
}, | |||
"extension": { | |||
"label": "Extension", | |||
"description": "How the rite can be extended with additional resources", | |||
"type": "string", | |||
"suggested": true | |||
}, | |||
"range": { | |||
"label": "Range", | |||
"description": "The range or reach of the ability", | |||
"type": "string", | |||
"suggested": true | |||
}, | |||
"effect": { | |||
"label": "Effect", | |||
"description": "Full description of what the ability does", | |||
"type": "string", | |||
"required": true | |||
}, | |||
"vocals": { | |||
"label": "Vocals", | |||
"description": "Required vocal incantation and casting words for cantrip spells", | |||
"type": "string" | |||
}, | |||
"note": { | |||
"label": "Note", | |||
"description": "Optional referee note or additional flavour text", | |||
"type": "string" | |||
} | |||
}, | |||
"paramOrder": ["name", "level", "xp", "cast_time", "duration", "cost", "fp_cost", "target", "type", "extension", "range", "effect", "vocals", "note"], | |||
"format": "block" | |||
} | |||
</templatedata> | |||
[[Category:Templates]] | [[Category:Templates]] | ||
Revision as of 18:46, 13 March 2026
Usage
A styled card template for presenting Rites, Spells, Cantrips, Ceremonies, and abilities. The card name automatically appears in the page's Table of Contents for easy navigation.
{{SkillCard
|name=Spell Name
|level=1
|xp=2xp
|cast_time=2 minutes
|duration=Instantaneous
|cost=1 Air Flicker
|fp_cost=1
|target=Other
|type=Ceremony – 1 min
|extension=Description of how flickers extend the rite
|range=10 metres
|effect=Full description of the spell effect
|vocals=By the element of Air/Minimum of Five Words/Spell Name
|note=Optional referee note or flavour text
}}
All parameters except name are optional. The card gracefully hides rows for any omitted field.
A styled card for presenting Rites, Spells, Cantrips, Ceremonies, and abilities. The card name automatically appears in the page's Table of Contents.
| Parameter | Description | Type | Status | |
|---|---|---|---|---|
| Name | name | The name of the skill, rite, spell, or ability | String | required |
| Level | level | The rite/spell level (displays as 'Lvl X' badge) | Number | suggested |
| XP Cost | xp | XP cost to learn this skill (e.g. '2xp') | String | optional |
| Cast Time | cast_time | How long the rite or spell takes to cast | String | suggested |
| Duration | duration | How long the effect lasts | String | suggested |
| Cost | cost | Resource cost (e.g. '1 Fire Flicker', '2 Vigour', '1 Faith') | String | optional |
| FP Cost | fp_cost | Focus Point cost for cantrip spells | Number | optional |
| Target | target | Who the ability targets (e.g. 'Self', 'Other') | String | optional |
| Type | type | The type of ability (e.g. 'Ceremony – 1 min') | String | optional |
| Extension | extension | How the rite can be extended with additional resources | String | suggested |
| Range | range | The range or reach of the ability | String | suggested |
| Effect | effect | Full description of what the ability does | String | required |
| Vocals | vocals | Required vocal incantation and casting words for cantrip spells | String | optional |
| Note | note | Optional referee note or additional flavour text | String | optional |