[crossfire] Feature proposition: [img] tag

Mark Wedel mwedel at sonic.net
Tue Nov 17 00:14:29 CST 2009


Nicolas Weeger wrote:
> Hello.
> 
> 
> I'd like to suggest a [img name="xxx"] tag for client-side rich tags, as 
> defined in "mediaTags".
> 
> As implied, the tag would display a picture from its name :)
> 
> 
> Uses:
> - illustrate a text
> - show a bigger picture of something (map, illustration, ...).

  I think it is a good idea.  Quick thoughts:
- I'd guess that this might be static content in some cases, in which is refers 
to an actual image name.  In that case, if the client is not using image 
caching, it would have no idea if it has the image or not (since it only gets 
image numbers in that case).  I think simplest all around would be to enforce 
the idea that clients must do image caching - it simplifies code in a bunch of 
areas.

- I'd also imagine one could have images that are not directly associated with 
any archetypes (say a map of the area).  There is nothing that prevents that, as 
IIRC the client script will pick up any files of appropriate name in the arch 
directory, but it may be desirable to have a storage for such images someplace 
else, since if they are not used by archetypes, they don't really belong in that 
directory structure.




More information about the crossfire mailing list