ECL, default scale, and preferred alignment entries
This commit is contained in:
@@ -895,7 +895,7 @@ func (p *wikiExprParser) parsePrimary() (any, error) {
|
||||
|
||||
func wikiExprHelperAllowsMissingArgs(name string) bool {
|
||||
switch name {
|
||||
case "present", "all_present", "any_present":
|
||||
case "present", "all_present", "any_present", "alignments":
|
||||
return true
|
||||
default:
|
||||
return false
|
||||
@@ -1055,6 +1055,11 @@ func (p *wikiExprParser) callHelper(name string, args []any) (any, error) {
|
||||
}
|
||||
}
|
||||
return false, nil
|
||||
case "alignments":
|
||||
if len(args) != 1 {
|
||||
return nil, fmt.Errorf("alignments expects 1 argument")
|
||||
}
|
||||
return formatWikiTemplateAlignments(args[0])
|
||||
case "ability_adjustments":
|
||||
if len(args) != 0 {
|
||||
return nil, fmt.Errorf("ability_adjustments expects 0 arguments")
|
||||
|
||||
Reference in New Issue
Block a user