Whilst it is easily possible to compose image HTML using tokens for image URL and image title, it may be useful for many to have a token outputting complete HTML of an image.

Comments

Vacilando created an issue. See original summary.

  • Vacilando committed 4246cdd on 7.x-1.x
    Issue #2770191: Create a token that outputs complete HTML for an image
    
vacilando’s picture

Status: Active » Needs review

OK, a solution is in dev. The new token is [puzzler:wikipedia-matching-image-html].

The big advantage of this over constructing image HTML from tokens for article title and image URL is that if there is no match, the self-made HTML would still return HTML without title and URL, while the new tag returns either valid image HTML or nothing at all.

vacilando’s picture

Status: Needs review » Fixed

Included in new stable release: 7.x-1.1.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.