Wiki Template-First Rendering (#9)
Reviewed-on: https://gitea.westgate.pw/ShadowsOverWestgate/sow-tools/pulls/9 Co-authored-by: vickydotbat <vickydotbat@tutamail.com> Co-committed-by: vickydotbat <vickydotbat@tutamail.com>
This commit is contained in:
@@ -915,6 +915,11 @@ func (p *wikiExprParser) callHelper(name string, args []any) (any, error) {
|
||||
}
|
||||
}
|
||||
return false, nil
|
||||
case "ability_adjustments":
|
||||
if len(args) != 0 {
|
||||
return nil, fmt.Errorf("ability_adjustments expects 0 arguments")
|
||||
}
|
||||
return formatAbilityAdjustments(p.renderCtx.Page.Row), nil
|
||||
case "hidden_ref":
|
||||
if len(args) != 2 {
|
||||
return nil, fmt.Errorf("hidden_ref expects 2 arguments")
|
||||
|
||||
Reference in New Issue
Block a user