Skip to content

I need help understanding "count" and\or tag lists #287

@evilsquid55555

Description

@evilsquid55555

My wiki is being used by a TTRPG group. One namespace (danger) contains monsters and traps. Pages under this namespace are tagged with the "Challenge Rating" of the monster or trap on that page. For example:

Pagename = danger:arrow_trap
Last line of this page is {{tag>DataType:Danger DangerType:Trap CR:01}}

Pagename = danger:bear_trap
Last line of this page is {{tag>DataType:Danger DangerType:Trap CR:02}}

Pagename = danger:pit_trap
Last line of this page is {{tag>DataType:Danger DangerType:Trap CR:04}}

Pagename = danger:goblin
Last line of this page is {{tag>DataType:Danger DangerType:Monster CR:01}}

Pagename = danger:dire_wolf
Last line of this page is {{tag>DataType:Danger DangerType:Monster CR:03}}

Pagename = danger:treant
Last line of this page is {{tag>DataType:Danger DangerType:Monster CR:08}}

Now comes the part I am having trouble with... On another page I have the tag counts for various groups like these:
Total number of pages tagged as Danger {{count>"DataType:Danger"}}
Total number of pages tagged as Traps or Monsters {{count>DangerType:Monster DangerType:Trap +DataType:Danger&danger}}
Total number of pages tagged with various CR {{count>CR:01 CR:02 CR:03 CR:04 +DataType:Danger&danger}}
Total number of all tags in pages {{count>+&danger}}

The one I'm not understanding well is the CR one... Is there not a way to express that I want all versions of the CR: tag without entering every permutation of CR from 01 to 30? Something like {{count>CR:* +DataType:Danger&danger}} or some version of regex?

I'm sure I just keep overlooking something, but I've attempted to figure this out for several days without success.

Thank you for any assistance you can provide getting me on the right track.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions