Template talk:Alttext/doc

Lhynard, do you want this to return an empty string if there is no Alt-text (like it does now), or do you want it to return the input unchanged? &mdash;Moviesign (talk) 02:01, April 6, 2017 (UTC)


 * I'd like it to return the input unchanged for my purposes, but a boolean param could be added to give it either behavior.
 * Thanks for this! It looks great.
 * ~ Lhynard (talk) 17:46, April 7, 2017 (UTC)


 * So you don't want to have a test for the presence of alt-text? ok. &mdash;Moviesign (talk) 21:20, April 7, 2017 (UTC)


 * As a unit test, I would like to see:

++ ++ +Testing+ +Testing+ +Alternate text+ +http://www.wizards.com/dnd/images/wd_maps/FRposterLarge_150.jpg+ +Map of Faerûn+
 * ~ Lhynard (talk) 21:41, April 7, 2017 (UTC)


 * If it returned an empty string, you'd be able to do this:


 * &mdash;Moviesign (talk) 21:53, April 7, 2017 (UTC)