# 某种用于消除重复文本的变量？

**URL:** https://meta.discourse.org/t/some-sort-of-variable-to-eliminate-duplicate-text/400979
**Category:** Support
**Tags:** uploads
**Created:** [2026年四月19日 04:22 UTC](https://meta.discourse.org/t/some-sort-of-variable-to-eliminate-duplicate-text/400979 "2026-04-19T04:22:53Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![Thatflyerguy](https://avatars.discourse-cdn.com/v4/letter/t/ba8739/32.png) [@Thatflyerguy](https://meta.discourse.org/u/Thatflyerguy)
#### Post date: [2026年四月19日 04:22 UTC](https://meta.discourse.org/t/some-sort-of-variable-to-eliminate-duplicate-text/400979/1 "2026-04-19T04:22:54Z")

</div>

大家好！

我在一个大型游戏论坛的维基工作，该论坛使用 Discourse 平台。作为其中的一部分，我们嵌入了带有图片的表格。特别是在这一页上，我们有近 2000 张图片，其中许多是相同的“无可用图片”占位图。这占用了大量字符，因此我在想，是否有一种方法可以创建某种变量，从而显著减少字符占用。

例如：`VarA="![imageTEXThere](imageURLhere)"`

 ![image](https://global.discourse-cdn.com/meta/original/4X/0/8/a/08aaf7b44b17ea16b23623cbf04eeb1bf1db9194.png)

我不确定这是否是正确的提问地点，或者这是否可行，但任何帮助都将不胜感激。谢谢！

---

<div class="post-metadata">

### Author: ![Thatflyerguy](https://avatars.discourse-cdn.com/v4/letter/t/ba8739/32.png) [@Thatflyerguy](https://meta.discourse.org/u/Thatflyerguy)
#### Post date: [2026年四月19日 04:23 UTC](https://meta.discourse.org/t/some-sort-of-variable-to-eliminate-duplicate-text/400979/2 "2026-04-19T04:23:44Z")

</div>

新用户的限制意味着这必须是一条回复。抱歉，哈哈！

 ![image](https://global.discourse-cdn.com/meta/original/4X/5/f/5/5f509b426aa027bbfde49433ce9bd5c7b50a5baf.png)

---

<div class="post-metadata">

### Author: ![ted](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/ted/32/283882_2.png) [@ted](https://meta.discourse.org/u/ted)
#### Post date: [2026年四月19日 05:33 UTC](https://meta.discourse.org/t/some-sort-of-variable-to-eliminate-duplicate-text/400979/3 "2026-04-19T05:33:07Z")

</div>

这在 Markdown 中是部分支持的。您可以在文档底部定义一个标签，然后使用该标签，例如：

```markdown
![ImageUnavailable|100x100][oops]

[oops]: upload://oqu98iBGGNSyDEolbFUxA5cJyiv.png

```

_（注意：标签需放在方括号内。）_

它不会为您替换整个内容，仅替换 URL，但这或许可以作为起点？
