Template talk:ImageFromTemplate
Is this a work in progress --- what is this template supposed to do or be used for? --Fig bucket (talk) 15:41, 22 December 2018 (UTC)
It's kind of a work in progress/failed experiment. I was trying to create a template which would randomize a number of different image files but had no luck getting the file name to actually show the image. In a secondary attempt I tried to pass the randomized file name from one template (sandbox test template) to a second template(this one) to show the image but that didn't work either. Something is either wrong with how I created the first template so it refuses to show the file name as anything other than text and/or passing the result of one template to a second template does not work. I'm going to try to do a little more research into it to see if I can get it working but otherwise I will nominate the page for deletion.--Butterflygirlkmc (talk) 03:41, 23 December 2018 (UTC)
- Ok. FYI, you can find various examples of randomizing things (e.g., for images, Data:Hobelf (Elf Alley) and more generally Category:Randomized Text Templates). IIRC, the <RandomlySelect> tag is a custom thing while the #rand: template comes from an old extension; using <RandomlySelect> does not prevent caching of the result (so the randomization is not necessarily changed when you reload the page) while use of {{#rand}} results in no-caching (the page is reconstructed with freshly randomized choices every time the page is loaded). For structured sentence randomization there's another extension, MadLib. --Fig bucket (talk) 00:25, 24 December 2018 (UTC)