Parameterized macros (or replacements)?

Is there a way to make site- (or category-?) wide “macros” which would accept parameters?

For example, links to Fedora’s Matrix chat rooms are in the form I’d like people to be able to write something like {chat:social}, and have that appear as a link with the “social” parameter inserted in the proper place.

Crucially, if the macro is ever updated, all of the instances across the site should likewise follow. (Although it’s acceptable if that’s “eventually” rather than instant, as I don’t imagine wanting to use this for something that would change frequently.)

I know there’s the “watched words” feature, but I don’t see any way to do this kind of parameterized replacement.

1 Like