# Feature idea: Parameterized macros (or, "smart replacements")

**URL:** <https://meta.discourse.org/t/feature-idea-parameterized-macros-or-smart-replacements/210098>\
**Category:** Feature\
**Created:** [November 24, 2021, 11:22pm UTC](https://meta.discourse.org/t/feature-idea-parameterized-macros-or-smart-replacements/210098 "2021-11-24T23:22:50Z")\
**Posts on this page:** 1\
**Showing post:** 1

<div class="post-metadata">

**Author:** ![mattdm](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/mattdm/32/216484_2.png) [@mattdm](https://meta.discourse.org/u/mattdm)\
**Post date:** [November 24, 2021, 11:22pm UTC](https://meta.discourse.org/t/feature-idea-parameterized-macros-or-smart-replacements/210098/1 "2021-11-24T23:22:50Z")

</div>

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 `https://matrix.to/#/#social:fedoraproject.org`. 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.

---

_[View the full topic](https://meta.discourse.org/t/feature-idea-parameterized-macros-or-smart-replacements/210098)._
