# Template variable {{selection}}

**URL:** <https://forum.obsidian.md/t/template-variable-selection/84750>\
**Category:** Feature requests\
**Created:** [July 4, 2024, 8:33pm UTC](https://forum.obsidian.md/t/template-variable-selection/84750 "2024-07-04T20:33:30Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![redaili](https://forum.obsidian.md/letter_avatar_proxy/v4/letter/r/51bf81/32.png) [@redaili](https://forum.obsidian.md/u/redaili)\
**Post date:** [July 4, 2024, 8:33pm UTC](https://forum.obsidian.md/t/template-variable-selection/84750/1 "2024-07-04T20:33:31Z")

</div>

For example if I had a template

`![](https://img.shields.io/npm/dm/{{selection}}.svg?style=flat)`

I could easily select some npm package name, e.g. `moment` in my text and replace it with a badge

![](https://img.shields.io/npm/dm/moment.svg?style=flat)
