Some sort of variable to eliminate duplicate text?

Hi all!

I work on the wiki for a large game forum that uses discourse, and as part of that we have tables with pictures embedded. On this page in particular, we have nearly 2000 images, many of which are this identical ‘No Image Available’ one. This uses a lot of characters, and so I was wondering if there is any way to produce a variable of sorts that can save on characters significantly.

E.G. VarA="![imageTEXThere](imageURLhere)"

I am not sure if this is the right place to ask this, or if this is possible, but any help is much appreciated. Thanks!

New user restrictions mean this has to be a reply. Sorry lol!

This is partially supported in Markdown. You can define a label at the bottom of the document, and use that label, e.g.:

![ImageUnavailable|100x100][oops]

[oops]: upload://oqu98iBGGNSyDEolbFUxA5cJyiv.png

(Note: the label goes in square brackets.)

It doesn’t replace the whole thing for you, just the URL, but maybe that’s good for starters?

That helps a ton, thank you so much!

Another somewhat related question: We are running into two issues that are what causes us to need this. Tables are extremely laggy, and we are right up against the character limits defined to prevent spam. Is there any way for admins to remove the character limit on the wiki section only, and are there obvious ways to reduce table lag? if it is relevant, the images dont seem to especially increase lag, but each row in around half of our tables has at least one link embedded in it. Thanks so much!